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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Suggested answer

Creating new sales order through DIXF in D365

(0) ShareShare
ReportReport
Posted on by 501

I want to create a new sales order through DIXF in dynamics 365. I am using Sales order Composite entity for this. My XML file contains 1 header and 2 lines. When i import sales order, it gives error on sales order line and gives error "Sales order number does not allow editing", so kindly tell me how to create sales order through composite data entity.

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    236,477 Most Valuable Professional on at
    RE: Creating new sales order through DIXF in D365

    Is it your intention to create the order with a specific sales ID, instead of getting a new ID from number sequence in AX?

  • Bashir Ahmad Profile Picture
    5,248 on at
    RE: Creating new sales order through DIXF in D365

    the composite entity metadata needs to be refreshed.

    Go to DIXF Parameters > Entity settings. Click Refresh entity list.  :)

    https://ax.help.dynamics.com/en/wiki/developing-composite-data-entities/

  • Shahrukh Profile Picture
    501 on at
    RE: Creating new sales order through DIXF in D365

    Thanks Martin,

    No i don't want to create with specific sales ID, I want to create sales order with next number sequence.

  • Martin Dráb Profile Picture
    236,477 Most Valuable Professional on at
    RE: Creating new sales order through DIXF in D365

    But it seems that the entity tries to set a sales ID. Are you sure that there is no sales ID in your XML file?

  • Shahrukh Profile Picture
    501 on at
    RE: Creating new sales order through DIXF in D365

    The things i have tried so far are,

    1. kept <SALESORDERNUMBER> tag empty on both header and lines, It gives error on header that update is not allowed for sales order number.
    2. In XML file i have removed <SALESORDERNUMBER> tag from both sales header and from sales lines. It doesn't give any error on sales order header and automatically create next number sequence for sales ID, but for sales line it gives error. 

    - The thing i have understood is, it only assign auto generated salesID to sales header, but it doesn't assign that auto generated sales ID to sales line. So what should i do now ?

  • Martin Dráb Profile Picture
    236,477 Most Valuable Professional on at
    RE: Creating new sales order through DIXF in D365

    What error do you get for order lines?

  • Shahrukh Profile Picture
    501 on at
    RE: Creating new sales order through DIXF in D365

    It is the complete error that it being shown on sales line when i remove tag <SalesOrderNumber> from both sales header and sales line entity.

    Results. update not allowed for field 'Sales order(SalesOrderNumber)'

    Results. Validations failed

  • Martin Dráb Profile Picture
    236,477 Most Valuable Professional on at
    RE: Creating new sales order through DIXF in D365

    Make sure you removed SalesOrderNumber from all lines, not just the first one.

    I tried it by myself, but unfortunately I've run into another error (which MS is working on to resolve), so I can't test it.

  • Shahrukh Profile Picture
    501 on at
    RE: Creating new sales order through DIXF in D365

    I have removed tag from header and all lines and i have verified it dozens of times. but it still gives the same error.
    Is there any probability that it is an open issue ?

  • André Arnaud de Calavon Profile Picture
    299,403 Super User 2025 Season 2 on at
    RE: Creating new sales order through DIXF in D365

    Hi Shahrukh,

    You tried to contact me as this issue is not solved yet. Can you provide a sample xml file you are using?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans