Skip to main content

Notifications

Microsoft Dynamics SL (Archived)

Field LineNbr

Posted on by 630

Hello, I'm using a process of insert and I need to create a LineNbr, I know it has to negative but does it have to be consecutive? Is that a condition to the process or it's ok if I just insert a negative number?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Field LineNbr

    You did not indicate what table you are inserting a record into but it depends on whether the LineNbr field is part of a unique index into that table.  If you open SQL Management studio and execute the following command

    sp_help xxxxxx    where xxxxxx is the table involved

    you can scroll down to the index definitions for that table and see if LineNbr is part of a unique index.  If the table is one of the standard SL tables then it is very likely that LineNbr must be unique or, at least, unique within the other elements of the index.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans