AX inserts a record prompt table record already exists, but the record does not actually exist.

Source: Internet
Author: User

There was a situation when doing the test "AX inserts a record that the table record already exists, but the record does not actually exist." ”

Check to the table (TABLE_ABC) that all the keys are allowduplicate,

Continue to check the table properties found Createdrecidxidx is set to Yes, RecId is enabled as a unique key.

So it is supposed that the NextValue data of the table's recid is wrong.

Try to refresh the recid.

In the SQL background

1. Calculate TABLE_ABC's current largest recid

DECLARE @maxRecId Int64

Select @maxRecId = max (RECID) from sml_gitlistreceived with (NOLOCK)

2. System record RecId table systemsequences

Update systemsequences
Set nextval = @maxRecId +10000
where TabID = TableID of 35223//table_abc

3, you must restart all AOS for ax at this time, and the problem is resolved after re-login

  

AX inserts a record prompt table record already exists, but the record does not actually exist.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.