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 :
Microsoft Dynamics AX (Archived)

line number in movement journal line

(0) ShareShare
ReportReport
Posted on by
Hi. I add linenum field on movement journal line, but it shows negative value. any solution or idea? Regards

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    305,150 Super User 2026 Season 1 on at

    HI,

    When you create a new line, AX will increment the line number automatically. When you hit the New button or uses the shortcut ctrl+N, a line above the existing line will be inserted. If this was at the point of the first row of the grid, you get a new line at the top. In this case AX can create negative line numbers. It tries to keep the line as inserted. The negative values do not harm your system.

  • Suggested answer
    Community Member Profile Picture
    on at

    Journals are having its logic to get new journal lines number

    normally as per logic line numbers are in sequence, but let suppose if we press ctr+N in between two records logic generates line number in between, line 0.5 if line is created in between 1 and 2

    like that if you have one record created with linenum = 1 and your you click 'New' button or press ctrl + N, system will give -1 as next line num

    What is suggested over here as work around is to press 'Down arrow' to create a new record, in this case

    you will get correct next sequence number

    Please verify and let me know your findings.

  • Community Member Profile Picture
    on at

    Hi. I want to show line number for users, because they want to know number of each line for ease of access to journal line and can access lines faster. but when it shows negative value, I can't show it to user. what can I do?

    Regards

  • Suggested answer
    Community Member Profile Picture
    on at

    create a display method using LineNum

    if LineNum is return 0

    and for text box which shows the linenum, set the property to not to show the 0 value

    Please verify and let me know if you need details

  • Community Member Profile Picture
    on at

    Hi. I show this line number to users and based on line number, users find they lines of order or journals. when it shows minus value, they get confused about that. what have to do?

    Regards

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    305,150 Super User 2026 Season 1 on at

    Hi,

    As said in my previous reply it is standard behavior. If the users thinks it is confusing, you can consider create a small customization where the auto line increment will be disabled on the form and the increment will be done in the insert method of the table.

    Note that then always newly added lines will be put at the end of the journal. It is then not possible anymore to insert a record between two other lines.

    You can also teach the users to create the lines at the end of the journal instead of use the Ctrl+N funcitonality.

    You can also tell them that the negative line number really do NOT harm the system. It is just a method of having the lines in a specific order.

  • Community Member Profile Picture
    on at

    Hi. Thanks for reply. in some cases in sales order line, we have duplicate line number.why?

    Regards

  • André Arnaud de Calavon Profile Picture
    305,150 Super User 2026 Season 1 on at

    Hi,

    This is another question. Can you provide an example of the duplicate number and records before and after this duplicate?

    It could be caused by inserting records at the same point again and again. AX tries to create a line number between the records where the new sales line is inserted. Once it cannot create a new line number due to rounding and maximum number of decimals you can get the duplicate.

  • Suggested answer
    Community Member Profile Picture
    on at

    Overwrite create method of datasource and change the default parameter value to 'True' for positive numbers

  • KJ-22040758-0 Profile Picture
    5 on at

    Hi Srikanth Nunna,

    After this Change Line Number Comes Positive Numbers. But i am Selecting inbetween line placed on cursor, then create new line same line number will be Repeated.

    Please give any Suggestion

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

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 24

#2
Michel ROY Profile Picture

Michel ROY 14

#3
Jagadabi Profile Picture

Jagadabi 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans