Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archive)
Answered

Internal server error when creating a record in dynamics

(0) ShareShare
ReportReport
Posted on by 193

Hello,

I'm getting an internal error when creating a record.

I have inabled tracing and this is what error looks like:

[2023-05-10 18:52:26.851] Process: w3wp |Organization:40cc62a5-4aec-ea11-bbfe-000d3a790da0 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 2c699ac6-edeb-4c1a-8c2b-23f278bd84da |ActivityId: 2c699ac6-edeb-4c1a-8c2b-23f278bd84da | TraceUtilities.Trace ilOffset = 0x22
>{"Error":{"InnerError":null,"Message":"FaultException`1: The remote server returned an error: (500) Internal Server Error.","StackTrace":" at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.CreateInternal(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.CreateOrganizationResponse(Entity entity)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.CreateEdmEntity(CrmODataExecutionContext context, String edmEntityName, EdmEntityObject entityObject, Boolean isUpsert)\r\n at Microsoft.Crm.Extensibility.OData.EntityController.PostEntitySetImplementation(String\u0026 entitySetName, EdmEntityObject entityObject)\r\n at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func)\r\n at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.\u003c\u003ec__DisplayClass10.\u003cGetExecutor\u003eb__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.\u003cInvokeActionAsyncCore\u003ed__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.\u003cExecuteAsync\u003ed__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.\u003cSendAsync\u003ed__1.MoveNext()"}}

I can't figure out what's the issue, have you had such experience before ? and how did you deal with it ?

Categories:
  • Verified answer
    magical Khachapuri Profile Picture
    193 on at
    Internal server error when creating a record in dynamics
    I found the issue, as mentioned in the last comment there was an api call happening from the plugin and it was failing, resulting whole process to fail.
  • magical Khachapuri Profile Picture
    193 on at
    RE: Internal server error when creating a record in dynamics

    Yes Guido Preite , you are right, the specific lookup is causing this issue, but I'm not aware what should I look out for further investigation.

  • Verified answer
    ankit_singhal Profile Picture
    560 on at
    RE: Internal server error when creating a record in dynamics

    try to disable all your custom code and create new record. if it is working then check your code and if that is not working then raise issue with MS

  • Verified answer
    Guido Preite Profile Picture
    54,057 Moderator on at
    RE: Internal server error when creating a record in dynamics

    so maybe you get the error only when you try to set a specific field? if you identify the field (and the type of it) maybe you can find the reason of the error, because the message doesn't give any info

  • magical Khachapuri Profile Picture
    193 on at
    RE: Internal server error when creating a record in dynamics

    Yes, and it works. The record I'm trying to create is for custom entity, but when I try to create an account record, I succeed.

  • Guido Preite Profile Picture
    54,057 Moderator on at
    RE: Internal server error when creating a record in dynamics

    looks like an internal error (for example no custom plugins). You can create records in other tables? did you try to create the record with only the primary field?

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

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard > Microsoft Dynamics CRM (Archive)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans