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!
Both entities have the property "Enable Set Based SQL Operations" set to Yes.
Isn't the difference between those entities in "Enable Set Based SQL Operations" property?
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.
I would be surprised if such a thing was supported, and the error seems to confirm that it isn't.
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156