cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with File name

Former Member
0 Kudos

Hi All,

Iam doing File-File scenario.

I have some ten files on source side, where file name starts with flow.

So i have given File name as flow. in XI .

Now my requirement is i have to get the same name for Receiver side also .

Is ther any other way than the foollowing blog..

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Thanks,

Hem.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Hem,

Check Adapter specific message properties in sender and receiver file adapter.

In Sender file adapter use file name as flow.

In Receiver file adapter use File Name as .

This way you will get same filename on the receiver side.

Regards

Pravesh

Former Member
0 Kudos

Hi Sreenivas/Pravesh ,

So i dont need to create any UDF in this case?

Reg,

Hem

Former Member
0 Kudos

<i>So i dont need to create any UDF in this case?</i>

-


>

Yes .. you dont need to write UDF

By selecting Adapter specif Message Attributes in sender as well as receiver you will get receiver filename same as sender..

santhosh_kumarv
Active Contributor
0 Kudos

Hi Hem,

No need for UDF,

Just select the option File name under adapter specific message attribute in both the sender and receiver...

Regards

San

prasanthi_chavala
Active Contributor
0 Kudos

Hi Hem,

If you want to have a target file name same as the sender file name then no need of any UDF in the mapping. Just check the adapter specific attributes both in the sender and receiver communication channel.

Cheers,

Prasanthi.

Former Member
0 Kudos

Hi, Hem,

Yes, no need of the UDF.

Just go ahead with the Adapter specif Message Attributes and filename

Regards,

Sreenivas

Former Member
0 Kudos

Hi Prasanthi,

I have one question here,how can we handle if I have source file as XML and target as text file with FCC,but I want to get the same name as source file?

I tested by giving file name scheme as *.txt(file type = binary) ,it generated file ,but when I see the general properties of the file it says XML document,infact which is not.so when I tried to open with internet Explorer gives error,I have to choose notepad and then open it and it had text kind data.

and I tested other way,keeping file name scheme as . and filetype = text ,same problem.

what might be the problem,why it is not able to generate file of txt property?

do we need to use Dynamic variable process as suggested in the blogs?

thank you.

Babu

prasanthi_chavala
Active Contributor
0 Kudos

Hi Hem,

If the filename is present in the file content then you can go for variable substitution in the receiver communciation channel where you can take the file name from the payload itself.

Search in sdn blogs and you will get lot of blogs on variable substitution.

Regards,

Prasanthi.

Former Member
0 Kudos

Have a look at these blogs

There is another method to for it - variable substitution... The blog talks about the same

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

santhosh_kumarv
Active Contributor
0 Kudos

Hi Hem,

It is the only easiest wat to do this scenario....

Regards

San

Former Member
0 Kudos

Hi Hemchand,

in your sender and receiver channels just select "set adapter specific message attributes" and "file name". In receiver channel in filename field, give some dummy name as it mandatory.

Regards,

Sreenivas