cancel
Showing results for 
Search instead for 
Did you mean: 

How to run file-to-file scenario

0 Kudos

Hello,

I have just done my first exercise in XI, File-to-File Scenario.

I ran the scenario in RWB in Component Monitoring by giving the Payload from the Message Mapping. It ran successfully.

But I am not able to run the same scenario by giving my source file. What are the inputs to be given while running the scenario to read from the Input File ?

Could any help me out, how to run my scenario using my Input File.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Iam adding some more points to experts advice...

If u have the source XML file then u take that file and test it in message mapping...then u can clearly see whats the error is fi it is an mapping error.........if mapping is sucess then to know the exact error go to RWB and there check the comunication channel log.....there u can find the exact error.

Update the thread..

Regards,

Phani

Answers (11)

Answers (11)

Former Member
0 Kudos

Hi

First u check both the communication channel's, that u specified the correct directory(path) and file name, then check the directory wehre u have placced the file(casesensitive) for both the file and directory.

Then run in the RWB by clicking Adapter Engine, next Communication Channel, and enter the name space, communication channel, and start filter.....

Check that u have the access to the directory which you are specifing in the communication channel, some times there wont be access to delete are append to the directories which we specify in the communication channels

Hope it will be usefull to you for running your sceniro successfully...

Thanks & Regards

Anil

Edited by: Venkat Anil Gannavarapu on Apr 4, 2008 8:11 AM

Former Member
0 Kudos

hi

first configure the IR part. in message mapping check the mapping is correct or not. then give the values for the input fields. check the mapping with the TEST tab and then copy the whole file into a notepad and give the extension as .xml(ex:name.xml).

then put the file in the specified directory (which u have access to). give the file name and the path of the input directory in the Sender communication channel.

if there are any probelms u can check in the RWB:

go to component monitoring then click on display and then click on adapter engine then clcik on communication channel monitoring then we get all the options such as communication channel name,adapter type,direction,service,namespace.

give the appropriate data n we cwhere the probelm is.

regards.

Former Member
0 Kudos

Hi Shashidhar Vaddepally

follow the following steps

1) during mapping enter the test values for the input fields

2) click on the test view tab , then click inside the window and copy thw whole text file into a notepad and save it witha name with extension XSl for Example : Vendor.xsl

3) put this file in your input directory

4) kindly check the rights on the input directory folder, give full rights to the folder

5) in sender communication channel give the path of the input folder and name of the input file

remember name is case sensitive

6) give right path of output directory also check the rights on output folder also

now your file should be successfully pickedup

thanks

sandeep

PS: if helpful kindly reward points

Former Member
0 Kudos

Hi Shashidhar,

As u said that the message mapping is also current it means that there is some mistake in Communication Channel or Configuration.

In Communication channel Once check Processing mode boz depending on it our target file depends.And also check adapter status.Specify correctly Source Directory & File name.

If u r done with this then check inConfiguration.

U can check it by going to Tools -->Test Configuration and there specify Sender -- Communication Party,Service,Interface & Namespace.In receiver side specify -- Communaication party & service.Paste the Xml data in Payload and run it..Clearly u can check where it is going wrong.

0 Kudos

Hi Sweety,

Thanks for your reply.

I will try the Test Configuration and revert back if any help required.

Thanks,

Shashidhar

Former Member
0 Kudos

hi

after creating your IR and ID

then check the sender channel and Receiver channel

check the path of sender channel and put the payload file that is check message mapping and test it a

after the testing copy the file and store in to the folder that you have

created

and

in Receiver channel same thing give the path of the target folder and

chcek in to the runtime workbench

there is no any prob in the runtime workbench means its showing the succsfulley in RW and file on coming in to the target system

if all work correctly then also not showing means the file is in queue

so Refrsh the queue athewise delete the queue

thanks

i hope it will solved

Regards

Vijay

Edited by: Vijay Yewale on Apr 3, 2008 3:12 PM

Former Member
0 Kudos

Hi,

How did u give the payload message in component monitoring.

If that scenario works fine, did u get the successful message in moni and also got the output file generated in the target.

Also let me know what is your source directory and target directory and wat protocol you are using FTP or NFS.

Regards,

Nithiyanandam

0 Kudos

I copied the XML code from the Source of Test Message Mapping and pasted it in the Payload.

Yes, I got the successful message in SXMB_MONI and the target file is also created in XML format.

My source file path is C:/SEND.TXT and target file path is C:/Test/RECV.TXT

Protocol used is NFS.

Thanks.

former_member194786
Active Contributor
0 Kudos

Hi Shashidhar,

Copy the xml input and save it as a .xml file. And in the communication channel provide the source/target directory path and file name as xyz.xml.

Thanks and Regards,

Sanjeev.

0 Kudos

Is there anything to do with the Parameters TAB of Testing Message Mapping ?

There are some default values. Should we change any of them?

Thanks,

0 Kudos

I am new to XI.

My source file is .TXT file.

Could anybody please explain in detail how to run so that it picks my source file and places it in my target folder.

Are there any restrictions to place the source file in certain directory or drive ?

Thanks,

agasthuri_doss
Active Contributor
0 Kudos

Hi,

>Are there any restrictions to place the source file in certain directory or drive ?

The Folder should have the Right to read,write, if Delete also fine ( 777 )

Regards

Agasthrui Doss

agasthuri_doss
Active Contributor
0 Kudos

Hi,

>Could anybody please explain in detail how to run so that it picks my source file and places it in my target folder.

check whether the Sender File Adapter is Active, The File Name to Picked up should Match the File available in the FTP Server.

Regards

Agasthuri Doss

Former Member
0 Kudos

Hi Shashidhar,

There is no big difference between the f2f scenario's xml and txt to transfer from source to target. just one small change,

in the sender(outbound) Communication channel at Message Protocol specify the "File Content Conversion". insted of "File".

In the f2f scenario if u have to send xml at the source to the target you will specify the "File" in the Message Protocol, insted of that you specify "File Content Conversion".

Hope you required the xml at the target side for that give "File" at the Message Protocol are else give File Content Conversion"

Hope this will solve your Doubt

Thanks & Regards

G.V.Anil

Former Member
0 Kudos

Hi,

Please DO the following:

1.You Should have set up a communication channel.

2. In case you Use FTP, please configure your FTP Server Details in the Sender Channel,

have a Look at the BLOg :

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4463] [original link is broken] [original link is broken] [original link is broken]; - EOIO - File

3. Place you File in the FTP site and XI would Automatically poll it.

4. Do similar to the NFS drive if you use NFS.

Hope it helps.

please let me know if you need more information on Files.

Reward points if useful

regards

Abhishek

agasthuri_doss
Active Contributor
0 Kudos

Hi,

Adding to Expert Raj Post,

>But I am not able to run the same scenario by giving my source file. What are the inputs to be given while running the scenario to read from the Input File ?

1)In the Sender Adapter check whether the File Name is Mentioned Correct ?

2) Check whether the Sender File Adapter is Active

3)RWB..For the Sender File Adapter look at the Status ( Active or not )

Regards

Agasthrui Doss

justin_santhanam
Active Contributor
0 Kudos

Shasi,

Copy the input payload from Test Message of Message Mapping save as xml file, Place them in your polling directory. Make sure your comm.channel is working correctly.

raj.