Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

No. Series Code'' does not exist

(0) ShareShare
ReportReport
Posted on by 3,027

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

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: No. Series Code'' does not exist

    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..

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: No. Series Code'' does not exist

    Hi

     Can u pls guide how the below line works

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

    Thanks

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: No. Series Code'' does not exist

    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
    jsshivalik 3,027 on at
    RE: No. Series Code'' does not exist

    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

  • Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: No. Series Code'' does not exist

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

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans