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 Exception log is empty

(0) ShareShare
ReportReport
Posted on by

Hi.

I am using Dynamics 2009 SalesOrderService with AIF to create order from external application.

I trying to call web service and got message "ServiceModel.FaultException`1[WindowsFormsApplication3.GL.AifFault]: Request Failed. See the Exception Log for detail".

In Dynamics Client I am going to Base -> Periodic -> AIF -> Exceptions, but view is empty, no exceptions registered.

Also in SQL server there is table called SysExceptionTable where i believe these exceptions should be, but it is also empty.

My question is: what is wrong with configuration that exception log is empty? I can't debug my service becouse I don't known hat exactly wrong with request, so I cannot correct it.

Note: when first I noticed this I went to SQL Server and discovered that there is no table SysExceptionTable, so I took it structure from other database and created with sql command.

Thanks for help.

*This post is locked for comments

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

    You can configure AIF to include more information in faults. It's called Include exceptions in fault in AX 2012; I believe it's similar in AX 2009 but I don't remember such details anymore.

    It probably won't explain why nothing was logged in AX, but it should tell you more about what failed.

  • Community Member Profile Picture
    on at

    Hi, I cannot find this option. In what part of Dynamics it can be? I checking Base -> Configuration -> AIF and canot find.

  • Martin Dráb Profile Picture
    237,876 Most Valuable Professional on at

    Sorry, I haven't seen AX 2009 for several years, so I don't remember such details. The first place I would check is endpoint properties.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    As far I remember it was probably a field named as PropagateErrors, at following path.

    Basic >> Setup >>  Application Integration Framework >> End Points

    and somewhere in Basic module there was Exception screen possibly under Periodic section

  • Community Member Profile Picture
    on at

    I found this opcion exactly in End Points. Whatever it is checked or not - it seems not sendings exceptions back to service client.

  • Martin Dráb Profile Picture
    237,876 Most Valuable Professional on at

    Please tell us more about your problem. Do other services work? Did it work before? Have you met all prerequisites? Is anything in event logs?

  • Community Member Profile Picture
    on at

    I have two machines which I configured in in same order.

    First - it is my virtual machine with Dynamics installed and sample database, which is works fine (AIF is working, exception log is working)

    Second - customer's machine with development database for testing purposes. AIF, IIS, .NET, Business Connector, proxy domain user bcproxy for Dynamics  installed and configured in same order. Sales order service - is first service I tried to call, and there are no erorres in exception log (which is mine general problem now)

    Event log of Windows - it contains errores of calls which correct, is basically tells same thing: "Look to the exception log ", nothing more helpful

  • Martin Dráb Profile Picture
    237,876 Most Valuable Professional on at

    The reason why there is nothing in exception log maybe because it fails even before getting into X++ code handling these things.

    I suggest you use tracing as your next step (How to: Trace a Call to an AIF Web Service).

  • Community Member Profile Picture
    on at

    I made one call with Verbose enabled in IIS confiuracion.

    This is content of log file:

    AifServiceProcessing Information: 0 : SourceEndpointUser : ***

    AifServiceProcessing Information: 0 : Logged on to Dynamics Ax successfully.

    AifServiceProcessing Information: 0 : Incoming MessageId : c2be7d4a-dbf6-4b29-9354-e70c1fa24ec4

    AifServiceProcessing Information: 0 : Submitting User : ***

    AifServiceProcessing Information: 0 : External Action : schemas.microsoft.com/.../create

    AifServiceProcessing Information: 0 : Source Endpoint

    AifServiceProcessing Information: 0 : Destination Endpoint

    AifServiceProcessing Information: 0 : Parameter in request : ***

    AifServiceProcessing Information: 0 : Aif Message Xml Request:  : ***

    Doesn't help.

    This is message of Windows Event Log:

    Microsoft Dynamics AX Business Connector Session 27.

    Se produjo una excepción X++.

    <Fault xmlns="schemas.microsoft.com/.../Fault&quot;>

     <Code />

     <Reason>

       <Text xml:lang="ES-MX">Fallo en la solicitud. Consulte el registro de excepciones si desea más detalles.</Text>

     </Reason>

    </Fault>

    So, I believe error produced by X++ code, but I don't known where, or what kind of error.

  • Martin Dráb Profile Picture
    237,876 Most Valuable Professional on at

    Then simply debug the code.

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans