Skip to Content
author's profile photo Former Member
Former Member

Json to XML Converter Action Block Error MII 15.1

Hi All,

I am using SAP MII 15.1 SP2 Patch 6.

I'm getting an error "Error in conversion from json to xml" when I pass Json string as a local/transaction property.

But when I pass this Json string as a JSOn Input directly in action block on Configure Box then it works fine without any error.

This looks strange to me.

Source of JSON String :

I am getting this Json string by running URL (Third Party Application URL) using Http Post Action block.

And in Http post action block gives me JSON string if I use content type as text/json, application\json and Encoding US-ASCII, UTF-8 respectively.

I have referred few threads regarding JSON but it didn't help. Also checked the note to update the patch, but I am using latest version and patch.

Please help me solving this issue. Attached Json string for reference.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 18, 2016 at 06:15 AM

    Hi Suresh,

    Please add root node to entire json. JSON to XML converter expects it.

    You can dynamically add this node to input as well by string concate.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.