web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AIF data policies legal value and Queue Manager

(0) ShareShare
ReportReport
Posted on by 360

Hi,

In data policies for an outbound port we have added a legal value for a field. As expected, we get an error message in the Queue Manager if the value of this field in the table doesn't match this legal value.


However, for this particular field only, we do not want any messages in the Queue Manager. It should just not process the document and no error message.

Any tips on how this can be accomplished?

Thanks.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Take a look at class AifLegalValueChecker

  • robertk Profile Picture
    360 on at

    Thanks for the response.

    I had looked at this class but didn't see it could be customized to solve this issue. This class accepts the XML as a parameter so the document is most likely already in the Queue Manager (I have not verified this), I need to stop the processing sooner - perhaps in canXMLBeSent or sendElectronically methods, but tracking all these RecId's is a bit complex.

  • Community Member Profile Picture
    on at

    You are wright, was thinking off  inbound not outbound..

    Worked with 2009, you only had to create AIF constraints to accomplish what you want.

    Made some modifications myself to do the same in 2012: added code to AifSendService method getEligibleEndpoints: only add outboundport to endpointlist if fields in _common meet your conditions. Hope this helps.

    BR Peter

  • Verified answer
    robertk Profile Picture
    360 on at

    I actuall ended up modifying this class, if I found illegal value for a specific field I log it in another table. That table can then be easily used to maintain the Queue Manager. Thanks again.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans