adspace


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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you load more than 1 max sal in each department through informatica or write sql query in oracle?

1678


Explain scd type 3 through mapping.

1083


I have two different source structure tables, but I want to load into single target table? How do I go about it? Explain in detail through mapping flow.

1252


How to create the source and target database connections in server manager?

1148


draw informatica architecture 8.6 ?

3956


How do you load first and last records into target table? How many ways are there to do it? Explain through mapping flows.

1207


Hello, Can you please send the admin and advanced mapping design sample questions to ns_sharmin@yahoo.com?

2425


Tell me about your experience in informatica? what is best mark you can give yourself? How to answer this question?

8299


Write the unconnected lookup syntax?

1161


Explain in detail about scd type 1 through mapping.

1656


can anybody send me some real time screenshots of mapping in informatica powercenter. i will be vary thankful to him. my e-mail id :- prakashkumar.kumhar@gmail.com

4802


What is dimensional table?

1174


Write the unconnected lookup syntax and how to return more than one column.

1179


1. When u r checking out what ll happens for version no? a. Increase b. decrease c.reset to 0 d. reset to 1 e. no change 2. Salary of all employees needed to add with the commision. What transfrmation to be used? a. SQ and Expression b. SQ c. Update Strategy d. Expression 3. Which of the task is used to run a session based on success of the other session? a. Decision b. Event wait c. Email d. Command e. None 4. Types of sources in Informatica? a. Homogenous n Heterogenous b. None c. Cobol n XML d. Flat files e. Flat files and Homogenous n Heterogenous 5. Servers are available in informatica? a. Informatica Server and Workflow server b. Informatica Server and Informatica Repository Server c. Informatica Server d. Workflow server e. Informatica Repository Server 6. While using Pmcmd in cmd line mode, each command must include the connection info of which of the following? a. workflow manager b. Power Center server c. Workflow monitor d. Repository manager e. Designer 7. Workflow montior displays workflows that have run a. once b. twice c. never d.four times e. thrice 8. Mode for handling sessions n workflows? a. server mode b. Wait mode c. Command line mode d. User mode e. Interactive mode 9. Connection details configured in? a. Mapping designer b. Workflow manager c. Workflow monitor d. Repository manager e. Worklet designer Thanks in Advance

4271


What is dimensional table? Explain the different dimensions.

1274