Announcements
i use visual studio to create budget header using X++ in D365FO
i face this issue
Microsoft.Dynamics.Ax.Xpp.ErrorException: 'Number selection is canceled.'
in this line of number sequence
numberSeq = NumberSeq::newGetNum(BudgetParameters::numRefBudgetTransactionId());
info(numberSeq.num()); ---- in this line
and i'm sure there is a number sequence in the module parameter .. any help ?
numberSeq.num() isn't the line that throws the error. It just calls a method (num()), which calls another method (runNumber()), which calls more methods... and somewhere a 'throw' statement is used to actually throw the exception.
You need to look at place where the error is thrown to understand why it happens.
my required is create it using X++
and number sequences is setup and i have many transactions using the number seq throw UI but when i use
numberSeq.num() method i got the mentioned error
Hi Omar,
Did you check if the number sequence is set up properly? Are you able to create Budget entries from the UI
Can you please debug the code and tell us where exactly does the error gets thrown?
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator