Share via

Logic App RosettaNet Decode throws error: failed to find the 'Preamble' from the message

zemag 0 Reputation points
2024-02-15T19:17:49.21+00:00

This is my first experience setting up RosettaNet through Logic Apps and Microsoft Integration. I used the Logic App template to create the initial workflow. I am able to successfully trigger the workflow through a HTTP Request, however the RosettaNet Decode step is throwing an error message when I generate a POST request from Postman: "RosettaNetMessageDecodingFailed. There was an error during unpackaging of the RosettaNet message, failed to find the 'Preamble' from the message." My HTTP request does not have a schema defined and is configured to receive POST requests. The RosettaNet Decode step takes the Body from HTTP request as the Message input and Headers from HTTP request directly. I am using: Content-Type = application/xml. The body is a sample multipart text constructed by one of our partners and is similar structure to other examples I've seen online. It clearly has a <Preamble> section described within it. I haven't been able to find anything online that states how the HTTP call needs to be structured so any help with that as well would be very welcomed. Please let me know if there's any other info needed and I can include.... Thank you!

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

0 comments No comments

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 71,016 Reputation points Moderator
    2024-02-26T12:36:04.3966667+00:00

    @zemag Thanks for reaching out. Can you please confirm if you are building the request correctly as be your REST endpoint and I will suggest you to first validate the same using fiddler/postman so it would help you to validate what is the right request body, header that need to be passed so it can be replicated the same with logic app HTTP connector. Once you have the working example and need any assistance with how to pass the same values to the connector then please let me know so I can help you to replicate the same. In case if you need any help with the REST API body/header then I will suggest to reach out to your endpoint team to assist further.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.