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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

String was not recognised as a valid Boolean

(0) ShareShare
ReportReport
Posted on by 221

One of my users has come across an issue whereby the error "String was not recognised as a valid Boolean" pops up when she tries to move an Opportunity through the BPF. I've tried investigating it myself but I can't seem to find the cause of the issue. I'm not even sure what can cause this sort of error - is it something inherently in the BPF, or could it be any one of the fields? Any help would be greatly appreciated.

This is the error detail:

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: ba80136a-3121-4a40-bc6b-3647c10a8e55

I have the same question (1)
  • Verified answer
    Daniel Neudert Profile Picture
    on at

    Hello Charlotte,

    Thanks for using the Microsoft Dynamics CRM community Forums.

    As you mentioned, this BPF is at the Opportunity entity, and regarding the stack trace, it looks like it's referring to an issue, during updating/saving/changing the record.

    Also the error message, related to a "Boolean", it could be related to an issue during some validation of OptionsSets (like simple yes/no optionset fields)

    Are you triggering at your BPF any custom on-demand processes, which are trying to update the record, before all mandatory fields are filled (like option sets)?

    Further, please check, if you have custom workflows, which gets triggered during the update or any change of the Opportunity. Do you have custom workflows for the Opportunity entity, which are getting triggered by any change of Optionset-fields?

    Or do you have also custom Plugins, which getting triggered during updating the Opportunity entity?

    If so, you can only check step by step to deactivate the processes/plugins, to find the causing process.

    From there, you need to check for valid conditions inside this.

    I hope this helps, to identify the causing component :-)

    Just let me know and reply, if you found some similar processes and you identified the one and provide the causing condition (screenshot?), i you need further help with this.

    Thank you very much and have a nice day.

    Best regard

    Daniel

  • Verified answer
    David Jennaway Profile Picture
    14,065 on at

    To add to the previous post, it's worth checking the Plug-in trace log (make sure the System Settings are set to log errors - it's under the Customization tab of the System Settings). If there's an error there, then this indicates it's a server-side error (e.g. from a plugin or workflow), whereas if nothing is logged, then it's more likely a client-side error (e.g. some java script)

  • thecharwest Profile Picture
    221 on at

    I ended up logging a ticket with Microsoft and it turned out one of my workflows had got corrupted somehow, so they fixed it for me. Thanks for the advice though, it will help with this sort of error in future!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans