Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Error 0x80040265 cannot write data to this table, only the integration users may write data to this table on new instance(create company).

(1) ShareShare
ReportReport
Posted on by 5

Hi, I'm a new user on MIcrsoft Dynamics 365 customer engagement.

When trying to insert a new company in my crm through the FieldService module (Inventory) I came across this error:
Exception Message: OrganizationServiceFault Microsoft.Xrm.Sdk.InvalidPluginExecutionException: "The user 8b91d8ee-4eaf-ea11-a812-000d3ac17cd2 cannot write data to this table, only the integration users may write data to this table."
at Microsoft.Dynamics.FOCommon.Plugins.Services.ReadonlyEntityService.PreModify(LocalPluginContext localcontext)
at Microsoft.Dynamics.FOCommon.Plugins.PluginBase.Execute(IServiceProvider serviceProvider)

ErrorCode: -2147220891
HexErrorCode: 0x80040265

ErrorDetails:
OperationStatus: 0
SubErrorCode: -2146233088
Plugin:
ExceptionFromPluginExecute: Microsoft.Dynamics.FOCommon.Plugins.ReadonlyEntityPreModify
ExceptionRetriable: False
ExceptionSource: PluginExecution
OriginalException: PluginExecution
PluginTrace:

HelpLink: go.microsoft.com/.../

TraceText:
[Microsoft.Dynamics.FOCommon.Plugins: Microsoft.Dynamics.FOCommon.Plugins.ReadonlyEntityPreModify]
[5efce7af-a35b-e911-a955-000d3a1d5d5a: Microsoft.Dynamics.FOCommon.Plugins.ReadonlyEntityPreModify: Create of cdm_company]

Id da Atividade: 73bc712f-4ae0-4120-86e1-1528c2f2881f
  • JCo Profile Picture
    305 on at
    RE: Error 0x80040265 cannot write data to this table, only the integration users may write data to this table on new instance(create company).

    As was shared, a company can only be created from within F&O.

    The company concept is incredibly important for F&O functionality with many implications across F&O. A new company record can ONLY be created in F&O today. Even if you could get around the validations by disabling dual-write, you would not be able to use the company record in F&O and would only be creating issues for your implementation.

  • Tiago Lino Profile Picture
    5 on at
    RE: Error 0x80040265 cannot write data to this table, only the integration users may write data to this table on new instance(create company).

    I'm trying to create a deposit but it has a mandatory field as a company, during the inclusion process it makes it necessary to include it will I be doing something wrong?

    because in a trial license it was working but in this instance it generates this error.

  • Suggested answer
    Lucky Dog Profile Picture
    666 on at
    RE: Error 0x80040265 cannot write data to this table, only the integration users may write data to this table on new instance(create company).

    As far as I know there isn't. Legal Entities are absolute key in FO and you just can't and shouldn't create them within CE.

  • Tiago Lino Profile Picture
    5 on at
    RE: Error 0x80040265 cannot write data to this table, only the integration users may write data to this table on new instance(create company).

    Thank you very much for your help but I believe that my license does not have access to Finance and Operations is there any other way to do this process?

  • Verified answer
    Lucky Dog Profile Picture
    666 on at
    RE: Error 0x80040265 cannot write data to this table, only the integration users may write data to this table on new instance(create company).

    I assume you are talking about the company table in dataverse which contains the legal entities from FO in an integrated environment using Dual write? This needs to be done from FO.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,424 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,043 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans