Export and import sales order with XML

aboomaraboomar Member Posts: 47
Guys

I am finished export and import sales order with XML but i face a problem with import
this error appear

Microsoft Dynamics NAV
You cannot base a date calculation on an undefined date.

Date: 0D
Formula:

OK

Comments

  • Lec11Lec11 Member Posts: 91
    See with the debugger where this error appears and just check the reference date to not be blank, like this:
    IF RefDate <> 0D THEN <calcdate>;
  • pballypbally Member Posts: 4
    I had the same message.
    Now it works.
    The document date was not initialized.
    To do this, add a line code to the sales header import onafterinitrecord trigger :
    "<Sales Header>".VALIDATE("Document Date",TODAY);
Sign In or Register to comment.