on 07-30-2014 5:42 AM
Hi Experts,
Apologies for raising same kind of same question like existing blogs..!
I have gone through all most all the posts similar to this issue, but not able to find out root cause for my issue.
PI is picking the .txt file from FTP, but in MONI it is getting fail by throughing the below error message.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_EQUIPMENT_HOURS_RECORDING_LEGAC~</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
<SAP:P3>Premature end of file.</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EQUIPMENT_HOURS_RECORDING_LEGAC~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Am using FCC parameters in Sender File adapter. Below are the parameters which am using in FCC tab
Recordset Name: Equipment_time
Recordset Structure : Header,1,Item,*
Recordset Sequence : Ascending
Keyfield name: key
Keyfield type : String (case sensitive)
Header.fieldFixedLenghts : 8,8,50,4
Header.endSeparator : 'nl'
Header.fieldSeparator : ,
Header.fieldSeparator : Document_Date,Posting_Date,Document_Text,Controlling_Area
Header.keyFieldValue : 1
Header.keyFieldInStructure : ignore
Item.fieldFixedLengths : 10,15,5,15,3,50,10,6,10,10,8,24
Item.endSeparator : 'nl'
Item.fieldSeparator : ,
Item.fieldNames: Cost_Element,Amount,Currency,Quantity,Unit,LineItem_Text,Cost_Center_Sender,Internal_Order_Sender,WBS_Element_Sender,Cost_Center_Receiver,Internal_Order_Receiver,WBS_Element_Receiver
Item.keyFieldValue : 2
Item.keyFieldInStructure : ignore
Below is the .txt file which am using for testing
20140123,20140125,V,4354
Fr2312,12345,INR,234564,veo,ForFR,France,34354,Hello,798797,veol,PolandVeo
Could any body please tell me what could be the reason for this issue.?
Thanks in advance..!
--
Warm Regards
Raj
Hi Raj,
Can you please remove below entries in FCC and check?
Header.fieldFixedLenghts : 8,8,50,4
Item.fieldFixedLengths : 10,15,5,15,3,50,10,6,10,10,8,24
Regards,
Muni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
Put your keyfield value as first field in your file. Try below entries in your FCC
Header.endSeparator : 'nl'
Header.fieldSeparator : ,
Header.fieldNames : Header,Document_Date,Posting_Date,Document_Text,Controlling_Area
Header.keyFieldValue : 1
Header.keyFieldInStructure : add
Item.endSeparator : 'nl'
Item.fieldSeparator : Item,Cost_Element,Amount,Currency,Quantity,Unit,LineItem_Text,Cost_Center_Sender,Internal_Order_Sender,WBS_Element_Sender,Cost_Center_Receiver,Internal_Order_Receiver,WBS_Element_Receiver
Item.keyFieldValue : 2
Item.keyFieldInStructure : add
File:
1,20140123,20140125,V,4354
2,Fr2312,12345,INR,234564,veo,ForFR,France,34354,Hello,798797,veol,PolandVeo
This will convert your FCC to below XML structure:
If you don't need <Header> and <Item> field, don't map those fields in your mapping.If you want to use fixedfield length check this link SAPTechnical.COM - File Content Conversion
Regards,
Praveen
Hi Raj,
I think, your picking up the file from FTP location where sender system is not yet completed writing the file, please us the option in File sender channel - Advanced - "MSecs to wait Before Modification Check " as 1000 Sec.
It might help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Thank a lot for your time..!
Below is my source structure for which am using FCC parameters.
Can you suggest me, can't we do the parameters without using below 2 parameters.?
Header.keyFieldValue : 1
Header.keyFieldInStructure : add
Item.keyFieldValue : 2
Item.keyFieldInStructure : add
For instance, my file is like..
20140123,20140125,V,4354
Fr2312,12345,INR,234564,veo,ForFR,France,34354,Hello,798797,veol,PolandVeo
Fr2413,67890,USD,345678,veo,ForGR,Germany,4645,Hello,987651,veol,USVeo
Thank you.!
--
With Warm Regards
Raj
Hi Praveen,
I have tested interface by using below FCC parameters
Header.endSeparator : 'nl'
Header.fieldSeparator : ;
Header.fieldNames : Header,Document_Date,Posting_Date,Document_Text,Controlling_Area
Header.keyFieldValue : 1
Header.keyFieldInStructure : ignore
Item.endSeparator : 'nl'
Item.fieldSeparator : Item,Cost_Element,Amount,Currency,Quantity,Unit,LineItem_Text,Employee_Number,Cost_Center_Sender,Internal_Order_Sender,WBS_Element_Sender,Cost_Center_Receiver,Internal_Order_Receiver,WBS_Element_Receiver
Item.keyFieldValue : 2
Item.keyFieldInStructure : ignore
But still am getting the same issue saying that..
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_EQUIPMENT_HOURS_RECORDING_LEGAC~</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
<SAP:P3>Premature end of file.</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EQUIPMENT_HOURS_RECORDING_LEGAC~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Can you please guide me with this..?
--
With Warm Regards
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.