Skip to main content

Notifications

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,085
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.
 
 
  • b_radlyjames Profile Picture
    b_radlyjames 3,085 on at
    How does DMF entity decide to create a new record or update an existing one?
    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
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,868 Most Valuable Professional on at
    How does DMF entity decide to create a new record or update an existing one?
    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans