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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Error while releasing order

(0) ShareShare
ReportReport
Posted on by 46

Today while trying to release a order from Salespad following error occured:

 Cannot insert duplicate key row in object ‘dbo.DEX_LOCK’ with unique index ‘PK_DEX_LOCK’. The duplicate key value is (-xxxxxx, dbo.SOP10100), whats the possible reason for it?

Categories:
I have the same question (0)
  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,061 Moderator on at

    You should contact your SalesPad partner..

    This looks like an integration issue with SP to GP.. the value -xxxxxx makes me think that it tries to reserve the next SO number, but fails. Or 2 users at the same time trying to enter a new Sales Order and there is no exclusive lock from SP...

  • sprasana Profile Picture
    46 on at

    Thank you, I read dex_lock is associated with dex_session in tempdb, which keep tracks user session logged in, -xxxxxx is number in dex_row_id of sop101000 table, which keep tracks identity of individual user. Is there any way to fix the issue for that particular document by clearing session like that?

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,061 Moderator on at

    Yes you can..

    Here is the Microsoft KB article on how to achieve this:

    support.microsoft.com/.../how-to-remove-all-the-inactive-sessions-from-the-dex-lock-table-in-the

  • sprasana Profile Picture
    46 on at

    One more thing on this...I asked the particular person who is having issue with above error to log out and log in again from salespad, why that is not solving the issue? logging out doesn't clear the session from dex_session table?? Even that person logged out and logged in again and created new document.

  • Verified answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,061 Moderator on at

    As I stated earlier, this seems to be a SalesPad integration issue.. not sure how the SalesPad client is handling the dex_lock & des_session table entries.

    You should contact your SalesPad integration partner..

  • sprasana Profile Picture
    46 on at

    Thank you very much for your support and prompt responses.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 265 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 261 Super User 2026 Season 2

#3
Subra Profile Picture

Subra 229 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans