cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MattP13
Resolver I
Resolver I

Predict action on AI Object Detect model - Error Message

I've built an AI object detection model which I've tested in PowerApps studio and the results of the tests are successful.

But when I create a trigger flow within a solution in power automate I am getting an error message and I cant figure out what the issue is. 

FYI: I am importing with a jpeg image

See below images and Error details:

 

Capture.PNG

 

Capture2.PNG

 

Capture3.PNG

 

Capture4.PNG

 

Capture5.PNG

 

 

TRIGGER OUTPUT:

{"headers":{"Connection":"Keep-Alive","Accept":"application/json,text/plain,*/*","Accept-Encoding":"br,gzip,deflate","Accept-Language":"en-us","Expect":"100-continue","Host":"prod-45.westus.logic.azure.com","Referer":"https://us.flow.microsoft.com/manage/environments/ec5604bb-fbfc-43c4-b462-63e0758b81ab/solutions/90f667ac-e9d5-ea11-a813-000d3a33176b/flows/d37c02f9-c534-4548-a331-c57b343df3c2?backUrl=%2Fsolutions%2F90f667ac-e9d5-ea11-a813-000d3a33176b%2Fflows%2Fd37c02f9-c534-4548-a331-c57b343df3c2%2Fdetails","User-Agent":"Mozilla/5.0,(Windows NT 10.0; Win64; x64),AppleWebKit/537.36,(KHTML, like Gecko),Chrome/84.0.4147.105,Safari/537.36","x-ms-client-session-id":"d8e4adac97c747dfb55a926fa08d464e","x-ms-client-request-id":"ebacf09a-6b42-4261-8cf2-5a9d-2a424be9","x-ms-client-keywords":"testFlow","origin":"https://us.flow.microsoft.com","sec-fetch-site":"cross-site","sec-fetch-mode":"cors","sec-fetch-dest":"empty","X-MS-APIM-Referrer":"https://unitedstates-002.azure-apim.net/apim/logicflows/E480FB536E3D63DC44C466D915DBA4ED-82481C56262F2C08/triggers/manual/run?api-version=2016-11-01","x-ms-gateway-object-id":"","X-MS-APIM-Tokens":"*sanitized*","X-MS-APIM-Referrer-Prefix":"https://unitedstates-002.azure-apim.net/apim/logicflows/E480FB536E3D63DC44C466D915DBA4ED-82481C56262F2C08","X-MS-APIM-Callback":"https://unitedstates-002.consent.azure-apim.net","x-ms-user-id":"b7bc3b12-801c-40f3-95a9-28cdc22045da","x-ms-user-name":"Matt Picca","x-ms-user-name-encoded":"TWF0dCBQaWNjYQ==","x-ms-user-email":"mpicca@primeco.com","x-ms-user-email-encoded":"bXBpY2NhQHByaW1lY28uY29t","x-ms-user-timestamp":"2020-08-04T18:34:59.5974244Z","X-Forwarded-For":"98.191.252.254","Content-Length":"2704999","Content-Type":"application/json; charset=UTF-8"},"body":{"file":{"contentBytes":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEB...

 

 

ERROR DETAILS:

 Predict Body Output:

{
  "error": {
    "code""0x80040265",
    "message""{\"operationStatus\":\"Error\",\"error\":{\"type\":\"Error\",\"code\":\"InvalidPredictionInput\",\"message\":\"Inference input for model 0c5f7d7b-3d41-4833-90e6-d08baaf6ea64~1b462f72-9130-4c5e-ad7c-c240af91a39a is invalid\",\"properties\":{\"BackendErrorCode\":\"InvalidInferenceInput\",\"DependencyHttpStatusCode\":\"400\"},\"innerErrors\":[{\"scope\":\"Record\",\"target\":\"single\",\"code\":\"UnsupportedFileType\",\"type\":\"Error\",\"properties\":{\"SupportedFileTypes\":\"jpg,png,bmp\",\"MlIssueCode\":\"UnsupportedFileType\",\"MlIssueTarget\":\"single\"}}]}}",
    "innererror": {
      "message""{\"operationStatus\":\"Error\",\"error\":{\"type\":\"Error\",\"code\":\"InvalidPredictionInput\",\"message\":\"Inference input for model 0c5f7d7b-3d41-4833-90e6-d08baaf6ea64~1b462f72-9130-4c5e-ad7c-c240af91a39a is invalid\",\"properties\":{\"BackendErrorCode\":\"InvalidInferenceInput\",\"DependencyHttpStatusCode\":\"400\"},\"innerErrors\":[{\"scope\":\"Record\",\"target\":\"single\",\"code\":\"UnsupportedFileType\",\"type\":\"Error\",\"properties\":{\"SupportedFileTypes\":\"jpg,png,bmp\",\"MlIssueCode\":\"UnsupportedFileType\",\"MlIssueTarget\":\"single\"}}]}}",
      "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__DisplayClass10_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()"
    }
  }
}
 
{"operationStatus":"Error","error":{"type":"Error","code":"InvalidPredictionInput","message":"Inference input for model 0c5f7d7b-3d41-4833-90e6-d08baaf6ea64~1b462f72-9130-4c5e-ad7c-c240af91a39a is invalid","properties":{"BackendErrorCode":"InvalidInferenceInput","DependencyHttpStatusCode":"400"},"innerErrors":[{"scope":"Record","target":"single","code":"UnsupportedFileType","type":"Error","properties":{"SupportedFileTypes":"jpg,png,bmp","MlIssueCode":"UnsupportedFileType","MlIssueTarget":"single"}}]}}

 

 

1 REPLY 1
MattP13
Resolver I
Resolver I

Bump

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (2,922)