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 :
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
    RE: Unable to create record in sales line

    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
    RE: Unable to create record in sales line

    Hi Gecel,

    Were you able to resolve the issue you hwere having ?

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Unable to create record in sales line

    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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 333

#2
Sagar Suman Profile Picture

Sagar Suman 187 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans