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 :
Finance | Project Operations, Human Resources, ...
Answered

Error while loading number sequence

(0) ShareShare
ReportReport
Posted on by 351

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.
I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    304,182 Super User 2026 Season 1 on at

    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.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    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

  • Verified answer
    PriyaDutta Profile Picture
    351 on at

    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 ?

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

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 681

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 202 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans