Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

AIF logging just for failed messages

Posted on by 95

Hi All,

Out of the box functionality, can AX 2012 AIF logging only keep the failed messages only instead of all messages? I am referring to the following AIF logging configuration.

Thanks,
David

*This post is locked for comments

  • David Efendie Profile Picture
    David Efendie 95 on at
    RE: AIF logging just for failed messages

    Hi Vilmos,

    You are right, we won't be able to do this of the box after debugging it. I was planning to log the messages as it actually helped to look at the XML which was sent to AX to analyze any issue.

    Thanks again for your response.

    Thanks,

    David

  • Verified answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: AIF logging just for failed messages

    You cannot selectively record error messages for AIF documents, the only options out of the box are the following:

    technet.microsoft.com/.../hh202045.aspx

    No logging, or all logging with various document detail level.

    The logging is not intended to be turned on in a Production environment anyway, it is for short troubleshooting purposes only.

    Even if you have logging disabled, you still get AIF exceptions/errors captured in the exception log, you just have no traceability in the exchanged document.

    For that people are using a man in the middle, like BizTalk with which they could keep exchanged documents in case of an error.

  • David Efendie Profile Picture
    David Efendie 95 on at
    RE: AIF logging just for failed messages

    That is what I want to avoid (keeping all messages in history) as keeping all the history, with a heavy integration call, it will increase our database size too quick. So I am looking for a configuration in AX (without customization) to keep just the message with an error in the history (if there's any).

  • Suggested answer
    Ajit Profile Picture
    Ajit 8,755 on at
    RE: AX 2012 AIF logging just for failed messages

    History will have all messages but query manager display will not show the ones processed successfully, it will show records has error.

  • David Efendie Profile Picture
    David Efendie 95 on at
    RE: AX 2012 AIF logging just for failed messages

    Thank you for your reply. I am not sure why the picture is not showing. Regardless, what I am trying to do is actually to log just the 'failed' message instead of all messages. Do you have any idea?

  • Suggested answer
    Ajit Profile Picture
    Ajit 8,755 on at
    RE: AX 2012 AIF logging just for failed messages

    Your given picture is not visible but you can change the setup log to ALL of that port.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans