Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

NAV 2017 Error : Source Code must have a value in gen. journal line. Journal Template Name=Sales, Journal Batch Name=DEFAULT, Line No.=2.It cannot be zero or empty.

Posted on by 255

Hi,

I received the following erorr when I tried to import opening sales invoice to NAV.

"Source Code must have a value in gen. journal line. Journal Template Name=Sales, Journal Batch Name=DEFAULT, Line No.=2.It cannot be zero or empty."

Below is the screenshot of the Excel Template which I populated with 2 rows of data for testing.1856.Capture.PNG

Any idea?

*This post is locked for comments

  • RUNNEUSEGES Profile Picture
    RUNNEUSEGES 35 on at
    RE: NAV 2017 Error : Source Code must have a value in gen. journal line. Journal Template Name=Sales, Journal Batch Name=DEFAULT, Line No.=2.It cannot be zero or empty.

    i  had this probleme

    in the general templates, for genéral, i have a source code, so i don't see why i have this message

    i use OPENBAL for opening balance

    thanks

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: NAV 2017 Error : Source Code must have a value in gen. journal line. Journal Template Name=Sales, Journal Batch Name=DEFAULT, Line No.=2.It cannot be zero or empty.

    In General journal templates search for SALES templates and put source code in fields.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: NAV 2017 Error : Source Code must have a value in gen. journal line. Journal Template Name=Sales, Journal Batch Name=DEFAULT, Line No.=2.It cannot be zero or empty.

    Search for General Journal Templates, then on that page for SALES make sure you have the source code column has value, if not please select a value usually it will be SALESJNL.

  • Saifudin Profile Picture
    Saifudin 255 on at
    RE: NAV 2017 Error : Source Code must have a value in gen. journal line. Journal Template Name=Sales, Journal Batch Name=DEFAULT, Line No.=2.It cannot be zero or empty.

    Where and how to check the source code? I have no idea.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: NAV 2017 Error : Source Code must have a value in gen. journal line. Journal Template Name=Sales, Journal Batch Name=DEFAULT, Line No.=2.It cannot be zero or empty.

    Please check for Gen. Journal Template SALES as source code setup.

  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: NAV 2017 Error : Source Code must have a value in gen. journal line. Journal Template Name=Sales, Journal Batch Name=DEFAULT, Line No.=2.It cannot be zero or empty.

    hi ,

    on your lines there is one field or more than one on your "source code" are may missing or not match with on your categories

    Check it ...

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: NAV 2017 Error : Source Code must have a value in gen. journal line. Journal Template Name=Sales, Journal Batch Name=DEFAULT, Line No.=2.It cannot be zero or empty.

    Check whether you have selected source code on Journal Template.

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans