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

Copied Data entity: Results. Error(s) occurred while writing entity record.

(0) ShareShare
ReportReport
Posted on by 6,478

Hello,

I have copied a standard "Read-Only" data entity to make it possible to use it for Import also.

New staging table is also generated.

To test I have first exported the data (only importable fields) in excel and have changed several values.

The Key on entity is PurchForecast.RecId field.

After I import the file I'm getting error "Results. Error(s) occurred while writing entity record."

How can I track what a real error is?

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

    If you can't find anything more in the logs, perhaps the easiest way is to insert entity data in code (runnable class). Now you should get some better error messages.

  • Johnny Profile Picture
    6,478 on at

    The entity has a Recid from main datasource in fields "PurchForecast.RecId".

    So, the Key on staging table is "PurchForecast.RecId", "DefinitionGroup", "ExecutionId".

    As in file I only have "Importable fields", there is no PurchForecast.RecId in my excel.

    If I import the file with only 1 record, it is ok.

    If I have 2 or more records, then I get the error message about duplicate records.

    What would be the solution in this case?

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    That's why the original entity is read only - there's no natural key that could be used in import.

    Your import data must include key field(s) which the system uses to identify unique records and determine whether a new record should be created or existing record updated.

    Could you tell us a bit more about your business requirement? Where is this data coming from?

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
Martin Dráb Profile Picture

Martin Dráb 663 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 348 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans