Skip to Content
-1

Error in ABAP Proxy SERIALIZE_APPLICATION_DATA Conversion error ABAP => XML

Oct 23, 2017 at 09:53 PM

411

avatar image
Former Member

We are trying to generate ABAP outbound proxy. Getting error message below.

SERIALIZE_APPLICATION_DATA Conversion error ABAP => XML: Request Message; CX_ST_SWITCH_NO_CASE in /1SAI/SAS8172B5C1FEAE9080B8D5 Line 34 Unexpected Case in Branch.

I deleted proxy and regenerated, still getting error. Is there somebody can help with it?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

avatar image
Former Member Jan 31 at 03:12 AM
0

Hi Ankit,

Yes, I was getting issue while generating XML and issue is resolved. When PI generated proxy, it created SWITCH in the deep structure. Make sure schema should have UTF-8 format. First line should be <?xml version="1.0" encoding="utf-8" ?>.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Satish,

Would require more details if you can share....

1. What's a SWITCH here?

2. Where I'll be able to see it?

3. Should it be removed/replaced or what should be done with it?

4. Regarding the schema, I can see the first line is <?xml version="1.0"?>, how can I change it to <?xml version="1.0" encoding="utf-8" ?>?

5. I referred my other proxies as well, all have <?xml version="1.0"?> as the first line & they are working fine.

0
Former Member

Hi Ankit,

Please find below my answers.

1. What's a SWITCH here? - When PI creates proxy it will appear in the SPROXY transaction for you. Then you as an abaper creates proxy. It will create class and deep structure. SWITCH is component created in deep structure.

2. Where I'll be able to see it? - Inside deep structure

3. Should it be removed/replaced or what should be done with it? - You cannot change deep structure. Scema must be modified with UTF-8 format and PI developer will regenerate proxy. You should not have SWITCH in deep structure.

4. Regarding the schema, I can see the first line is <?xml version="1.0"?>, how can I change it to <?xml version="1.0" encoding="utf-8" ?>? - You can open schema in notepad and replace first line with <?xml version="1.0" encoding="utf-8" ?>.

5. I referred my other proxies as well, all have <?xml version="1.0"?> as the first line & they are working fine. - Not sure about this.

Try This.

Step1- Deactivate your proxy

Step2 - Modify first line in schema as I said

Step3 - send it to PI and ask them to regenerate proxy

Step4 - Generate your proxy. Your deep structure shouldnt have SWITCH.

Try this and let me know.

Regards

Satish

0
avatar image
Former Member Oct 23, 2017 at 09:56 PM
-1

Former Member any Idea?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Satish,

Can you kindly share the solution. I'm getting the same error.

Regards

Gop

0
Ankit Mishra Jan 31 at 02:16 AM
-2

Hi Satish,

Did you resolve it? If so, kindly share the solution. I'm getting the same error.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Ankit,

I am also facing the same issue. Can you kindly plz provide me the solution..

0

Hi Gopa,

Kindly check the t-code STRANS & enter /1SAI/xxxxxxxxxxxx (whatever error you are getting) & check it’s code that gets generated after generating the proxy. I provided this info to ABAPer & they figured it out.

0
gopa kumar Feb 05 at 06:45 AM
-3

Hi All,

I am also getting this error, can you kindly guide me how to solve it...

Share
10 |10000 characters needed characters left characters exceeded