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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Operation ID is invali...
Power Apps
Unanswered

Operation ID is invalid, expired or the results matching this operationId have been deleted. Error message

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Calling a model built in AI Builder in flow results in this error "Operation ID is invalid, expired or the results matching this operationId have been deleted." .

 

Does anyone know how to resolve it ?

 

Full Error as below

 

{
"error": {
"code": "0x80040265",
"message": "{\"operationStatus\":\"Error\",\"error\":{\"type\":\"Error\",\"code\":\"DependencyFailure\",\"message\":\"Operation ID is invalid, expired or the results matching this operationId have been deleted.\",\"properties\":{\"BackendErrorCode\":\"InternalServerError\",\"DependencyHttpStatusCode\":\"500\"}}}",
"innererror": {
"message": "{\"operationStatus\":\"Error\",\"error\":{\"type\":\"Error\",\"code\":\"DependencyFailure\",\"message\":\"Operation ID is invalid, expired or the results matching this operationId have been deleted.\",\"properties\":{\"BackendErrorCode\":\"InternalServerError\",\"DependencyHttpStatusCode\":\"500\"}}}",
"type": "System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]",
"stacktrace": " at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Execute(OrganizationRequest request, ExecutionContext executionContext)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.ExecuteOperation(CrmODataExecutionContext context, EdmOperation edmOperation, Dictionary`2 parameters, Dictionary`2 boundParameters)\r\n at Microsoft.Crm.Extensibility.OData.ActionController.ProcessOperationRequest(String operationName, Dictionary`2 operationParameters, EntityReference entityReference, String boundEntityName, String boundEntityType)\r\n at Microsoft.Crm.Extensibility.OData.ActionController.<>c__DisplayClass11_0.<PostBoundAction>b__0()\r\n at Microsoft.Crm.Extensibility.OData.CrmODataUtilities.<>c__DisplayClass11_0`2.<InvokeActionAndLogMetric>b__0()\r\n at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\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.<>c__DisplayClass10.<GetExecutor>b__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.<InvokeActionAsyncCore>d__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.<ExecuteAsync>d__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.<SendAsync>d__1.MoveNext()"
}
}
}

Categories:
  • CedrickB Profile Picture
    Microsoft Employee on at

    Hi Virang,

     

    First are you able to quick test properly your model from Power Apps portal (make.powerapps.com) open the model in AI Builder\Build menu and clicking on "Quick test"

    Then, what kind of model are you using?

    Can you share a screenshot of your flow please?

    Thanks,

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Could you please share a bit more about the error message in your flow?

    Could you please show more details about the flow's configuration?

    Further, have you tested the AI Model successfully in your Power Automate flow?

     

    Firstly, please make sure you have trained the AI Model properly in your Power Automate. Please also make sure you have meet the Prerequisites for using AI Builder:

    https://docs.microsoft.com/en-us/ai-builder/build-model#prerequisites

     

    More details about using AI Model in Power Automate flow, please check the following article:

    https://docs.microsoft.com/en-us/ai-builder/use-in-flow-overview

     

    Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I was able to resolve it using differrent action. I have created a model for Forms to extrtact data from pdf files and was using Predict action in flow that is why it was failing. I had to change it to use "Process and save information from form" action.

     

    Microsoft should provide a better documentation of all actions. It is trial and error at the moment.

  • CedrickB Profile Picture
    Microsoft Employee on at

    Hi Virang,

    Can you share which action you were using previously so we can clarify this in the documentation please.

    Thanks,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    virang_0-1598827070661.png

     

    The one marked with red cross failes with that error message. It was not clear from the error message that I should have used "Process and save information from forms"

     

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Have you tired the "Predict" action under the Common Data Service connector instead of the AI Builder connector?

     

    Please consider take a try to remove the "Predict" action from your flow, and then add the  "Predict" action under the Common Data Service connector as below:

    1.JPG

    Please try above solution, then check if the issue is solved.

     

    Regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard