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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Unable to create record in sales line

(0) ShareShare
ReportReport
Posted on by 496

Hi,

I am having this error whenever I add new line in the sales order line - Cannot create a record in Order lines (SalesLine). Sales order: XXXXXXXX, XXXXXXXXXXX. The record already exists.

Although, I already set the LotID number sequence to continuous and manual clean up on sales order number sequence. I actually follow the resolution given in this link.

I have the same question (0)
  • Verified answer
    Satish Panwar Profile Picture
    14,671 Moderator on at

    Hi Gecel,

    Check if there are number sequence in the free list on number sequence for lot of that may be getting used again and causing duplicate. You may have to delete from the list. Also check unique indexes and then try to determine what causing the issue.

  • Satish Panwar Profile Picture
    14,671 Moderator on at

    Hi Gecel,

    Were you able to resolve the issue you hwere having ?

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Lot ID should not be set up as continuous as it will cause unnecessary performance load.

    Please check what is the next Lot ID that the number sequence is trying to give you, and make sure that such number is not already existing in SalesLine table. Adjust the number sequence's Next value if necessary, so that it gives you a new (and not used) number.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 271 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 171 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans