When insert customer, first insert contact and breaks on error customer no is not exist.

When insert customer, first try to insert contact and breaks on error

It goes to the Contact - OnValidate() trigger and try to modify then show an error.


Microsoft Dynamics NAV

Customer No. ‘’ does not exist.


OK

Because there is no customer no in customer table and it first try to insert contact with customer no, also there is no contact for customer.

I am using dataport for insert customer. I use the dataport for the vendor, it automatically insert vendor contact. but for customer its not work.

Thanks.

You should try to import the customer incl. the contact name and the after import validate on the contact name field.