web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Started getting odd duplicate record errors

(0) ShareShare
ReportReport
Posted on by 6

This is odd and has only started happening in the last few days.

I have some simple Dexterity sansScript code that does the following (this is not the actual code):

RecordKey of table xxx = RecordKey of window abc;

SequenceNo of table xxx = SequenceNo of window abc;

change table xxx;

if err() = MISSING then

    save table xxx;

else

    release table xxx

    warning "duplicate record";

end if;

Now, my problem is that the even is the record is new and doesn't exist, I am getting a error code 17 (duplicate record) when it hits the save table command.

I do not understand why this is happening.  I am checking to see if the record is missing, therefore a new record, but when it saves it is saying it is a duplicate.

This is now happening in 2 different scripts and only started a few days ago.  I am not sure what is happening.

Does any Dexterity developer have a clue?

Categories:
I have the same question (0)
  • agaber Profile Picture
    on at
    RE: Started getting odd duplicate record errors

    Hi Mark-

    Thank you for posting your question on the Forums.  We will leave this thread open for any Dexterity Developers to chime in from the community.  Have a great day!

    Adam G.

    Microsoft Dynamics GP

  • Suggested answer
    mavrick5au Profile Picture
    6 on at
    RE: Started getting odd duplicate record errors

    Update:  I have discovered the issue and resolved it.  The table is indexed on the key plus the sequence number. Someone had added an index just for the sequence number to the table which was incorrect.  This was causing the duplicate errors.  I have removed the index and it now works.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,028

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 878 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 579 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans