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)

Dynamics AX 2012 R2 AIF Processing large XML SalesOrder File from Magento

(0) ShareShare
ReportReport
Posted on by 245

Client's Dax 2012 R2 environment will bog down when trying to consume a well formed AIF SalesOrder XML file from Magento. File can contain 100-300+ individual sales orders. AIF response will time out and the Sales Orders will not completely process the orders. The following error is shown in the event log

Service did not receive a reply within the configured timeout (00:05:00).  The time allotted to this operation may have been a portion of a longer timeout.  This may be because the service is still processing the operation or because the service was unable to send a reply message.  Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client.

Options are:

  • Increase the AIF Inbound Port-AOS configuration time outs from 5 Min to 10 or 20 min (max). (Will this need to have AOD bounced and or WCF config rebuilt?)
  • Programmatically  split Sales Orders into individual Sales Order XMLs
  • have Magento send smaller files or individual sales order files

Thanks in Advance

Mark Kopan

Client Strategy Group LLC

Senior Dynamics Consultant

*This post is locked for comments

I have the same question (0)
  • Douglas Noel Profile Picture
    3,905 on at

    Hi Mark,

    I really don't have any idea to overcome this.

    1st)  Sure, you can increase the timeouts, but to what value?

    2nd) Splitting: Are you able to 'theoretically' split? What kind of inbound message is it, synchr. call in wcf, or maybe async. call via filesystem import ? I don't know.

    Does your 'service requestor' need any results? Error Handling?

    3rd) Do you have influence on that? If yes - this could be the preferred answer.

    Shorter information seems to be always the best way, in case you really have influence on that.

    regards

    Douglas

  • Mark Kopan Profile Picture
    245 on at

    file is dropped to folder from Magento. XML is well formed DAX enveloped Header/SalesOrder format. It is consumed by DAX, creates the some salesorders, but may error out in the process waiting for the process to complete. Process in parallel is OFF,

  • Mark Kopan Profile Picture
    245 on at

    Theoretical split would occur outside of DAX. SSIS or C# JSON/XQuery to parse then re-wrap in DAX SOR Header envelope then re-drop in AIF pickup folder

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

    You already iterated your options. What do you want to hear from us?

  • Mark Kopan Profile Picture
    245 on at

    i would like to know why a SalesOrder xml with 100-300 individual sales orders would time out in DAX2012 R2 Inbound AIF and throw the error

    Service did not receive a reply within the configured timeout (00:05:00).  The time allotted to this operation may have been a portion of a longer timeout.  This may be because the service is still processing the operation or because the service was unable to send a reply message.  Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client.

     

    Will increasing the AOS Configure settings on the port time out values to (00:15:00) each will allow the process to complete nominally?

    thanks

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

    WCF uses several timeouts to prevent resources to be blocked forever. You can modify them, of course (in configuration of both the service and the service client).

    If you believe that the processing takes too much time, you can use tools like Trace Parser to analyze performance of the method in your system.

    Of course, sending shorter messages is a much better approach than setting enormous timeout values.

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