Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Payroll Journal Line dataport import does not populate the Payroll Journal Header

(0) ShareShare
ReportReport
Posted on by 35

We use a dataport import object to import Payroll Journal Lines (employee no., hours, tips and other Payroll Journal Line items). The dataport makes the proper entries into the Payroll Journal and everything looks fine. However, the dataport does not properly populate the Payroll Journal header (the "Bank Payment Type" field is missing). This dataport object worked fine in Navision 5.0 and was converted for use with NAV 2009. But it does not work in NAV 2009 because the Payroll Journal Header is not properly populated. The Bank Payment Type is properly populated in the Payroll Journal but no in the Payroll Journal Header. The dataport incldues a VALIDATE statement for the "Employee No." field. How do I get the Payroll Journal Header to populate correctly?

*This post is locked for comments

  • Jeff Knight Profile Picture
    Jeff Knight 35 on at
    Re: Payroll Journal Line dataport import does not populate the Payroll Journal Header

    Rashed, thank you!

    The Payroll Journal Header appears to properly populate for each record if I add the follwoing code to the "OnAfterImportRecord" trigger:

    "Payroll Journal Line".InsertHeader

  • Rashed Profile Picture
    Rashed 3,765 on at
    Re: Payroll Journal Line dataport import does not populate the Payroll Journal Header

    There is a function on Payroll journal called insertHeader.

    You need to call it after you insert the the journalline.

    journalline.insertheader;

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 Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans