Home > X++ stuffs > Info: AifResourceLock Table

Info: AifResourceLock Table

 

When debugging X++ code the developer tends to press (Shift+F5) to stop the execution of program. This symbolizes that either the issue is figured out (or) may be he needs more data to understand the issue which is going on.

This type of debugging usually has a side effect on AIF.

Reason:

ü  While processing inbound message, the AifGatewayReceiveService locks the channel to ensure that only one process can access a message at any given time. These locks also ensure that the messages are processed in FIFO or parallel order on the basis of the channel and endpoint. As a result when the execution is terminated after the following stack \Classes\AifGatewayReceiveService\processInboundMessages – Line 19

 

So during inbound operation a record gets inserted into the Resource Lock table based on the following cluster index

·         Channel Id

·         AifResourceType – Channel, Conversation, Endpoint or Message

·         AifResourceLockType – Gateway or Document Service

This doesn’t allow to process any further Xml until record in AifResourceLock table is deleted. Only if the message is cleared/deleted the adapter will start processing it successfully.

Advertisements
Categories: X++ stuffs
  1. March 16, 2012 at 1:39 pm

    I have a similar problem in AX 2009 where AIF causes the Ax client to crash every time.

    This was not a result of debugging, but the error startet after AIF failed to import, due to missing data in the XML document.

    I have tried clearing the AifResourceLock table, but still, AX crashes when trying to insert a post when the inbound processing is started.

    • March 31, 2012 at 2:53 pm

      Do you still have problem? Do let me know. I was travelling so couldn’t respond on time.

  2. Anitha
    April 19, 2010 at 5:44 pm

    Thanks for the information.. As always, quite useful …

  1. March 19, 2012 at 2:57 pm

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: