NAV 2018. How to export XML file

Linaly
Linaly Member Posts: 1
edited 2025-10-16 in NAV Three Tier

Hi!

I am new here and also still learning NAV 2018, so my knowledge is limited.

I have an issue: when I go to Sales Order and select a specific customer, then try to Post -> Invoice -> Ok, I get an error.

I don’t understand why, but I heard that it’s possible to export an XML file to see what the problem is.

Could you please advise how to do this or suggest other ways to solve the issue?

Thank you and have a great day!

image.png

Answers

  • RockWithNAV
    RockWithNAV Member Posts: 1,193

    Please check if there is any customization which is triggering this.

  • kriki
    kriki Member, Moderator Posts: 9,127

    I guess you are doing a commit somewhere before all G/L entries have been written to the DB. This commit triggers the CONSISTENT check.

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • kriki
    kriki Member, Moderator Posts: 9,127

    [color=#FF0000][Topic moved from 'General Chat' forum to 'NAV Three Tier' forum][/color]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Miklos_Hollender
    Miklos_Hollender Member Posts: 1,627

    No such XML log, you need to use the debugger: https://navhelp110.fenwickcloud.com.au/main.aspx?lang=en-AU&content=tskActivateDebuggerFromDevelopmentEnvironment.htm

  • vaprog
    vaprog Member Posts: 1,172

    With consistency errors, you first need to make sure, the commit statement that causes it is not premature.

    If it is, you need to remove it, or disable it during posting if it is needed otherwise.

    If the consistency error comes up in the COMMIT in FinalizePosting (or the first Commit after that, if the commit in FinalizePosting was suppressed) then invalid (i.e. inconsistent) entries were created during the posting.

    Preview posting may help you spot a missing entry, or an entry with a wrong value.

    Please also verify all amounts are properly rounded to their respective precisions according to the currency. You may not see this with preview posting, because sometimes the UI rounds correctly, even though the value is incorrectly rounded in the database.