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 NAV (Archived)
Answered

No. Series Code'' does not exist

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

In the below code it gives above error

"Journal Template Name":='GENERAL';
"Journal Batch Name":='test';
"Posting No. Series":='JV';
"Line No.":=GetLineNo;

GenJnlLine.RESET;
GenJnlLine.SETRANGE("Journal Template Name",'GENERAL');
GenJnlLine.SETRANGE("Journal Batch Name",'test');
GenJnlLine.SETRANGE("External Document No.", "External Document No.");
IF NOT GenJnlLine.FINDFIRST THEN
"Document No.":= NoSeriesMgt.GetNextNo(GenJnlLine."Posting No. Series", "Posting Date",FALSE)
ELSE
"Document No.":= GenJnlLine."Document No.";

Thanks

*This post is locked for comments

I have the same question (0)
  • Mohana Yadav Profile Picture
    61,172 Super User 2026 Season 1 on at

    "Document No.":= NoSeriesMgt.GetNextNo(GenJnlLine."Posting No. Series", "Posting Date",FALSE)

    I guess GenJnlLine."Posting No. Series" is blank

  • jsshivalik Profile Picture
    3,099 on at

    Hi

     What changes should i do in my code . Secondly How the below line works

    "Document No.":= NoSeriesMgt.GetNextNo(GenJnlLine."Posting No. Series", "Posting Date",FALSE)

    Thanks

  • Suggested answer
    Mohana Yadav Profile Picture
    61,172 Super User 2026 Season 1 on at

    you need to pass right value in first parameter like from No. series code to use.

    please dont expect code changes.. expect only suggestions..

  • jsshivalik Profile Picture
    3,099 on at

    Hi

     Can u pls guide how the below line works

    NoSeriesMgt.GetNextNo(GenJnlLine."Posting No. Series", "Posting Date",FALSE)

    Thanks

  • Verified answer
    Mohana Yadav Profile Picture
    61,172 Super User 2026 Season 1 on at

    1st paramenter is no. series code (using this no. series only next no will be generated)

    2nd parameter Posting date, this you have multiple no. series with different start date then this posting date is used to get right no. series by start date.

    3rd parameter is update the no. series or not. it should be yes..

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans