on 10-16-2013 7:59 AM
Hi,
Iam getting the below error while processing a file.
IDoc: Error before sending :
IDocException com.sap.conn.idoc.IDocParseException: (7)
IDOC_ERROR_PARSE_FAILURE: Missing required <IDOC BEGIN="1"> tag
within IDocXML for type <ACC_DOCUMENT02>:
state=READING_IDOC_STARTTAG, charPosition=56,
lineNumber=2, columnNumber=18
Attaching the file at which PI is throwing an error.
Kindly provide me the solution for not getting the above error at PI level.
Hi Madhuri,
Could you please upload the mapping where this condition is being imposed, that is not to generate the idoc when there is zero amount value. Is this file to idoc scenario?
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Could u generate idoc xml corresponding to below source message (i guess this message has resulted into ***idoc.parse exception?):
<?xml version="1.0" encoding="utf-8"?>
<ns:MT_Fleet_Req xmlns:ns="http://honda:finance:GLPosting">
<Data1>
<key>1</key>
<Doc_Date>13/10/2013</Doc_Date>
<AC_233000>0</AC_233000>
<AC_224000>0</AC_224000>
<Base_tax>0</Base_tax>
<AC_342400>0</AC_342400>
<Post_Indi_1>C</Post_Indi_1>
<AC_826140>0</AC_826140>
<AC_224010></AC_224010>
<AC2_233000></AC2_233000>
<Post_Indi_2></Post_Indi_2>
<AC2_826140></AC2_826140>
<Associat_Num></Associat_Num>
<VIN_Num></VIN_Num>
<Customr_Amnt></Customr_Amnt>
<AC2_224010>]</AC2_224010>
</Data1>
<Data2>
<key>2</key>
<Doc_Date>13/10/2013</Doc_Date>
<AC_233000></AC_233000>
<AC_224000></AC_224000>
<Base_tax></Base_tax>
<AC_342400></AC_342400>
<Post_Indi_1></Post_Indi_1>
<AC_826140></AC_826140>
<AC_224010>0</AC_224010>
<AC2_233000>0</AC2_233000>
<Post_Indi_2>C</Post_Indi_2>
<AC2_826140>0</AC2_826140>
<Associat_Num></Associat_Num>
<VIN_Num></VIN_Num>
<Customr_Amnt></Customr_Amnt>
<AC2_224010>]</AC2_224010>
</Data2>
</ns:MT_Fleet_Req>
Thanks
Amit Srivastava
IDoc XML should start like that
<?xml version="1.0" encoding="UTF-8" ?><Name_of_IDoc_MT><IDOC BEGIN="1">.....
Your IDoc probably does not have that "header".
How did you supplied that idoc xml? By hand from test or is it coming from other system?
It is also possible, that you are supplying xml, which is not representation of IDoc.
But anyway - reason is, that your IDoc XML does not have right format. Check that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The below is the payload which got error as mentioned above
<?xml version="1.0" encoding="utf-8"?>
<ns:MT_Fleet_Req xmlns:ns="http://honda:finance:GLPosting">
<Data1>
<key>1</key>
<Doc_Date>13/10/2013</Doc_Date>
<AC_233000>0</AC_233000>
<AC_224000>0</AC_224000>
<Base_tax>0</Base_tax>
<AC_342400>0</AC_342400>
<Post_Indi_1>C</Post_Indi_1>
<AC_826140>0</AC_826140>
<AC_224010></AC_224010>
<AC2_233000></AC2_233000>
<Post_Indi_2></Post_Indi_2>
<AC2_826140></AC2_826140>
<Associat_Num></Associat_Num>
<VIN_Num></VIN_Num>
<Customr_Amnt></Customr_Amnt>
<AC2_224010>]</AC2_224010>
</Data1>
<Data2>
<key>2</key>
<Doc_Date>13/10/2013</Doc_Date>
<AC_233000></AC_233000>
<AC_224000></AC_224000>
<Base_tax></Base_tax>
<AC_342400></AC_342400>
<Post_Indi_1></Post_Indi_1>
<AC_826140></AC_826140>
<AC_224010>0</AC_224010>
<AC2_233000>0</AC2_233000>
<Post_Indi_2>C</Post_Indi_2>
<AC2_826140>0</AC2_826140>
<Associat_Num></Associat_Num>
<VIN_Num></VIN_Num>
<Customr_Amnt></Customr_Amnt>
<AC2_224010>]</AC2_224010>
</Data2>
</ns:MT_Fleet_Req>
Hi Madhuri
Go to the ECC system anc check the idoc structure. Make sure u have the current metadata in PI system.
It has to be a problem with your test data. Check all the field name and their type in idoc and see the data you passed is correct for that type or not.
Last time I got this error becasue one field was expecting value as date but I left it as blank.
This XML is not an IDoc XML.
You are pushing wrong data format into communication. You probably have input file read from FTP or something (not received as IDoc) and you need to make a mapping from input structure to the output IDoc structure.
Did you set mapping properly? Is message types set correctly?
Root of your problem is that you are trying to process non IDoc data as IDoc.
Probaly you haven't some obligatory field. You can check your outbound message in message monitoring. Can you se payload in that tab "Message content"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
It seems that u r passing wrong data (may be wrong date format) in IDOC XML as a result it is throwing parsing error.
Paste IDOC XML over here?
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.