Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP Proxy PARSE_APPLICATION_DATA ERROR - Deserialisation error

former_member671009
Participant
0 Likes
2,368

Hi All,

Can some one please help me to resolve this issue, XML --> ABAP proxy scenario. PI sent message successfully, but I am getting error on SAP target system.

- <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SAP:Category>XIProxy</SAP:Category>

<SAP:Code area="ABAP">PARSE_APPLICATION_DATA</SAP:Code>

<SAP:P1>Request Message</SAP:P1>

<SAP:P2>CX_ST_DESERIALIZATION_ERROR</SAP:P2>

<SAP:P3>/1SAI/SASF1B34BDF7BC867BECB1E Line 127</SAP:P3>

<SAP:P4>An error occurred when deserializing in the simple transformation program /1SAI/SASF1B34BDF7BC867BECB1E (Data loss occurred when converting ON Kernel ErrorId: CONVT_DATA_LOSS) XML Bytepos.: 6025 XML Path: ns1:MT_HCM092_EmpPersonalData(1)PersonalDataUpdation(34)GBDEP(6)</SAP:P4>

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Error during XML => ABAP conversion: Request Message; CX_ST_DESERIALIZATION_ERROR in /1SAI/SASF1B34BDF7BC867BECB1E Line 127 An error occurred when deserializing in the simple transformation program /1SAI/SASF1B34BDF7BC867BECB1E (Data loss occurred when converting ON Kernel ErrorId: CONVT_DATA_LOSS) XML Bytepos.: 6025 XML Path: ns1:MT_HCM092_EmpPersonalData(1)PersonalDataUpdation(34)GBDEP(6) An error occurred when deserializing in the simple transformation program /1SAI/SASF1B34BDF7BC867BECB1E Data loss occurred when converting ON</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

The error is shown for the field GBDEP. It is of type char(3) both in the source system and the target system.

Still i am getting this error.

Kindly help me in resolving the issue.

Regards,

Sridevi S

9 REPLIES 9
Read only

Former Member
0 Likes
1,695

Hi,

what's the content of report /1SAI/SASF1B34BDF7BC867BECB1E/ in line 127 ?

If GBDEP has length 3, why GBDEP(6) is part of the error info? It seems, that GBDEP has length 6 anywhere ...

Regards,

Klaus

Read only

0 Likes
1,695

Hi,

GBDEP(6) refers to the sixth position of the field in the payload.

I don't know how to check the 127th line in the program /1SAI/SASF1B34BDF7BC867BECB1E .

Regards,

Sridevi S

Read only

0 Likes
1,695

Hi,

you need someone who has access to the SAP target system. In transaction SE38 or SE80 you can look into the program's code lines.

The line position display depends on your editor and can be found on top or at bottom.

Regards,

Klaus

Read only

0 Likes
1,695

Hi Klaus,

I tried searching for that program name but that program name does not exists in SE38/SE80.

Please clarify.

Regards,

Sridevi S

Read only

0 Likes
1,695

Okay,

in this case try tcode STRANS for XSLT-programs ...

Read only

0 Likes
1,695

Hi Klaus,

Thanks for the t-code.

I couldn't figure out any issue in that program. Below is the line of code in the program for the field GBDEP which is same as for the other fields.

<tt:cond s-check="not-initial('ROOT.GBDEP')">

<tt:ref name="ROOT">

<GBDEP tt:ref="GBDEP">

<tt:deserialize>

<tt:assign to-var="_C_NIL" val="' '"/>

<tt:d-cond>

<tt:attribute name="xsi:nil">

<tt:read var="_C_NIL" map="xml('true', '1') &gt; val(C('2'))"/>

</tt:attribute>

</tt:d-cond>

</tt:deserialize>

<tt:cond-var check="_C_NIL!='2'">

<tt:value maxLength="3"/>

</tt:cond-var>

</GBDEP>

kindly help.

Read only

0 Likes
1,695

Hi,

sorry, I'm just an ABAP programmer with no experience in transformation programs.

But are you sure that line 127 is part of the GBDEP code block?

May it be anywhere in

MT_HCM092_EmpPersonalData(1)PersonalDataUpdation(34)GBDEP(6) ?

Regards,

Klaus

Read only

0 Likes
1,695

Hi Klaus,

Line 127 show code block for GBDEP only.

I am not able to figure out why this error is coming.

Regards,

Sridevi S

Read only

0 Likes
1,695

Hi,

can you please give the following a try:

Replace

<tt:read var="_C_NIL" map="xml('true', '1') &gt; val(C('2'))"/>

with

<tt:read var="_C_NIL" map="xml('true', '1') > val(C('2'))"/>

Regards,

Klaus