Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Error while loading number sequence

(0) ShareShare
ReportReport
Posted on by 323

Hi ,

I am getting this error message :

System does not support setup 'continuous' of number sequence <Tes_111.
Number selection is canceled.
Thread was being aborted.
Code written:
if (custInvoiceTable.XXXFreeTextId == '')
{
    NumberSeq num                       = NumberSeq::newGetNum(CustParameters::numRefXXXFreeTextId());
    custInvoiceTable.XXXFreeTextId      = num.num();
    custInvoiceTable.update();
}
if Field is empty i want to update the field value from number sequence.
Thanks in advance.
  • Verified answer
    PriyaDutta Profile Picture
    PriyaDutta 323 on at
    RE: Error while loading number sequence

    Hi,

    I have simply added ttsbegin() and ttscommit() before and after the 3 lines of code and the error is gone. 

    I have tested and it is generating continous number seq for me error free. 

    Wont this work ?

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Error while loading number sequence

    Hello PriyaDutta,

    What are you trying to achieve here?

    The free text invoice id is filled in once the invoice is posted and this number is automatically assigned by the number sequence in your AR parameters.

    Why do you need a continuous number sequence for those transactions?

    Can't you simply use a non-continuous number sequence?

    Best regards,

    Ludwig

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: Error while loading number sequence

    Hi Priya,

    Can you tell what would be the expected outcome? Do you have setup the number sequence setup as continues and you want to have a continuous number used or do you want to change the setup to non-continuous?

    If you want to have continuous number, you have to initiate the NumberSeq class first and call a similar method for drawing a number with an additional parameter which determines the continuous behavior. The parameter is called 'makedecisionlater'. If you can set that parameter to 'yes', then it might work to use continuous number sequences. Before ending the coding, you have to 'finalize' the decision by calling numberSeq.used(). There are various implementations of this pattern in the standard for your reference.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans