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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Is there a way to selectively shut off exceptions in the AIF Exception log (without programming?)

(0) ShareShare
ReportReport
Posted on by 2,007

Yesterday, the EDI coordinator at my company asked if there was a way for us to shut down some of the exceptions he was getting in the exception logs for AIF for outbound ports. The issue is that we have a small number of EDI customers that we use AIF to process their EDI requests, but a large customer base that the AIF checks against to ensure whether we should use the service to send outbound data. As such, every check against a customer that isn't in the "Allowable values" list generates an exception, effectively rendering the exception log useless as most of the "errors" are white noise.

We would care about an exception generated by a customer that IS in the list. So is there a setting that would allow us to not have the validations we could care less about show up in the exception log? Or is this something I would have to approach programmically?

Any advice you have would be most welcome.

Brandt

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,036 Most Valuable Professional on at

    There is no way to filter what goes into the log (without a customization).

    Nevertheless your code problem seems to be in "check against customers", but unfortunately I'm not sure what exactly it means. Could you give us more details, please?

  • Brandt Fundak Profile Picture
    2,007 on at

    Martin,

    Sorry I was not more detailed.

    Basically when we process invoices, the AIF goes through all Invoices and checks to see if the customer number in the "OrderAccount" field is listed as an available value in the data policy for that AIF document schema. Since the AIF isn't going to know if a customer has been listed in the data policy, it checks against the customer number on the invoice and if it is not in the list, it throws an exception to the log indicating that the customer number is not valid for processing the outbound invoice. This is exactly how we want it to work, we just don't want to hear about it in the log, because the AIF is working as we want it to.

    We have the same issue with outbound shipments. If the customer is not an EDI partner, the system throws an exception when the OrderAccount is not a partner. Again, this is exactly what we want it to do, and again, we don't want to hear about it.

    Make sense? It sounds like I need to write a customization though. Likely we are not using the exception table/form in the way it was intended and that it records the data in a way that is opposite to how we would like it.

    Thanks for the two cents.

    Brandt

  • Verified answer
    Martin Dráb Profile Picture
    239,036 Most Valuable Professional on at

    From my perspective, trying to send messages that always fail and waiting for exception is just a waste of resources. Therefore I would consider having a parameter at customer level (not necessarily in CustTable) and checking it already in CustInvoiceJour.sendElectronically(). If it's not active, I wouldn't bother trying to send the invoice to customer.

    If you look closely, you'll find that such logic is already in place for a few countries (based on CustTable.eInvoice checkbox).

    Nevertheless if you want to change the log only, start looking at from where SysExceptionLog gets called.

  • Brandt Fundak Profile Picture
    2,007 on at

    You know, I actually asked if something like this existed and for us it doesn't. But you're right, that makes the most sense.

    Thanks for the input.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans