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

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Error inserting data in entity by code

(0) ShareShare
ReportReport
Posted on by 190

Hello everybody, 

I am facing an issue during inserting data by code in a custom entity. 

When I try to insert data by using entity.insert(), everything goes ok. Meanwhile, when I try to optimize and use recordinsertlist class, it gives me the following error:

Cannot create a record in Import MyEntity(MyEntity).
Microsoft Dynamics 365 for Finance and Operations views are read-only.

Can anyone help, please?

Thanks in advance!

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,601 Most Valuable Professional on at

    I would be surprised if such a thing was supported, and the error seems to confirm that it isn't.

  • Elda Mataj Profile Picture
    190 on at

    Thank you for your reply.

    I am using RecordInsertList only for a better performance. It already works with a simple insert.  

    Also with another custom entity, the recordInsertList works correctly.

  • Martin Dráb Profile Picture
    238,601 Most Valuable Professional on at

    Isn't the difference between those entities in "Enable Set Based SQL Operations" property?

  • Elda Mataj Profile Picture
    190 on at

    Both entities have the property "Enable Set Based SQL Operations" set to Yes.

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 662 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 280 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 201 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans