top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Create a parameter file in an appropriate location with the following contents:

+4 votes
439 views

I have a scenario where my source file name will be coming from one db table I have to read that value and pass it in the value of Source File Name in Session properties.

Till now I have tried like I have created 2 sessions where the 1st session will read the db table where the source file name is stored and store it in one mapping variable and in post success variable assignment

I am assigning the mapping variable value to workflow variable and in the next main session I am trying to give the workflow variable in the session file name attribute .

But it is showing error like below

fail to expand variables in file field [$$WL_File].

How can I achieve this.

Please suggest some ideas.

posted Mar 13, 2014 by Madhavi Kumari

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

1 Answer

0 votes

In Target definition, on Columns tab you can click the "Add FileName column to this table". Then in the mapping whatever you'll pass to this port will be used as the file name, instead of the file name defined in session properties. Creating multiple output files is a bit more tricky and will require Transaction Control to tell when one file is completed.

answer Mar 13, 2014 by Shweta Singh
Similar Questions
+2 votes

I wanted to develep the workflow which continuously running and looking for the file..

The source file data is like this :

eno
10    
20    
30    
40

Once the file received in the FTP location , the workflow should automatically pick the file and load into the target Table.

The output of target table table will be like below

eno    Received
---    -------
10      Y
20      Y
30      Y
40      Y
50
60
70
80

the condition to load the target table would be [ Update EMP_TGT set Received='Y' where eno=' ]

+3 votes

I have a mapping like
SA-->SQ--->EXPR--->TGT

The source will be of the same structure and the tartget also.
There are a bunch of files(with the same structure) which will go through this mapping .
So i want to use a parameter file through which i will give the file names for every run manually.

How to use the param file in session for Source filename attribute
Please suggest..

+1 vote

How to check in informatica whether a flat file exists at a location at FTP server and to check if it has some data in it?

...