Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

(0) ShareShare
ReportReport
Posted on by 96

Good day all,

After many days of searching and attempts I am looking for some guidance to rectify the error "Cannot create a record in Gateway queue (AifGatewayQueue).
The corresponding AOS validation failed." that is showing in System administration/Periodic/Services and Application Integration Framework/Exceptions. 

We are running AX2012 CU13, thin client.

The error corresponds to the attempt by a user to submit XML data to the outbound ports in ref to producing PDFs for sales confirmations, delivery notes etc.

Every time the system runs its outbound AIF process the data for this one user fails send ref tis error message.

The history behind this is users is as follows.

User was imported form Active directory, relation created to the worker and user was working without issues.

Active directory was deleted in error while user was still in AX with active sessions.

To rectify this error, AX user was deleted and new Active directory created.

User was then freshly imported to AX and then linked to the worker via relation.

It was at this point the errors appeared.

We have tried removing KTI/AUT files, clearing sessions, and checked the AD SID numbers which match, but for days now the same errors are appearing.

Roles and security are the same as previously and other users without errors.

Can anyone suggest if there is somewhere else that old data is being checked pls? 

I am not a developer so cannot read code but I think it may be this method of the table AifGatewayQueue that is throwing this error? 

validateUser

currentUserId = curUserId();
currentUserSid = AifUtil::getAxUserSid(currentUserId);

if(!validateRead)
{
ret = (this.SubmittingUserId && (currentUserSid == AifUtil::getWindowsUserSid(this.SubmittingUserId)));

if (ret && (this.orig().RecId != 0))
{
ret = (this.orig().SubmittingUserId && (currentUserSid == AifUtil::getWindowsUserSid(this.orig().SubmittingUserId)));

Any help would be gratefully received.

Rgds Cliff

  • CXF Profile Picture
    96 on at
    RE: Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

    The only solution we got was by accident. We needed a memory upgrade and code drop on one weekend. Shutting everything down and restarting all servers cleared the fault. somewhere there was old data still checking her old SID I fell, but we could not locate where.

  • CXF Profile Picture
    96 on at
    RE: Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

    ok all sessions are from new matching SID, all created today

  • CXF Profile Picture
    96 on at
    RE: Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

    ok will do. Thank you for your help

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

    Can you please check another thing - In SQL, go to table SYSCLIENTSESSIONS. Here, please check if there are any records for that user with the old SID. In case there are records, ask the user to log off from AX and delete these records. Have the user log back in and try again if it works now.

  • CXF Profile Picture
    96 on at
    RE: Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

    yes they match. We cant restart AOSs are we have 3 of these for about 400 people. We will get a code drop/update in a few weeks so will see if that fixes it. None of us can work out what is going on...

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

    Hi CXF,

    Can you check the SID of the user in the table "UserInfo" from SQL and make sure it matches with the current SID of the user in Active Directory? If the values are the same, please try restarting the AOS to check if that the issue persists.

  • CXF Profile Picture
    96 on at
    RE: Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

    unfortunately this did not clear our issues and even after recreating the user again we still are stuck with this error.

  • CXF Profile Picture
    96 on at
    RE: Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

    Hi Gunjan,

    Thanks, I will take a look a report back on results.

    Rgds Cliff

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Cannot create a record in Gateway queue (AifGatewayQueue). The corresponding AOS validation failed.

    Hi CXF,

    Please check the AOS service account in the registry and change it as per this post

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,112 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,893 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans