cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ichbinbunny
Microsoft
Microsoft

'Start_and_wait_for_an_interim_approval' failed (precondition failed)

My approval flow failed after running successfully over 4 months. received and sent emails changed to XrmApiRequestFailed

 

PreconditionFailed 

The request failed. Error code: 'XrmApiRequestFailed'. Error Message: 'Request to XRM API failed with error: 'Message: A record with matching key values already exists. Code: 0x80040237 InnerError: Type: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] Message: Cannot insert duplicate key. StackTrace: at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.CreateInternal(Entity entity, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters) at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.CreateOrganizationResponse(Entity entity) at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.CreateEdmEntity(CrmODataExecutionContext context, String edmEntityName, EdmEntityObject entityObject, Boolean isUpsert) at Microsoft.Crm.Extensibility.OData.EntityController.PostEntitySetImplementation(String& entitySetName, EdmEntityObject entityObject) 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() InternalException: '.'.


Condition
0s

 

8 REPLIES 8
v-litu-msft
Community Support
Community Support

Hi @ichbinbunny,

 

Have your issue solved by itself?

 

If not, could you please share your Flow configuration?

 

You can have a try to confirm the Flow whether it could run successfully.

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

No, it failed

 

I have three flows and only the two approval flows not working

 

1, the approval received box not showing list anymore (screenshot attached)

2, flow still create item in SharePoint list but when the pre-condition is running, it does not trigger emailsflow conf.PNG

 

 

received box.PNG

You are not alone on this issue. It is widespread within the Microsoft tenant, we have a mitigation in the process of deploying right now

 

Hi @ichbinbunny / @nickdurak ,

 

Please check the information posted by MS Flow Support, this issue has been fixed:

https://preview.flow.microsoft.com/en-us/support/

Please try again and feel free let us know if the issue still exists.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I just came across the exact same issue.

Playing around with creating an approval flow...

Worked fine until about 5 minutes ago.

Getting this error since - although I have not changed any part of the approval steps in my flow.

 

Does this issue still persist, despite that linked article saying it was fixed ??

I just got the same error message, although the flow with multiple levels of approval worked just fine for several weeks. Any advice?

pradeeprajatech
New Member

Facing the exact same issue. Do we have a solution ? Tried recreating approval step and recreating the entire flow. Also deleted all Approvals from CDS. 

This is caused by flow server issue. Just wait and keep trying. They will fix it. But they will not tell you when the issue starts and when it ends.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,362)