Sender File adapter - Message per recordset
Hi All,
I have a scenario in where I have to split a large file (txt) into smaller files and then process them in PI.
Normally I use FCC and message per recordset... It splits all messages and everything is ok.
BUT, now I have to split the messages at specific key points. I cannot split it by a static number. It may vary. It is totally dynamic.
So I want to use the adapter module to write my own code to split the message when I need to. but how?
When using the FCC the messages get split before they even arrive at my adapter module. So is it possible to split them manually using adapter module???
Thanks.
Hi Chris,
These are my thoughts on this issue. 40 MB (larger file) need to be split into small files (according to your requirement, at dynamic key points).
You can split large file using OS script, but it cannot be monitored using SAP PI infrastructure. I think you are considering writing an adapter module. So, I assume your PI system can handle that large file (40 MB) in memory. My opinion is, do not go with adapter module, as it is difficult to code, maintain and memory intensive. Try to create another new scenario, which picks up this large file, splits it into small pieces and place these small files in folder, from where current scenario picks up files. In new scenario, use Java Mapping (as input in not XML, we cannot use Graphical, XSLT) to split the payload at dynamic key points using OutputAttachments http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/OutputAttachments.html .
Hi All,
I have seen messages with multiple attachments which were processed in SAP PI (I have seen multiple attachments in SXI_MONITOR). I have not tried using OutputAttachments http://help.sap.com/javadocs/pi/SP3/xpi/index.html . Please let me know, whether we can generate multiple files from multiple attachments and place them in target directory using receiver file channel?
Regards,
Raghu_Vamsee
Similar Messages
-
FCC Sender file adapter : Message Spitting 1:2
Hi expert
i am execuing a file to file scenario, with message splitting 1:n
1 source MT and 2 Target MT.
My source MT structure becomes as
Message
....Message1
.......SourceMT
................row
....................Field1
....................Field2
Now how to configure this structure at Sender file adapter
File Content Converson.
as after adding to MT at target side in message mapping...
2 extra hedder are added at source MT..
Regards
ajayp> Message
> ....Message1
> .......SourceMT
> ................row
> ....................Field1
> ....................Field2
>
> Now how to configure this structure at Sender file adapter
> File Content Converson.
>
> as after adding to MT at target side in message mapping...
>
> 2 extra hedder are added at source MT..
Ignore 2 extra header and do your FCC as you do in normal scanario. -
KeyFieldValue in Sender File Adapter Not Working
Hi,
I have a flat file like this...
1Field1Field2Filed3.....
2Field1Field2Field3....
1Field1Field2Filed3.....
2Field1Field2Field3.....
1Field1Field2Filed3.....
2Field1Field2Field3....
My requirement is to pick only lines starting with '1'.
I have configured the Sender File Adapter like this,
Recordset Structure : SOURCE,*
Key Field Name: KF
Key Field Type : String(Case-Sensitive)
File Content Conversion:
SOURCE.fieldFixedLengths 1,5,5,5....
SOURCE.fieldNames KF,FIELD1,FIELD2....
SOURCE.keyFieldValue 1
After all this, still it picks up all the recored instead of records starting with '1'. Can any one solve this?
Regards,
SreedharIf you feel module processor is bit tough you can use XSLT Mapping which is simple in sloving ur problem.
Check this blog to do a sample example using module processor.
/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
To implement the above check this link....
https://websmp201.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
/people/gowtham.kuchipudi2/blog/2006/01/13/stop-creation-of-an-empty-file-from-file-adapter-using-module -
Recordset per message in Sender File Adapter
Hi Friends
I have configured a sender file adapter to pick up *.txt files from a specific path, Since the file is having thousands of records it is failing to process the file at PI level . In order to avoid the problem I have kept Recordset Set Per Message as 10 , but still PI is processing all the records into a single message. Please help me in troubleshooting it.
Regards
Suman.Hi Suman,
Go thru these threads for troubleshooting...
Massive file
Processing huge file loads through XI
Processing of huge no of Inbound xml files
Bottleneck in Large file processing
How to process large data files in XI ? 100 MB files ?
Regds,
Pinangshuk. -
Sender File Adapter cannot send single record per message ?
Hi,
I have scenario flat file to jdbc. but then why the sender file adapter didn't split the record to become single record per message eventhough i have set it in "Recordsets Per Message" = 1. ?
Document Name MT_APINVOICE
Document Namespace urn:file:jdbc:apivinvoice
Document Offset 8
Recordset Name INPUT
Recordset Namespace
Recordset Structure RECORD,*
Recordset Sequence Ascending
Recordset per Message 1
Key Field Name
Key field Type String
RECORD.fieldFixedLengths 10,5,10,10
RECORD.endSeparator 'nl'
RECORD.fieldNames F1,F2,F3,F4
Please advise
Thank You and Best Regards
Fernand>>but then how to make for example more then 1 records per message.
like 10 records per message. should i set RECORD,10 ?
That is right. Just try it out yourself.
@Shesagiri,
Number of record is decided by the parameter Recordset structure and number of recordset with in a message is decided by Recordset per Message.
Regards
Jaishankar -
Sender File Adapter - No error, but not generating any message
I am working on a file to RFC scenario. The sender file adapter is using content conversion to read a comma delimited file. The file is being picked up and archived correctly, and the adapter monitor does not show any errors. However, the process disappears at this point. I don't see any messages in SXMB_MONI, and there is no sign that the process is reaching the RFC adapter. Has anyone ever had this happen before?
I have four line types for Buildings, Additions, Floors, and Rooms.
I list all four in the recordset structure, and I identify a key for each with the keyFieldValue parameter. I list a fieldSeparator of ',' and an endSeparator of 'nl' for each row. And i have a list of the fieldnames in the fieldnames parameter.
The only thing i'm not sure about is the keyFieldinStructure parameter. I have specified ignore there, because I don't want that field in my XML. Do I still need that field in my sender datatype, even if I'm ignoring it, or can I leave it out?
Thanks for any help. Please don't just list blogs unless they have something you think is helpful with my specific problem. I have already read all of the blogs that deal generally with the sender file adapter and file content conversion, and I need more specific help at this point.I made one error before, it IS showing up in the Recovered Adapter Audit Log (it took that log about 10 minutes to open that particular tab so I didn't notice them there).
Here is what it says there:
2006-06-12 11:22:59 Success Channel CC_S_File_FIPM_Buildings: Entire file content converted to XML format
2006-06-12 11:22:59 Warning Channel CC_S_File_FIPM_Buildings: Empty document found. Proceed without sending message
2006-06-12 11:22:59 Success File "/interfaces/one line building.txt" archived after processing
Here are my parameters in the file content conversion:
Buildings.fieldNames RecordType,PLTXT,STORT,STREET,POST_CODE1,CITY1,REGION,PARNR,X_COORD,Y_COORD,ASSIGN_SQ_FT,BLDG_NUM,CAMPUS,GR_SQ_FT,NET_SQ_FT
Buildings.keyFieldValue 'B'
Buildings.fieldSeparator ','
Buildings.endSeparator 'nl'
Buildings.keyFieldInStructure ignore
Additions.fieldNames RecordType,ASSIGN_SQ_FT,BLDG_ABBR,CAMPUS,ADDITION,BLDG_USE,BLDG__NUMBER
Additions.keyFieldValue 'A'
Additions.fieldSeparator ','
Additions.endSeparator 'nl'
Additions.keyFieldInStructure ignore
Floors.fieldNames RecordType,BLDG_ABBR,CAMPUS,ADDITION,FLOOR,ASSIGNABLE_SQUARE_FOOT,BLDG_NUMBER
Floors.keyFieldValue 'F'
Floors.fieldSeparator ','
Floors.endSeparator 'nl'
Floors.keyFieldInStrucutre ignore
Rooms.fieldNames RecordType,SHTXT,MSGRP,ADDITION,ASSIGNED_DEPT,BLDG_ABBV,FLOOR_CAMPUS,AREA,RCD_CODE,DEPT_CODE,BUILDING_NUMBER,ROOM_COMMON_KEY
Rooms.keyFieldValue 'R'
Rooms.fieldSeparator ','
Rooms.endSeparator 'nl'
Rooms.keyFieldInStructure ignore
And here is my data type:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_FIPM_BuildingUpdate xmlns:ns0="urn:XXXXXX:FIPM:Buildings:SYS">
<Buildings>
<PLTXT/>
<STORT/>
<STREET/>
<POST_CODE1/>
<CITY1/>
<REGION/>
<PARNR/>
<X_COORD/>
<Y_COORD/>
<ASSIGN_SQ_FT/>
<BLDG_NUM/>
<CAMPUS/>
<GR_SQ_FT/>
<NET_SQ_FT/>
</Buildings>
<Additions>
<ASSIGN_SQ_FT/>
<BLDG_ABBR/>
<CAMPUS/>
<ADDITION/>
<BLDG_USE/>
<BLDG_NUMBER/>
</Additions>
<Floors>
<BLDG_ABBR/>
<CAMPUS/>
<ADDITION/>
<FLOOR/>
<ASSIGNABLE_SQUARE_FOOT/>
<BLDG_NUMBER/>
</Floors>
<Rooms>
<SHTXT/>
<MSGRP/>
<ADDITION/>
<ASSIGNED_DEPT/>
<BLDG_ABBV/>
<FLOOR/>
<CAMPUS/>
<AREA/>
<RCD_CODE/>
<DEPT_CODE/>
<BUILDING_NUMBER/>
<ROOM_COMMON_KEY/>
</Rooms>
</ns0:MT_FIPM_BuildingUpdate>
I'm going to recheck everything again, but maybe you guys will see something? I don't.
Vanda -
Sender File Adapter: No Messages
Hi,
I have configured a sender file adapter to read a flat file using file format conversion, in the file poler mode using NFS. I could confirm that the File is being read, and the adapter status from the Adapter framework (is:port/AdapterFramework) indicates the adapter is working fine (Green light, and last message processed at XXX........).
However, I did not find any messages from SXMB_MONI.
Further, I got inot the RWB, and found the following Audit log:
It indicates an error "Transmitting the message to endpoint http://kansbwul01:50000/sap/xi/engine/entry?action=execute using connection AFW failed, due to: Received HTTP response code 404.."
What is the problem, and how can I resolve it?
Thanks
Feroz
Success Channel CDWFileReader: Entire file content converted to XML format
Success Send text file "/tmp/XIDemo/3315-TL-20041126-0000IN.txt", size 164533, character encoding ISO8859-1 with QoS EO
Success Application attempting to send an XI message asynchronously using connection AFW.
Success Trying to put the message into the send queue.
Success Message successfully put into the queue.
Success The application sent the message asynchronously using connection AFW. Returning to application.
Success Confirmation mode test found. File will be resent next time
Success The message was successfully retrieved from the send queue.
Success The message status set to DLNG.
Error Transmitting the message to endpoint http://kansbwul01:50000/sap/xi/engine/entry?action=execute using connection AFW failed, due to: Received HTTP response code 404..
Success The asynchronous message was successfully scheduled to be delivered at Sun Jan 09 19:13:21 CST 2005.
Success The message status set to WAIT.Hi,
Further to my earlier post, the following is the message log from the message monitor. Any clues whats going wrong. Can I configure a File Sender->File Receiver scenario?
Where and how are the port settings and user credentials configured for the AFW.
-Feroz
Message ID f49f6d21-632c-11d9-805a-0003ba54d619
RefToMsg ID
Conversation ID
Sequence Number 0
Message Type Asynchronously Sent Message (SEND)
From Party
From Service Name: LB1_CDWFilePoler
To Party
To Service Name: LB1_CDWFileWriter
Action Namespace: http://erc.ge.com/cdw/poc Name: ReadFile
Connection Name AFW
Status Not Delivered
Profile XI
Transport HTTP
Delivery Semantics Exactly Once
Times Failed 4
Number of Retries 3
Sent / Received 01/10/2005 12:42:33
Transmitted / Delivered 01/10/2005 12:57:33
Next Delivery 01/10/2005 12:57:33
Persist Until 02/09/2005 12:42:33
Valid Until
Retry Interval 5 Minutes
Address http://kansbwul01:50000/sap/xi/engine/entry?action=execute
Credential SAPPasswordCredential(XIAFUSER):password=********:sapclient=100:saplang=
Transport Headers SOAPAction="http://sap.com/xi/XI/Message/30" Content-Type=Multipart/Related; boundary=SAP_63fa9d21-6337-11d9-8f3c-0003ba54d619_END; type="text/xml"; start="" HTTP=POST
Node ID 1485750 -
Duplicate message handling in the sender file adapter
Hi,
I enabled duplicate file handling check in the sender file adapter so that whenever there is a duplicate file it should send me an alert also it should disable the channel so that i do not get that duplicate file alert message again and again.
My question is will it activate the channel again as soon as a new file arrives or do i need to manually do that.
Michal's PI tips: Duplicate handling in file adapter - 7.31Hi Hema,
You will have to activate the channel manually. The idea behind the 'disable' functionality is to avoid further file processing through that channel which can only start once the channel is activated again manually.
Regards,
Abhishek -
Problem in Sender File Adapter using FCC with Variable structure
Hi Experts,
Hi Experts,
I have facing an issues while using FCC in Sender File adapter. Below are the configs for the same:-
Recordset structure required is ==HEADER,1,DATA,*,TRAILER,1
Recordset per message == *
Key Field Name == Key
(Sorry i dont know how to insert screen shot here..pls tell me how can i insert screen shots here on sdn)
HEADER.fieldSeparator ,
HEADER.endSeparator u2018nlu2019
HEADER.fieldNames Key,x,y,zu2026
HEADER.keyFieldValue 1
HEADER.keyFieldInStructure ignore
HEADER.fieldContentFormatting trim
HEADER.additionalLastFields ignore
HEADER.missingLastFields ignore
DATA.fieldSeparator
DATA.endSeparator
DATA.fieldNames
DATA.keyFieldValue
DATA.keyFieldInStructure
DATA.fieldContentFormatting
DATA.additionalLastFields
DATA.missingLastFields
Using same variables for Trailer record as well.
Source CSV file which i am picking:-
ADSE ,RASD,replan Contact ,2 0080509 0 8:43:25 ,
EMPL ,0011111, S Top Up ,20080401 ,20080430 ,sdf , 00000000431250 ,2007 , , , , , ,20080414 18:07:35,
EMPL ,0222222, r Cash Award ,20070701 ,20070703 ,ded , 00000000023509 ,2007 , , , , , ,20080414 18:09:31,
EMPL ,0233333, Cash Award ,20070801 ,20070831 ,df , 00000000044057 ,2007 , , , , , ,20080414 18:10:56,
EMPL ,0244444, Cash Award ,20080101 ,20080111 ,sf , 00000000026717 ,2007 , , , , , ,20080414 18:08:29,
BTRL , 5140,
When i tested the scenario and monitored it using MDT in CC monitoring tool its giving me below mentioned error.
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource 'http://myurlname/mdt/me...
However if i change the occurence of DATA as some specific value for eg 4 instead of * it works fine.
Kindly help me in solving this problem.
Thanks,
Aditya VermaHi Madan,
Thanks a lot for giving me the way to this. But when i tested this with the below file its giving me the same error. Please let me know if i need to do any changes to the parameters mentioned above:-
ADSE ,ASDA,Sha replan Fr ont Feed Contact ,2 0080509 0 8:43:25 ,
EMPL ,0011111, Cash Top Up ,20080401 ,20080430 ,TPV , 00000000431250 ,2007 , , , , , ,20080414 18:07:35,
EMPL ,0222222, r Cash Award ,20070701 ,20070703 ,TPV , 00000000023509 ,2007 , , , , , ,20080414 18:09:31,
EMPL ,0233333, r Cash Award ,20070801 ,20070831 ,TPV , 00000000044057 ,2007 , , , , , ,20080414 18:10:56,
EMPL ,0244444, Cash Award ,20080101 ,20080111 ,TPV , 00000000026717 ,2007 , , , , , ,20080414 18:08:29,
EMPL ,0255555, Cash Award ,20080301 ,20080320 ,TPV , 00000000027870 ,2007 , , , , , ,20080414 18:08:25,
EMPL ,0266666, Cash Award ,20071001 ,20071020 ,TPV , 00000000020681 ,2007 , , , , , ,20080414 18:09:31,
EMPL ,0877777, Cash Top Up ,20080401 ,20080430 ,TPV , 00000000036000 ,2007 , , , , , ,20080414 18:07:05,
EMPL ,0888888, Leaver Cash Award ,20071201 ,20071231 ,TPV , 00000000157200 ,2007 , , , , , ,20080414 18:11:29,
EMPL ,0899999, S Leaver Cash Award ,20080301 ,20080331 ,TPV , 00000000153530 ,2007 , , , , , ,20080414 18:07:42,
EMPL ,0800000, S Leaver Cash Award ,20070701 ,20070731 ,TPV , 00000000012234 ,2007 , , , , , ,20080414 18:08:34,
BTRL , 5140,
This the original csv file which i'll get in live. Kindly suggest as ur solution worked with other file but not working with this scv file.
Thanks a lot,
Aditya. -
Required Changes in FCC Paramenters for Sender File Adapter.
Hi
I am Doing File-File Scenario.I am using FCC in the Sender File Adapter. I have defined the structure as below.
My Source Structure
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Source xmlns:ns0="http://city.net/filecopy">
<Message>
<Id>123</Id>
<Head>
<Id>123</Id>
<Filename>test.xml</Filename>
</Head>
<Body>Helloworld</Body>
</Message>
</ns0:MT_Source_FILE>
So for the above structure, I have defined the FCC Parameters as
Document Name: MT_Source (Message Type)
Document Namespace:http://city.net/filecopy(Namespace)
Recordset Name: Message (root node)
Recordset Structure: Message,1,Head,1
Recordset Sequence: Ascending
Recordsets per message:1
Keyfield Type: string
In the Table Rows I have defined
Message.fieldFixedLengths: 3,10
Message.fieldNames: Id, Body
Message.fieldSeparator: ,
Message.endSeparator: 'nl'
Head.fieldFixedLengths: 3,8
Head.fieldSeparator: ,
Head.endSeparator: 'nl'
Head.fieldNames: Id, Filename.
My Input Text file
123,Helloworld
123,text.xml
I am Getting Output as
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_Source xmlns:ns="http://city.net/filecopy">
- <Message>
- <Message>
<Id>123</Id>
<Body>HelloWorld</Body>
</Message>
- <Head>
<Id>123</Id>
<Filename>test.xml</Filename>
</Head>
</Message>
</ns:MT_Source>
I should get Body field after Head Structure as in the Source Structure, So Please what changes do I need to do in the Parameters Specified above to get the desired Output.
So How should I define the FCC Paramenters For Sender File Adapter ?
Any Help Would be Appreciated.
Regards,
VarunHi Everyone,
I could Succeed to some extent.
I have defined the parameters as follows
Recordset Structure: Message,*,Head,1
Key Field Name: KZ
Key Field Type: integer
In the table, I defined the Parameters as
Message.fieldFixedLengths:1,3
Message.fieldNames:KZ,Id
Message.keyFieldValue:1
Message.keyFieldInStructure:ignore
Message.fieldSeparator:,
Message.endSeparator:'nl'
Head.fieldFixedLengths:1,3,8
Head.fieldNames:KZ,Id,filename
Head.keyFieldValue:2
Head.keyFieldInStructure:ignore
Head.fieldSeparator:,
Head.endSeparator:'nl'
Message.fieldFixedLengths:1,11
Message.fieldNames:KZ,Body
Message.keyFieldValue:3
Message.keyFieldInStructure:ignore
Message.fieldSeparator:,
Message.endSeparator:'nl'
My source text file
1,123
2,123,test.xml
3,Hello World
my output is
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_Source xmlns:ns="http://city.net/FileCopy">
- <Message>
- <Message>
<Id>123</Id>
</Message>
- <Head>
<Id>123</Id>
<Filename>test.xml</Filename>
</Head>
</Message>
</ns:MT_Source>
I got the output almost correct except I am not getting the value in the Body
Any help would be appreciated.
Please correct me If I am wrong.
Regards,
Varun
Edited by: Varun on Sep 2, 2008 12:06 PM
Edited by: Varun on Sep 2, 2008 12:15 PM -
Sender File Adapter - FCC - No incoming field separator - How to do FCC?
Hi,
I have a sender File adapter and I need to do the File Content Conversion but there apparently no incoming field separator and the file ocntains just running text - no data records but just information.
For example the incoming file is something like:
The Hongkong and Shanghai Banking Corporation Limited 27JAN2009 PAGE 1
Incorporated in Hong Kong with limited liability
ABC IAL LIMITED ABU DHABI, UAE
ABC MIDDLE EAST Account No. 001-8888888
ABU DHABI Payment Set AAA
BBB MAIL BOX NO.99 Contact Person ABC LIMITED
7777777777 Telephone
AUTOPAY LIST - PROCESSED
(AUTOPAY-OUT SALARY)
Payment Date 27JAN2009
First Party Narrative . 66666666
Second Party Narrative .
The Message type that I am mapping to contains:
MT_XXXX
WA
Item
Item2
Item3
This is so that the information can be mapped to different field areas and send across to the Receiver Mail Adapter. In the mail i receive, i get the running text. I tried giving the field separator as '0x09' but it is not working.
I have also tried WA..fieldContentFormatting to nothing but again no luck.
I have tried with Recordset Sequence with Ascending and variable and have also tried Recordsets per Message with * and blank - but it did not help.
Please advice.
Regards,
ArchanaHi,
I assumed that it was tab but when I made the change in FCC, it did not work.
I would still like to have a output where it looks like below if more than 2 types of information in 1 line as below:
ABC IAL LIMITED ABU DHABI, UAE
ABC MIDDLE EAST Account No. 001-9999999999999
and not something like:
ABC IAL LIMITED ABU DHABI, UAE
ABC MIDDLE EAST Account No. 001-999999999999
I am not sure what to do here.
Help please.
Regards,
Archana -
Sender File Adapter Not Showing in Decentral Adapter Engine
Hi,
We have recently implemented a Decentral Adapter Engine on a windows box. The adapter engine seems to be working fine because my adapters show and seem to work fine in it.
However, when I define a Sender File Adapter that uses File Content Conversion message protocol instead of just File messaeg protocol, the adapter does not show up in the decentral adapter engine.
I made sure that Adapter Engine parameter in the Sender File Adapter shows the new adapter engine but that does not seem to be working. If change the Adapter Enginer parameter to show the Central Adapter Engine, then I can see the Sender File Adapter on the Central Adapter engine and it works fine. (Note: The Central Adapter Engine is installed on a Unix box)
Here are the paramters I defined for the Sender File Adapter:
- Transport Protocol: File System (NFS)
- Message Protocol: File Content Conversion
- Adapter Engine: (new Adapter Name)
Source Directory: (
server/drive/path)
File Name: purchaseOrder.txt
Quality of Service: Exactly Once
Poll Interval (secs): 60000
Poll Interval (msecs):
Retry Interval (secs):
Processing Mode: Archive
Add Time Stamp (checked)
Archive Direcotry: (
server/drive/path/archive)
Process Read-Only files: (not checked)
Processing Sequence: By Name
Fiel Type: Text
File Encoding:
Operating System Command:
Additional Files (not checked)
Content Conversion Parameters
Document Name: MT_Request_File_Data
Document Namespace: http://nxy.tots/fg_admin
Document Offset:
RecordSet Name: Purchasing
RecordSet Namespace:
RecordSet Structure: Purchase_Record,*
RecordSet Sequence: Ascending
RecordSets per Message: 1
Key Field Name:
Key Field Type: String(Case-Insensitive)
Purchase_Record.fieldFixedLengths: 8,4,2,10,10,12,18,12
Purchase_Record.fieldFixedType: char
Purchase_Record.fieldNames: Request_Action,Request_PO_Num,Request_PO_LN,Request_PO_Date,Request_Purchasing_Org,Request_Purchasing_GName,Request_Created_By,Request_Vendor_Name
Purchase_Record.fileContentFormatting: trim
Adapter Status: Active
Advanced Mode: (not checked)
Your help is much appreciated.Hi Alaa,
look into this document:
http://service.sap.com/nw-howtoguides -> Exchange Infrastructure -> Troubleshooting: Adapter Engine 3.0 (Expert Call slides)
If the File Adapter works without conversion, then you should count the number of fields in a row. If it differs from the configuration, then it runs on error.
Another idea is to check the content type of the file. When you do not enter a File Encoding, then the file adapter assumes utf-8. If the file is for example latin-1, then the number of characters in a row are not counted correctly.
Regards
Stefan -
XML validation in sender file adapter
Hi
I am using FCC on the sender file adapter ....i need to make sure that one of the fields should always be integer else the sender adapter should give error
Can i use xml validation with FCC on the sender file adapter?Hi Hema,
As per understanding you need to check one or few fields value is integer or not.
You can achieve in 2 ways :
Case1:Using inbuilt xml validation options.
For 7.11 and below
1)In ESR/Message type/Export the xsd to local machine.
2)Insert the xsd file in the below loc
/usr/sap/<sid>/DVEBMGS00/j2ee/cluster/server0/validation/schema/
<guid>/<namespace1>/<service_interface_name>/<namespace2>
<sid>: System ID of the server instance.
<guid>: The GUID of the SWCV.
<namespace1> : The namespace within which the service interface is defined.
<service_interface_name> : The name of the service interface.
<namespace2>
: The namespace of the Message Type used by the service interface. In many
instances, namespace1 and namespace2 are the same.
Italic path folders need to create by you.
For 7.3 and above
Michal's PI tips: XML validation - changes in 7.3
Case 2 :Handling using simple UDF.
Input-->UDF-->Output
try {
Integer.parseInt(input);
return input ;
catch(NumberFormatException e) {
throw new StreamTransformationException( "Input field value for xyz field "+input+"is not in integer format.Plz correct it");
Regards
Venkat -
Is Sender File Adapter always throws error when there is no file?
Hi,
I have a simple question but can't find a straight answer to it. I have a Sender File adapter that configured to pick up file XXX* from FTP server every 1 hour. But a file can come every 2, 3, or 7 hours- no certain time.When there is no file I got "File not found " error. As we use alerts, this behaviour is not acceptable.
Does this error comes always if there is no file? Any possible way to avoid this error ?
Thanks for help.
NataliyaHi Ravi,
I can see the error in Runtime Workbench under CC monitoring. To be precise it says:
An error occurred while connecting to the FTP server '1X.1XX.XX.XX:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 552 RMS-E-FNF, file not found, ES4_SAP*'. For details, contact your FTP server vendor.
My ftp server has the following set up:
Server: xx.xxx.xx.xx
Port:21
Dataconnection:Active
Timeout:120
Connection secuirity: None
User name .... etc set up.
Connect mode: Per file transfer
Transfer mode:Text
QoS:EO
Pollinterval: 120 (for test purposes)
Processing Mode: delete
Can it be that its a ftp server generates error and sends back to XI?
Thanks,
Nataliya -
Sender File Adapter Not Picking Any File
Dear Expert,
I am newbie in PI. Just tried to create File Content Conversion Scenario. Details as follow :
1. Source Directory ..\file\log\test_q.txt
2. Target Directory ..\file\log\xml\test_q.xml
Transport Protocol : NFS
Message Protocol : File Content Conversion
Adapter Engine : Integration Engine
I have completed all the design and configuration in IR and ID. However, when I produce the log file in the directory, nothing happen.
Hacing checked in the RWB as well, I could not find any clue. simply nothing happen.
Would you please advise me on how to trigger the interface? As per my understanding, sender file adapter will be activated directly once the file is created.
Thank you very much in advance.
Best Regards,
YHi Yonisiwa,
Things you should check here are:
1) If the sender file adapter is active or not.
2) If the source directory is correctly spelt or not. (Check if you are using the correct slash \ or /)
3) The file name/mask is correct or not.
4) The polling interval is too long.
Alternatively, you can check the message monitoring in RWB at the adapter level and go into the audit log if the message.
There you can see the reason for the file not being picked up.
Also check the Communication Channel status in the Component Monitoring link in RWB.
Regards,
Ravi Kanth Talagana
Maybe you are looking for
-
EclipseLink-Redeploying a DBWS WS on PL/SQL package after changing return
Issue concerning: EclipseLink 2.4.1 (DBWS) on WebLogic Hi, I've created a DBWS webservice based on a Oracle (10g) PL/SQL package, by using EclipseLink DBWS builder. The PL/SQL function exposed as a webservice call has a Object type return type, e.g.:
-
<Empid> <ID> <No>12</No> </ID> <Name> <FirstName>demo</FirstName> <LastName>test</LastName> </Name> <Empid> I have to check if the first occurence of FirstName in the Name node as Test1 then map to target element. Somebody pelase he
-
How do I make a playlist in Video mode? I have a playlist of videos in my Music, but they will not play in Video. I am at a loss.
-
Hello, I have the following problem: During the configuration I configured a wrong IS-URL in the SLD. I changed these now again (in the SLD/Business System). Then I restarted the J2EE engine. But in the transaction SLDCHECK, it always still shows me
-
Level change when adding audio keyframes
Hi all, I've been in Avid Land for the last few months and just came back and noticed something that was getting on my nerves when I left (I don't recall seeing this before FCP 6). When I add keyframes to my audio levels with the pen tool, I get a ke