-2

While importing purchlines using the data import export framework with a purchase id that does not exist, will the Standard AX create a purchase header or throw an error stating that purchase id does not exist?

FH-Inway
  • 4,432
  • 1
  • 20
  • 37
lishu
  • 1
  • 1
  • 1
    Welcome to Stack Overflow. Please try to do same basic research on your own before asking a question. It only takes a few minutes to test what you are asking. – FH-Inway May 02 '16 at 15:08
  • Same question in AX community: [importing purchLine with an non-existing purchid](https://community.dynamics.com/ax/f/33/t/198361) – FH-Inway May 03 '16 at 12:34

1 Answers1

1

The Data Import/Export Framework entity for purchase order lines will create a purchase order header if a PurchId is provided in the staging data (see method GeneratePurchTableLink in class DMFPurchLineEntityClass). It should not be possible to not provide a PurchId since that field is mandatory in the staging table.

Please take care to also provide a valid VendAccount, otherwise the created purchase order will be incorrect.

FH-Inway
  • 4,432
  • 1
  • 20
  • 37