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 :
Supply chain | Supply Chain Management, Commerce
Answered

Error while doing sales picking of a batch enabled item

(5) ShareShare
ReportReport
Posted on by 43
Getting  'A duplicate key exception occurred. Please try again in a few minutes.' error while doing sales picking of a batch and LP enabled item
 
How we can resolve it?
 
I have the same question (0)
  • Suggested answer
    Holly Huffman Profile Picture
    6,554 Super User 2026 Season 1 on at
    Good morning, afternoon, or evening :) depending on your location!
     
    The "A duplicate key exception occurred" error during sales picking of a batch-enabled and LP-enabled item in Dynamics 365 F&O typically happens due to conflicts in key assignments, often related to license plate (LP) positions or batch tracking.
     
    Possible Causes & Solutions
    1. Check for Duplicate Entries
      • Ensure that the batch and LP data do not have duplicate records in the system.
      • Run a query to check if the same LP or batch number is assigned multiple times.
    2. LP Position Feature Conflict
      • If you recently activated LP position tracking, it may be causing conflicts.
      • Try disabling LP position tracking temporarily and see if the error persists.
    3. Database Integrity Check
      • Run a RecId sequence check to ensure that the system is not generating duplicate keys.
      • If necessary, reset the sequence using SQL scripts.
    4. Clear Cache & Refresh
      • Log out and log back in after a few minutes.
      • Perform a full system refresh to clear temporary conflicts.
    5. Review Picking Profiles & Work Templates
      • Ensure that the work template for picking does not have conflicting LP assignments.
      • If using batch reservation, verify that the batch is correctly allocated.
     
    Hope this helps!
  • Verified answer
    Laurens vd Tang Profile Picture
    4,795 Super User 2026 Season 1 on at
    Good day,
     
    Is the parameter 'Enable license plate positioning' activated on the location profile?
     
     
    Best regards,
    Laurens van der Tang
  • Vish_ Profile Picture
    43 on at
    Hi Laurens,
     
    Yes, the parameter 'Enable license plate positioning' is enabled on the location profile.
  • Sagar Suman Profile Picture
    6,771 Super User 2026 Season 1 on at
    Hi,
     
    Can you share the on hand of this location with all dimensions enabled. 
  • Laurens vd Tang Profile Picture
    4,795 Super User 2026 Season 1 on at
    Good day,
     
    Can you disable the parameter 'Enable license plate positioning' and try it again?
     
    Best regards,
    Laurens van der Tang
  • Vish_ Profile Picture
    43 on at
     
    Yes, I disabled the 'Enable license plate positioning' parameter and its resolved the issue.
    Could you please shed some light on how this parameter triggered the issue?
     
     
     
    I have attached on hand list 
     
     
    Thank you everyone! :)
  • Laurens vd Tang Profile Picture
    4,795 Super User 2026 Season 1 on at
    Good day,
     
    Could you check if there are any duplicate positions for the license plate position?
     
     
     
    Best regards,
    Laurens van der Tang

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 153 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 97 Super User 2026 Season 1

#3
Zain Mehmood Profile Picture

Zain Mehmood 89 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans