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)

AIF Queue?

(0) ShareShare
ReportReport
Posted on by 3,157

I have a custom .NET application that needs to communicate with AX.  AIF seems to be the best option here, however, we are concerned what happens in the .NET app when AX is down.

Currently, we use an enhancement done by our partner:

  1. .NET app inserts record into separate, non-AX database table
  2. AX has batch job that runs regularly, using OBDC, to get records from non-AX database table
  3. Code in AX is then run to process data.

The reason it was setup this way was to create a 'Queue' of sorts to hold records while AX was down or otherwise unable to process data.

Does AIF have any ability to 'Queue' items (It seems like not due to the fact that if AX is down then AIF can't be reached)?

Assuming AIF can't do that, what is a common design (High level) for a requirement like this?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Andrew Xu Profile Picture
    3,877 on at

    Bradly,

    What's volume of the data you're talking about? Have you ever considered MSMQ for AIF? I found some posts you might be interested in. 

    http://www.techax.microsoftdynamicsaxblog.com/2014/02/msmq-adapter-for-aif.html

    https://technet.microsoft.com/en-us/library/hh496417.aspx?f=255&MSPPError=-2147217396

    You'll find more if you google.

  • b_radlyjames Profile Picture
    3,157 on at

    It is a bit of data.  AX pulls in the 'Hundreds' of records from that table daily.  Possibly thousands.

    Also, my question would be... What happens to the 'Queue' if AX goes down?

  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Hi bRradlyJames,

    As Andrew Xu mentioned you can use MSMQ  adapter.  Lifetime of the message is determined by MSMQ and not AX and it could sit there for days waiting for AX. Another option is to use file adapter, so each message is a file saved in file share that could stay there forever waiting for AX to pick them up.

  • Suggested answer
    Oliver Strutt Profile Picture
    85 on at

    The AIF can certainly work and it's a framework needed for real-time integrations, but what you're describing is a batch driven scenario.  The AX 2012 DIXF allows (as per standard) to import data using an ODBC connection.  Assuming your data matches an entity you could achieve most of what you want using standard.  

    Google will give a few examples of this but here's one: community.dynamics.com/.../ax-2012-import-data-from-an-odbc-through-dixf

    Another advantage is that data ultimately lands in AX staging tables allowing you to handle errors directly in AX rather than having to update the source and push data through a second time.  A possible modification would be a nicer front-end to the DIXF forms that's geared more towards this integration scenarios versus data migration that is the DIXF's primary function.

  • b_radlyjames Profile Picture
    3,157 on at

    Thank you Ievgen!  MSMQ seems to be the way to go.  After doing a little research it appears that the MSMQ adapter must reside on the AOS machine that it will connect with (Presumably the 'Batch' server).

    My last question would be, what happens when the entire server goes down?  Or when the MSMQ adapter stops functioning? (I've never worked with MSMQ so I'm not sure of it's reliability)

  • Suggested answer
    Andrew Xu Profile Picture
    3,877 on at

    By default, MSMQ message life time is 4 days, but it's configurable as ievgen said. If the entire server is down or MSMQ stops, it will be like your current non-AX database server is down, in that case I think your data cannot be processed.

  • b_radlyjames Profile Picture
    3,157 on at

    Andrew,

    Thank you so much!  This is exactly the information I was looking for.

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
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans