Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Cannot Insert Data Into Table

(0) ShareShare
ReportReport
Posted on by 347

Hi All,

I face problem that looks weird.

The version of AX is just AX2012(neither R2 nor R3).

When I try to insert some data into (table)EcoResTrackingDimensionGroupProduct, an error like below appears and not be able to insert the data.

pastedimage1562215683909v1.png

Of course the table doesn't have the data.

pastedimage1562215831936v2.png

How can I solve this situation?

*This post is locked for comments

  • Lifeisbelieveful Profile Picture
    347 on at
    RE: Cannot Insert Data Into Table

    Thanks all,

    All replies inspired me to access this problem.

    There is conflict with RecId.

    It was really helpful for me.

    Thanks.

  • Verified answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Cannot Insert Data Into Table

    Your screenshots don't provide enough information to understand the problem.

    - We can see that Product recId 5637154327 doesn't exist in EcoResTrackingDimensionGroupProduct.

    - We can see that trying to insert a record where product number is 033505010 and tracking dimension is BN fails because of "The record already exists" error.

    We don't have any link between these two pieces of information. Could you maybe share some screenshot where we could see if EcoResProduct 033505010 has RecId  5637154327?

    By the way, have you done any data management operations such as imported data directly in SQL lately? If yes, your RecId number sequences might not be up to date, and that would also explain this issue. In SystemSequences table AX stores the next available RecId for each table. If that sequence gives numbers that are actually already present as RecId in the target table, you would also see this error.

  • Verified answer
    Satish Panwar Profile Picture
    14,651 Moderator on at
    RE: Cannot Insert Data Into Table

    Hi Daniel

    Just to make sure there is no problem with RecId (as duplicates are not allowed), can you try creating a new item directly in released products and see if it goes through. It would atleast help isolate the problem.

  • Lifeisbelieveful Profile Picture
    347 on at
    RE: Cannot Insert Data Into Table

    Hi Andre,

    The only index which is not be able to duplicate is product field, and I'm sure that the same product doesn't exist in the table as I shared the image.

    Thanks.

  • André Arnaud de Calavon Profile Picture
    292,850 Super User 2025 Season 1 on at
    RE: Cannot Insert Data Into Table

    Hi Lifeisbelieveful,

    Your first screenshot shows the table with data. As it is showing record ID's I cannot comment if the product is included already or not. However, also check which indexes are used on this table and see if they prevent duplicates. 

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... 292,850 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans