top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

EDI in Informatica

+1 vote
239 views

am trying to map EDI 834 XSD with transaction tables in database.

I want to know some things

1> DO i need to take one expression transformation for one segment from 834 xsd means 1 expression for ISA, one for GS, one for ST and so on

2> whwn ever i am tring to join two expression through joiner, it is sotrting all the values which is disurbing every things

EX. there are 2 ST in one 834 input file and there are 2 INS coresponding to them

in EXP1
ST
123
547

and in EXP2
INS
549
963

they are in 2 expressions, now when i am trying to join these 2 expression through a dummy condition the output that i am getting is

ST      INS
123     549
123     963
547     549
547     963

means there is no relation whether which INS belong to which ST

the output should be

ST     INS
547    549
123    963

Is there any other solution to it.

Can someone plese tell me how can to do it

posted Mar 19, 2014 by Pooja Bhanout

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

The problem seems to be the dummy join condition is failing.

I suggest that in all of your input Expressions you add a port that acts as a row count.

• Add a variable port V_COUNTER (Expression: IIF(V_COUNTER=0,1,V_COUNTER+1))
• Add an output port O_COUNTER which outputs the value V_COUNTER

And you change you Joiner to join on these new O_COUNTER ports.

answer Mar 19, 2014 by Shweta Singh
Similar Questions
0 votes

My source data is :

ID TimingID Timingtype
1 100 supplier
1 102 dealer
1 103 dealer
2 200 xyz
2 205 abc

I want my target to be like this :
ID T1_TimingID T1_Timingtype T2_TimingID T2_Timingtype T3_TimingID T23_Timingtype
1 100 supplier 102 dealer 103 dealer
2 200 xyz 205 abc null null

Kindly suggest.

Regards
Sandeep Nanda

+2 votes

I have this informatica requirement where, i am getting some files say 1000 files, these files gets divided into multiple folders on unix server. i want to rename this file, let me give you an eg:

File name:input
abc1.txt
abc2.txt
abc3.txt

Now I want to change these file names by adding account_no,client_no,datestamp(all these values resides in one table). eg:
abc1_123_123_date.txt
abc2_456_321_date.txt
abc3_789_765_date.txt

This is just an eg: ..like this I ll be having say 10 listfiles and each listfile ll contain 100 files.Do i need to create 10 mappings for each listfile or is there any way that i can implement this in single mapping.

Please note:I cannot club all files in one folder and then change the file names and then again divide into original directories, as sometimes we get files in separated directories and we have to change there name and keep them in that particular folder only(for other business logic).

Kindly provide solution for this.

+1 vote

I have a CSV which has 1000 records. I need to split the CSV dynamically based on the rownumber to multiple CSV's.

For example:
MainCSV:
1
2
3
....
100

Output:
CSV 1:
1
2
..
50

CSV 2:
51
52
..
100

CSV 3:
101
102
..
150

Has to generate csv's dynamically till Main-CSV finishes its records.

How can we do this in informatica?

+1 vote

The command to convert from .xlsx to csv works in putty, but the same when given in informatica fails....I am getting exit error code 32512.

The workflowlog >>

Severity    Timestamp   Node    Thread  Message Code    Message
INFO    9/8/2016 5:28:20 PM Node_BIDEV  140284941813504 LM_36621    Command task instance [Convert_csv]: started command [convert], with pid [14121] on node [Node_BIDEV].
ERROR   9/8/2016 5:28:21 PM Node_BIDEV  140285390595840 LM_36623    Command task instance [Convert_csv]: execution of command [convert] did not complete successfully with exit code [32512]
WARNING 9/8/2016 5:28:21 PM Node_BIDEV  140285390595840 LM_36626    Command task instance [Convert_csv]: previous command [convert] failed and "run if previous command succeeded" option is set, the remaining commands will not be run.
ERROR   9/8/2016 5:28:21 PM Node_BIDEV  140285390595840 LM_36320    Command task instance [Convert_csv]: Execution failed.
WARNING 9/8/2016 5:28:21 PM Node_BIDEV  140285390595840 LM_36373    Workflow [wf_CUSTOMER_SURVEY_CORE_DailyFiles] is suspended.
INFO    9/8/2016 5:28:22 PM Node_BIDEV  140285390595840 LM_36375    Workflow [wf_CUSTOMER_SURVEY_CORE_DailyFiles]: Sent suspension email to email user 
WARNING 9/8/2016 5:28:27 PM Node_BIDEV  140284973283072 LM_36371    Workflow [wf_CUSTOMER_SURVEY_CORE_DailyFiles] is aborting.
WARNING 9/8/2016 5:28:27 PM Node_BIDEV  140284973283072 LM_36322    Workflow [wf_CUSTOMER_SURVEY_CORE_DailyFiles]: Execution aborted.

The command script I am using is

libreoffice --headless --convert-to csv:"Text - txt - csv (StarCalc)":"126,0,76,1,2" /var/opt/load/Sourcedata/CUSTOMER_SURVEY/2016Q2_ML_V1.xlsx

Please help me...

...