Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

DataPort

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

  I am trying to import Data in table 16549 Gen. Journal Narration using Dataport . Problem is if there are 2 lines for Document No it is showing only second record , may be it is overwriting . 

Gen. Journal Narration - OnAfterImportRecord()
"Journal Template Name":='GENERAL';
"Journal Batch Name":='Test';

GJNLine.RESET;
GJNLine."Journal Template Name":='GENERAL';
GJNLine."Journal Batch Name":='Test';

GJNLine."Document No." := "Gen. Journal Narration"."Document No.";
IF GJNLine.FINDLAST THEN BEGIN
"Gen. Journal Narration"."Line No." := GJNLine."Line No." + 10000;
END ELSE BEGIN
"Gen. Journal Narration"."Line No." := 10000;
END;

*This post is locked for comments

  • keoma Profile Picture
    32,727 on at
    RE: DataPort

    check if the key fields are set correctly.

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

🌸 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…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans