Hi,
I saw one mapping implemented by my seniors . In Expression
transformation they implemented following logic. That is

iif(is_date(in_UC_DATINV,'YYYYMMDD'),to_date(in_UC_DATINV,'Y
YYYMMDD'),'Inventory Date is either invalid or null')

Inventory_Date is validated only for is_date()
But not validated for notisnull() .
But error says “ either invalid or null “ why?
Whether is_date() also check for not isnull() ? or in this
logic something is different ?

Please answer me .
Advance thanks



Hi, I saw one mapping implemented by my seniors . In Expression transformation they implemented f..

Answer / Prem Datt

The 'is_date()' function checks if the input value can be converted into a date format, but it does not check if the input value is null. If the input value is null, 'is_date()' will return false. However, in your expression, you are using the 'iif()' function which first evaluates the condition (in this case, 'is_date()'). Since the condition returned false for a null value, the second part of the 'iif()' function is executed, which returns 'Inventory Date is either invalid or null'. If you want to check if the input value is not null before checking if it is a valid date, you can use the 'not isnull()' function first and then apply 'is_date()'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Informatica Interview Questions

What are the different types of transformation available in informatica.

1 Answers  


What is data merging, data cleansing and sampling?

6 Answers   Satyam,


How can we eliminate duplicate rows from flatfile,explain?

3 Answers  


in unconnected lookup , what are the other transformations , that can be used in place of that expression transformation ?

9 Answers   Target,


explain one complex mapping with logic? sales project?

1 Answers   Accenture, JPMorgan Chase,


what is the mechanism of the Master-Detail joining condition?

6 Answers   IBM, Patni,


Hi, Can you please send me the Informatica 8 certification exam dumps to my email id rwork.san@gmail.com Thanks, Revathi.

6 Answers   CTS,


What are the types of error logs available in Informatica?

1 Answers  


What is a standalone command task?

1 Answers  


What is mapplet and a reusable transformation?

2 Answers  


Can anyone know that what is the Source File limitation in Informatica? To be more precise .. how many flat file we can use as a source in a mapping if.. 1) The Structure of flat files are same & 2) If the Structure of flat files are different. Please explain the procedure also if it dosn't bother one much!!

2 Answers  


on a day i load 10 rows in my target and on nextday i get 10 more rows add to my target but out of 5 are update row how ican send them to target?how i can insert and update the records

4 Answers   Fidelity,


Categories