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 error - did not receive a reply within the configured timeout (00:05:00)

(0) ShareShare
ReportReport
Posted on by 4

Hello Expertise,

I have created PurchaseOrderService by using AIF wizard with three table(query) Purchtable,Purchline, Inventdim , after deploy create a inbound port with file system adapter . then create a bath job and set recurrence time is 1 minute.

Now while batch is running xml file is processed from related folder but PO is not creating . and in exception form system is generating below error.

The request failed with the following error:  This request operation sent to net.tcp://DynamicsAx/Services/PurchaseOrderCreate 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.


Please suggest to resolve this issue.

*This post is locked for comments

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

    You said that you're using the file-system adapter (which uses batches to import files), but the error message is about a direct web service call via TCP. These are two completely different things. Didn't you forget to tell us something?

  • Naveen Mishra Profile Picture
    4 on at

    Hi Martin Drab

    Yes, I am using file-system adapter (which uses batches to import files) and receiving this error message .

  • Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at

    But it doesn't make sense to me; the file system shouldn't make any call to net.tcp://DynamicsAx/Services/PurchaseOrderCreate as far as I know. It seems that I'm missing some information and I hoped you would give me some, not that you'd just repeat the same thing.

    Please tell us where you got this error. Are you able to get the stack trace to understand where it's coming from? The debugger can help you with that...

    Another course of action is testing that you service works; just running the wizard can't guarantee that all necessary business logic is in place. Testing is much easier if you run the document service class through X++ rather than through batches of AIF.

  • Naveen Mishra Profile Picture
    4 on at

    I review again this, I am not doing many things. I only  want to create PO by using aif service via inbound port with file system adapter,  for this I only create PO service via AIF wizard by using custom query with three table PurchTable ,PurchLine and inventdim and deploy it.

    Same thing I did in other environment and there while batch is running PO is creating simply, but when I am doing same thing in this environment I am facing below issue.

    request operation sent to net.tcp://DynamicsAx/Services/PurchaseOrderCreate 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.

  • Naveen Mishra Profile Picture
    4 on at

    But when I did these things in my other environment it's working fine for me.

    I reviewed many times and compare it and find out same things I am using in both environment, then how it's possible one environment things are working fine and other environment it's not working.

  • Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at

    As I said, you need to identify where the error is coming from. You can't fix something unless you know what's wrong. And I can't debug your system for you.

  • Verified answer
    Naveen Mishra Profile Picture
    4 on at

    Thanks Martin for your Responses.

    I solve the issue, Actually i did some changes in XML file . for PO import we can use below XML file and make sure no space require otherwise we can get namespace error and this XML file is very case sensitive so keep in mind if do any changes.

    <?xml version="1.0" encoding="UTF-8"?>

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

     <Header>

       <Action>schemas.microsoft.com/.../create&lt;/Action>

     </Header>

     <Body>

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

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

           <PurchTable class="entity">

             <CurrencyCode>USD</CurrencyCode>

             <DefaultDimension>

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

                 <Value>

                   <Name>BusinessUnit</Name>

                   <Value>001</Value>

                 </Value>              

               </Values>

             </DefaultDimension>

             <InvoiceAccount>1001</InvoiceAccount>

             <LanguageId>en-us</LanguageId>

             <OrderAccount>1001</OrderAccount>

             <PurchName>Acme Office Supplies</PurchName>

             <VendGroup>10</VendGroup>

             <PurchLine class="entity">

               <CurrencyCode>USD</CurrencyCode>

               <DefaultDimension>

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

                   <Value>

                     <Name>BusinessUnit</Name>

                     <Value>001</Value>

                   </Value>                

                 </Values>

               </DefaultDimension>

               <ItemId>D0008</ItemId>

               <Name>Licensed High End Speaker</Name>

               <PurchQty>1.00</PurchQty>

               <PurchUnit>ea</PurchUnit>

               <VendAccount>1001</VendAccount>

               <VendGroup>10</VendGroup>

             </PurchLine>

           </PurchTable>

         </AXPurchaseOrder>

       </MessageParts>

     </Body>

    </Envelope>

  • Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at

    Sure, it won't work with invalid namespaces.

    The error message is completely misleading, but I think that the approach to debugging I suggested would (or did?) help you to find the cause.

  • Community Member Profile Picture
    on at

    Hi,

    I got the same error on a file system AIF port. At first it was strange to me that client reports an issue with "net.tcp" in the service path for a file based integration. But then navigating to "System administration/Periodic/Services and Application Integration Framework/Exceptions" I was able to see the error message there. I guess that's the info that Martin was missing and asking for. AIF internal service call.

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 34

#2
Michel ROY Profile Picture

Michel ROY 14

#3
Jagadabi Profile Picture

Jagadabi 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans