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

Error while loading number sequence

(0) ShareShare
ReportReport
Posted on by 349

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
    301,130 Super User 2025 Season 2 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
    349 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans