Suppose we have a csv file with contents as below which is
used has a source file.
C1,C2,C3,C4
100,200,A B,300
200,400,X,Y,299 ---> it should be 4 values but by mistake
300,600,C D,566 with a comma in between X & Y,its 5.
My target takes only 4 columns, How to take care of the 2
record as above without rejecting it and loading in the target.
Hope u guys have understood my scenerio
Answer Posted / abhinav
I am not sure if the solution I am going to post will
actually work but it is worth a shot:
1. Don't define a delimiter so that the records are read
as '100,200,A B,300' and '200,400,X,Y,299' and so on i.e.
as a single record. This is to ensure that all the records
pass the source-qualifier.
2. Now you have all the records including the faulty one in
SQ. Next, you put an expression where you use REPLACECHAR
to remove all the commas from all the records. Now ALL your
records will of the same length.
3. Next you can use SUBSTR to read the first 3 numbers to
get the first column, next 3 to get the second column and
so on and so forth to get proper data in proper columns.
My explanation might not be clear but I have a hunch that
this might work.
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
How to extract the informatica rejected data?
What is workflow monitor?
what are the fact table & dimensional table in pharmaceutical and hospotal related products???
How to join three sources using joiner? Explain though mapping flow.
What are the components of the workflow manager?
define galaxy repository in informatica
What are the static cache and dynamic cache in informatica?
Is it possible to create multiple domains on a single Informatica server?
Is it possible to use a client with different version than that of its Informatica server?
How are indexes created after completing the load process?
Why sorter is an active transformation?
Describe an informatica powercenter?
Plz can any one say me how to get the informatica certification materials and dumps
In informatica workflow manager, how many repositories can be created?
Can we get 1st record through Informatica(without sequence number).