web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to Re-use numbers from Number sequence which isn't saved

(0) ShareShare
ReportReport
Posted on by

Hi,

I am just trying to re-use number sequence. In my case, First I am generating the sequence and it shows NUM-001. Without saving that record, while creating  it again coming to NUM-002. But, I need NUM-001 again.

I couldn't solved this problem by using number sequence Form's close() method,

public void close()

    {

        if (numberSeqFormHandler)

        {

            numberSeqFormHandler.formMethodClose();

        }

 

        super();

    }  

Thanks,

Shakul SM

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Catalyst619 Profile Picture
    355 on at
    RE: How to Re-use numbers from Number sequence which isn't saved

    Please have a look through the following threads. They may be resourceful for what you're trying to achieve: 

    community.dynamics.com/.../106293

    community.dynamics.com/.../112023

  • Community Member Profile Picture
    on at
    RE: How to Re-use numbers from Number sequence which isn't saved

    Thanks Aleks for replying,

    Had tried the solution which is mentioned, but it isn't working. Any other solution please?

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: How to Re-use numbers from Number sequence which isn't saved

    Could you share your code which you use for getting the number from the number sequence?

    Also, please check the Automatic cleanup job that you can enable for the number sequence.

    "When you select the Continuous check box of a number sequence, the system automatically ensures that no numbers from the current sequence are lost. The system furthermore ensures that selected numbers are returned to the list if an update is unexpectedly terminated or fails.

    In cases of power failure, crashes, or other kinds of unexpected termination, the system cannot return the numbers automatically. This is because the client process stops, leaving no time for the required cleanup of the selected numbers. The complete cleanup will find such temporary lost numbers and return them to the list with the status Free."

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans