Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Cannot write to Account table on Dynamics365

Posted on by 40

Hi,

We are having trouble with creating/modifying records on our accounts table, which is causing a massive problem for our business.

This is the error we get when attempting to save a record:

Exception Message: The user with SystemUserId=xxxxxxxx in OrganizationContext=xxxxxxx is disabled

ErrorCode: -2147220955
HexErrorCode: 0x80040225

ErrorDetails:
ApiExceptionSourceKey: Step/Microsoft.Crm.Extensibility.ImageRetrievalStep
ApiStepKey: xxxxxxx
ApiDepthKey: 1
ApiActivityIdKey: xxxxxxx
ApiPluginSolutionNameKey: System
ApiStepSolutionNameKey: System
ApiExceptionCategory: ClientError
ApiExceptionMessageName: unManagedidsusernotenabled
ApiExceptionHttpStatusCode: 400

HelpLink: http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040225&client=platform

There are a few background bits of information:

  • We can confirm this is error is related to one of our user accounts. The particular user in the Exception message has left the company and their credentials have been deleted. We cannot reassign any licences to an account that no longer exists. We have no idea where this particular account is linked to any particular issue.
  • This problem is only effecting only 2 of our environements, not all environments suffer with this issue
  • This issue extends to using the API, as well as frontend too, the same error is produced.
  • we have checked Solutions.etc but cannot find anything glaringly obvious, we're not exactly sure where the issue could be.
  • This is only affecting the accounts entity. Opportunities.etc are still functioning correctly.

Any help would be fantastic. We're not exactly sure where to start looking, as I have said, we have checked many obvious places but everything seems to be in place, and nothing seems to be directly linked to the deleted account. Not really sure how to approach this issue. 

Categories:
  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,958 Super User on at
    RE: Cannot write to Account table on Dynamics365

    Hi,

    Workflow which is running in background will not cause any issue and not block user to save/modify the record.

    However workflow which are Real Time workflow and Execute as select to Run under the context of Workfow owner will have an issue. Please see below highlighted image.

    6153.CR64.PNG

    So please check the count of real time workflow which has set as The owner of the worklow and try to resolve those workflow by assigning to another user with same security role as old user.

    You can get the Disabled user role from audit history.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • RayFoster Profile Picture
    RayFoster 40 on at
    RE: Cannot write to Account table on Dynamics365

    Hi,

    Thanks for the response. Yes the owner of all the processes are the old user who has been deleted. However between environments they all appear to be identical - but this issue only effects two of them.

    We are not sure if it will cause more issues transferring ownership to someone else

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,958 Super User on at
    RE: Cannot write to Account table on Dynamics365

    Hi,

    Please verify the owner of the workflow,BPF and Custom action in your instance to see if it is still assigned to the mentioned user.

    8484.CR63.PNG

    Also, please verify plugin steps - calling user using plugin registration tool.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans