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)

Ax2012 AIF doesnt work anymore

(0) ShareShare
ReportReport
Posted on by 2,245

Hi,

I have some inbound/outbound ports that were working nicely in an installation for along 1 year...and suddenly it have stopped to work. Outbound messages are not processed in the queue and text files for my Inbound Port are not readed...

I have tried to activate/deactivate the ports, redeploy AIF services, compile CIL all, restart everything...but nothing seems to work.

Any ideas of what could happen?

Thanks

*This post is locked for comments

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

    You have to collect more information - the first place to look is System administration > Periodic > Services and Application Integration Framework > Exceptions. The next is the Troubleshooting section on individual ports.

    If everything fails, you can always step through the code in debugger (and activate tracing for WCF code).

    Unless you know what's the problem, it's hard to fix it.

  • Pedro Rodriguez Profile Picture
    2,245 on at

    At System administration > Periodic > Services and Application Integration Framework > Exceptions there is nothing new because basically it does nothing so I will try to debug the code.

    Thanks

  • Pedro Rodriguez Profile Picture
    2,245 on at

    At the moment I think I get an error with the call to

    AifUtil::getServerTempFileName

    At Table AifGatewayQueue, method getGatewayMessage ->

    if (isTransformRequired) // Preprocessing is required

       {

           filePath = AifUtil::getServerTempFileName();

    ...

    ...

  • Verified answer
    Pedro Rodriguez Profile Picture
    2,245 on at

    I found it!

    It seems that this function fails when there is more than 65535 temporal files in the %TEMP% folder  (In my case was in the temporal folder of the user which I had asigned to run the AOS service)

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

    I'm glad you resolved the problem - and thank you for letting us know!

    I wouldn't ever thing about this reason - it's exactly one of things that don't make much sense until the problems is isolated.

    That GetTempFileName() doesn't support more than 65535 files is documented behavior and IOException is thrown when it happens. If the exception reached you, the problem would be quite obvious from the beginning. The problem here is likely that Exception::CLRError is not handled and it unfortunately means that the execution is interrupted but you don't get any error message or anything. This is very dangerous behavior of .NET Interop - I see developers making this mistake and again and I also already ran into the same problem in the standard AX codebase.

  • Pedro Rodriguez Profile Picture
    2,245 on at

    Ok. I got an exception with Outbound Ports with the message "File already exists". But nothing more. At first I supposed that somewhat temporal file would be created with a name that already exists but the final reason was something else.

    Thanks for taking the time to think about this problem.

  • Guenter Duerrwang Profile Picture
    5 on at

    Many thanks für this solution. I had the same issue and that helped me a lot.

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