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 :
Finance | Project Operations, Human Resources, ...
Answered

How does DMF entity decide to create a new record or update an existing one?

(0) ShareShare
ReportReport
Posted on by 3,155
I am working with a copy of the 'SMAServiceOrderHeaderEntity' to allow the creation / update of records.
I've noticed that my initial attempts to have the system 'Update' records is failing.  The system is trying to 'Create' records.
I am sending it a Service Order Number that exists in the system and that is the 'Entity Key' on the DMF Entity.
 
 
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at
    The system joins a staging record with the entity (via the entity key) and checks if it returns something. Then the entity may have code that changes the action (which likely isn't your case).
     
    Here a few ideas:
    • Verify that your new staging table has a (correct) relation to your new entity.
    • Verify that you're importing to the right company.
    • Check that the staging record has the correct value in ServiceOrderNumber. Watch out of special characters too.
    • Make sure that target mapping is correct.
    • You can debug DMF to understand why it thinks that the record doesn't exist.
  • b_radlyjames Profile Picture
    3,155 on at
    Martin,
     
    Thank you!  The 'correct' relation to the entity was the issue. I copied my entity and staging table from an existing entity and forgot to change that relation on the staging table.
    Once I fixed that, it worked perfectly.
     
    Brad

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans