Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AX 2009 BizTalk adapter - getting synchronous errors

Posted on by 5

Hi,

I have a problem when working with AX 2009 + BizTalk 2009. When using synchronous calls, everything works fine until there's an error. For example, when I'm using the SalesSalesOrderService.read to get data about a sales order and the sales order doesn't exist, AIF (correctly) return a fault message which contains details about the error. When doing this asynchronously, I can set the receive port adapter to "Pass through", which means that I get the complete envelope and I can check what's in it (either a Fault message or a SalesOrder message). However, when doing this synchronously, no such option is there and when AIF returns a fault message, the adapter throws an error, which I'm not able to catch in the orchestration.

Note that I actually want this error and the message, so the problem is not that I'm getting an error, the problem is that I'm unable to pass it on to the orchestration to process (because the error is thrown in the adapter itself).

Here's what I'm getting in the event log:

The adapter failed to transmit message going to send port "Test_AX_sync" with URL "...". It will be retransmitted after the retry interval specified for this Send Port. Details:"An unexpected failure occurred while processing a message. The following error has occurred: <Fault xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Fault">

<Code>NoValidDocumentIdentified</Code>

<Reason>

<Text xml:lang="EN-US">No valid document identified from the entity key.</Text>

</Reason>

</Fault>".

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans