web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Delivery address not imported during sales order header import

(0) ShareShare
ReportReport
Posted on by 10

Hi,

When importing sales order header using data entity 'Sales order headers V2' the delivery address on the imported SO is not set to the delivery address provided in the file.

Instead the SO delivery address is set to the primary delivery address specified on the customer.

The file is generated by exporting an existing SO (in the same application and company) to Excel using the same data entity.

Step-by-step:

  1. Create an non-primary delivery address for a customer.
  2. Create a sales order for the customer using the non-primary delivery address.
  3. Export the sales order.
  4. Delete the sales order.
  5. Delete the non-primary delivery address on the customer.
  6. Import the sales order.

Result:

The sales order is created with the primary (standard) delivery address.

The non-primary delivery address is not created on the customer.

I have tried debugging but without locating the root cause yet. The field mapping is ok and regenerating it has no effect.

Any ideas?

I have the same question (0)
  • nmaenpaa Profile Picture
    101,162 Moderator on at

    Are you using Dynamics AX (2012) or Dynamics 365 for Finance & Operations?

    Can you share the file that you are importing, at least the delivery address section.

    Also, I don't think that SO import should/will create delivery addresses for the customer. But of course the provided delivery address should appear on the order.

  • Karsten Rasch Profile Picture
    10 on at

    It is D365.

    Further testing shows that:

    - D365 will copy an existing delivery address from the CUSTOMER to the created/updated SO if the import file in field DELIVERYADDRESSNAME has a value which matches an existing delivery address name on the customer.

    - As the address is copied from the CUSTOMER and not from the FILE any differences - say, another street name in the file - is not imported.

    The DELIVERYADDRESS* fields from the test file:

    4278.pastedimage1588683843155v1.png

  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    Ok, thanks for the info. Do you expect to have same name in many addresses in your real business scenario?

    If you feel it's a bug, you can report it to MS by support request.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    moved to the d365 forum

  • Suggested answer
    Rahul Mohta Profile Picture
    21,032 on at

    these fields gets the delivery address

    DELIVERYADDRESSCITY DELIVERYADDRESSCOUNTRYREGIONISOCODE DELIVERYADDRESSCOUNTYID DELIVERYADDRESSDESCRIPTION DELIVERYADDRESSNAME DELIVERYADDRESSSTATEID DELIVERYADDRESSSTREET DELIVERYADDRESSZIPCODE

    it is working , which env/version r u using?

  • Suggested answer
    Karsten Rasch Profile Picture
    10 on at

    The answer from MS is that it is by design.

    My solution was to extend the insert-method on the SalesTable datasource in the entity to create the delivery address and then set the address-reference from SalesTable.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 301 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 120 Super User 2025 Season 2

#3
Siv Sagar Profile Picture

Siv Sagar 105 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans