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)

AX 2012 - number sequence does not work (projects)

(0) ShareShare
ReportReport
Posted on by

Hello,

I have problem with automatic numbering - seems that:

- when creating new project, Project ID is not being automatically assigned:

7608.12.png

- I've checked how it looks in numbering sequence for projects, and there is seems ok:

5444.13.png

- RBO_1 has no 'manual' checked, and this sequence defined as to be used for 'Project ID' field:

- unfortunatelly, still - when trying to create new project (first picture above), number for 'Project ID' is not being automatically generated :(

Tried to mark 'manual' and clear it again - no result; tried also to regoot server - unfortunately also not any change. Could anyone advice where the problem may be?

regards

Tomasz

*This post is locked for comments

I have the same question (0)
  • UmesH@ Profile Picture
    810 on at
    RE: AX 2012 - number sequence does not work (projects)

    Generate Number Sequence Per Company or Shared.

    and after

    -->Create Method from DataSource to generate Auto Number Sequence

    -------------------------------------------------------------------------------

    public void create(boolean _append = false)

    {

     str strNumberSequenceName;

       super(_append);

       strNumberSequenceName=numberSeq::newGetNumFromCode('YourNumberSequenceCode',NumberSeqScope::find(NumberSequenceScope::findByNaturalKey('',0,0,0).RecId)).num();

       DataSourceName.FieldName=strNumberSequenceName;

    }

  • Community Member Profile Picture
    on at
    RE: AX 2012 - number sequence does not work (projects)

    Hi Hasan,

    I had the same problem.

    I set the nuber sequence for Job Identification (Human recources/Setup/Time and attendance/Time and attendance parameters/ <Number sequences>) and the problem was solved.

    R.

  • Community Member Profile Picture
    on at
    RE: AX 2012 - number sequence does not work (projects)

    Hi all,

    Case has been closed now.

    I have successfully create project.

    I don't know for sure what is the root cause.

    But what I do is:

    1. Unassigned the number sequences in the proejct parameter

    2. Delete the number sequences

    3. Generate number using wizard

    4. Restart AX

    After that there is no error again.

    Then I recareate the number sequences for my Project ID and assign again to my project parameter.

    Many thanks guys for the helps and feedback.

    Really appreciate for that.

    THanks,

    M.H.

  • André Arnaud de Calavon Profile Picture
    298,959 Super User 2025 Season 2 on at
    RE: AX 2012 - number sequence does not work (projects)

    Hi M. Hasan,

    Can you check the Segment configuration? Organization administration > Common > Number sequences > Segment configuration.

    Can you confirm if the Company check box is enabled for the Project ID?

    2015_2D00_08_2D00_13_5F00_08_2D00_05_2D00_07.png

  • 5400 Profile Picture
    7,162 on at
    RE: AX 2012 - number sequence does not work (projects)

    Hi Hasan,

    Now, you have to debug the below code with only one step and you can easily find the root cause instead of multiple query. during debugging you can check all above value is coming correct or not easily. we are very near. i am stuck here now without debugging i can't tell what exactly issue in your setup or data.    

    \Data Dictionary\Tables\ProjParameters\Methods\numRefProjId

    Thanks

    Bhaskar

  • Community Member Profile Picture
    on at
    RE: AX 2012 - number sequence does not work (projects)

    Below is the screen shot:

    Project-_2D00_-Error-Project-ID.jpg

    Project ID - Transaction

    Project-_2D00_-Error-Project-ID.jpg

    Project ID - Error

    Project-_2D00_-Error-Project-ID.jpg

    The transaction is run in company 1100

  • 5400 Profile Picture
    7,162 on at
    RE: AX 2012 - number sequence does not work (projects)

    you can get number sequence reference table with below recid

    Scope:last three digit of recid 331

    Table:last three digit of recid  576

    Data Type:last three digit of recid  909

    Hope you are creating project under company "1100".

    Please confirm above detaisl.

  • Community Member Profile Picture
    on at
    RE: AX 2012 - number sequence does not work (projects)

    numbersequencescope-all.png

    Above is all number sequence scope talble

  • 5400 Profile Picture
    7,162 on at
    RE: AX 2012 - number sequence does not work (projects)

    I think, number sequence Scope table having issue.

    can you check with below query are u getting any recid or not.

    select firstonly scope

       where

           scope.DataArea == '1100' &&

           scope.LegalEntity == 0 &&

           scope.OperatingUnit == 0&&

           scope.FiscalCalendarPeriod == 0&&

           scope.OperatingUnitType == OMOperatingUnitType::None

    Or send me details screen with this record.

  • Suggested answer
    Bashir Ahmad Profile Picture
    5,248 on at
    RE: AX 2012 - number sequence does not work (projects)

    community.dynamics.com/.../number-sequence-xxxx-has-been-exceeded

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
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans