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)

Cannot create a record in Message Table (AifMessageLog)

(0) ShareShare
ReportReport
Posted on by

Hi guys,

When I'm finding the item keys by using Findkeys method it throws an error like below.

AifRequestProcessor-processServiceRequest Cannot create a record in Message Table (AifMessageLog). Message ID: {23BD3FCE-C766-4CC5-B048-144477EFEE02}, InventItemService.findKeys.
The SQL database has issued an error.
Cannot create a record in Exceptions (SysExceptionTable). Exception type: Error, Cannot create a record in Message Table (AifMessageLog). Message ID: {23BD3FCE-C766-4CC5-B048-144477EFEE02}, InventItemService.findKeys.
The SQL database has issued an error..
The SQL database has issued an error.

Code is looking like below :

CriteriaElement elem = new CriteriaElement();
elem.DataSourceName = "InventTable";
elem.FieldName = "ItemId";
elem.Operator = Operator.Equal;
elem.Value1 = "1151";
QueryCriteria crit = new QueryCriteria();
crit.CriteriaElement = new CriteriaElement[1] { elem };
EntityKey[] ekey = proxy.findKeys(crit);

Item is already in AX .But i'm getting this Error.

Any suggestions ?.

*This post is locked for comments

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

    Code Beginner, please pay attention to what you use as tags; "The SQL database has issued an error. Cannot create a record in Exceptions (SysExceptionTable)." isn't a very useful category of questions. Let me update it; I'll also remove the AX version from the title, because it merely duplicates the version tag.

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

    In strongly recommend that you try to reproduce the problem directly in AX, instead of going through all the proxy classes and the web service call. It will make debugging much easier.

    Try writing to SysExceptionTable from AX, maybe you'll get an error and you'll learn more about what DB error was thrown.

    Check event logs. It may also be worth synchronizing DB, in case your problem is caused by problems with synchronization.

    If you fail reproducing the problem, try debugging X++ executed during the service call; it might reveal more details.

  • Suggested answer
    JII SAADUDDIN Profile Picture
    1,832 on at

    Hi, I think this is no longer connected on the issue. Do you config or change security roles?

  • Community Member Profile Picture
    on at

    Hi jii,

    I don't change any roles Saaduddin.

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 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans