Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Error being thrown On Save of Account

  • 1.  Error being thrown On Save of Account

    Posted 21 days ago
    Working with my friend and colleague (a developer) to integrate Dynamics 365 Online with HubSpot. Developer has been adding/modifying quite a bit of code in our plug-ins in our Staging environment... and the other day we started getting this error when trying to SAVE an Account:

    'Account' entity doesn't contain attribute with Name = 'fdi_practicetype' and NameMapping = 'Platform'. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=225629740, MinActiveRowVersion=225629740, MetadataInstanceId=21957010

    Try as I might, I can't find any instance of the field "fdi_practicetype" and he's been reviewing his code as well. No instance of this field found. Any suggestions on what we might troubleshoot next?

    Here's the Details:
    Error code: 0x80040265Session Id: 3fbeceb0-206d-4aef-bb4f-fc2724956335Activity Id: e98d9588-966c-4236-a258-57ec06a4b7efTime: Tue Jul 14 2020 10:50:41 GMT-0700 (Pacific Daylight Time)

    And here's the Log File:
    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: b4e709ed-e72a-45b6-a024-168581cecd42

    Thanks in advance for your suggestions.

    #Admin


    ------------------------------
    Todd Merrill
    Futuredontics
    Los Angeles CA
    ------------------------------
    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


  • 2.  RE: Error being thrown On Save of Account

    Posted 20 days ago
    Hi

    Seems like the field fdi_practicetype is being used in your plugin, but does not exist. You need to check the code for this.

    The error is saying that it does not exist in Dynamics.



    ------------------------------
    Muhammad Ali Sakhi
    GAC Group
    ------------------------------

    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


  • 3.  RE: Error being thrown On Save of Account

    MICROSOFT MVP
    Posted 20 days ago
    What @Muhammad Ali Sakhi said.  I'll add if you don't know what plugin is causing the error, start disabling them until you find the offending plugin.​

    ------------------------------
    Daryl LaBar
    President, MVP
    Gap Integrity
    Fishers IN
    ------------------------------

    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


If you've found this thread useful, dive deeper into User Group community content by role