Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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.

(0) ShareShare
ReportReport
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
    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
    18,698 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
    47,789 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
    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
    47,789 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
    5,891 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
    18,698 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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans