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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

formContext.data.entity.save() - Error

(0) ShareShare
ReportReport
Posted on by

Hi,

After creating record in marketing email and in a ribbon button click (custom button), i do assign some values to the fields and save the form using formContext.data.entity.save().

While saving i got the error message below..

pastedimage1589121546903v1.png

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Click "Show Details" and provide full log is something is not clear.

  • Anandhcrm Profile Picture
    on at

    Error details...

    at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Update(Entity entity, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Boolean checkForOptimisticConcurrency, Dictionary`2 optionalParameters)
    at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Update(Entity entity, UpdateOption updateOption)
    at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.UpdateEdmEntity(CrmODataExecutionContext context, String edmEntityName, String entityKeyValue, EdmEntityObject entityObject)
    at Microsoft.Crm.Extensibility.OData.EntityController.PatchEntityImplementation(String& entityName, String key, EdmEntityObject entityDelta)
    at Microsoft.Crm.Extensibility.OData.CrmODataUtilities.<>c__DisplayClass10_0`2.<InvokeActionAndLogMetric>b__0()
    at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
    at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
    at lambda_method(Closure , Object , Object[] )
    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
    Activity Id: f56a9785-17e7-44d4-bddf-8b47b3bc266b

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    This doesn't help :)

    Can you please copy whatever is provided in the dialog and starts from ["PrincipalHasOwner...?

  • Anandhcrm Profile Picture
    on at

    {"CallerPrincipal":{"PrincipalId":"31a9ed11-302d-ea11-a812-000d3aa39843","Type":8,"IsOrganizationPrincipal":false,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"af777419-94dc-40b6-b831-673f1cb69bca","Type":8,"IsOrganizationPrincipal":false,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"332b1600-b232-ea11-a813-000d3aa08b45","ObjectTypeCode":2020,"ObjectBusinessUnitId":"04bd334a-5403-ea11-a811-000d3aa39347","OrganizationId":"c6ba9af9-d501-4968-a50d-01e4d82006dc","EntityName":"queue","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"fa14449f-b8d3-4ded-ae4e-3d2738d2a634","ObjectTypeCode":2020,"Name":"prvCreateQueue","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"b140e729-dfeb-4ba1-a33f-39ff830bac90","ObjectTypeCode":2020,"Name":"prvReadQueue","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"28c10364-c205-48fa-a956-fbcec1a23053","ObjectTypeCode":2020,"Name":"prvWriteQueue","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"150b7e82-179f-4f88-af25-d305eea01d8e","ObjectTypeCode":2020,"Name":"prvDeleteQueue","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"9fbc6f47-0777-4fd8-87c6-15b627aa286a","ObjectTypeCode":2020,"Name":"prvAssignQueue","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"cf4c8571-e022-46a7-bd67-b19198bda9dc","ObjectTypeCode":2020,"Name":"prvShareQueue","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"7d827946-147e-4292-a385-ccb34dc96525","ObjectTypeCode":2020,"Name":"prvAppendQueue","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"041fdb4c-bbb8-4792-90db-51c19d067ca2","ObjectTypeCode":2020,"Name":"prvAppendToQueue","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"AppendToAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=2, privilegeCount=3964, accessMode=0; Principal Data: roleCount=11, privilegeCount=1850, accessMode=0"],"ReadOnlyState":"UserAndOrgFullAccess","IsHsmEnabled":false,"IsOwnerDire ctReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans