I had the same problem. I had to update the nuget package from 3.1.0-beta.1 to 3.1.0-beta.4 and then it worked.
Hope this helps someone!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello All,
I have trained multiple custom models and using those custom model into the following piece of code.
Response<RecognizedFormCollection> forms = await client.StartRecognizeCustomFormsFromUri(modelId, invoiceUri).WaitForCompletionAsync();
the very first custom model I trained is still working fine. rest of the are not working. Here's the error I am getting.
An unhandled exception occurred while processing the request.
RequestFailedException: Generic error during prediction.
Status: 200 (OK)
ErrorCode: 3014
Additional Information:
error-0: 3014: Generic error during prediction.
Content:
Headers:
ms-azure-ai-errorcode: REDACTED
x-envoy-upstream-service-time: 27
apim-request-id: 476f6fbf-b833-413a-8b04-84c7959d1334
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
Date: Wed, 17 Mar 2021 02:05:37 GMT
Content-Length: 213
Content-Type: application/json; charset=utf-8
Azure.RequestFailedException: Generic error during prediction.
Status: 200 (OK)
ErrorCode: 3014
Additional Information:
error-0: 3014: Generic error during prediction.
Content:
Headers:
ms-azure-ai-errorcode: REDACTED
x-envoy-upstream-service-time: 27
apim-request-id: 476f6fbf-b833-413a-8b04-84c7959d1334
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
Date: Wed, 17 Mar 2021 02:05:37 GMT
Content-Length: 213
Content-Type: application/json; charset=utf-8
at Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation.UpdateStatusAsync(Boolean async, CancellationToken cancellationToken)
at Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation.UpdateStatusAsync(CancellationToken cancellationToken)
at Azure.Core.OperationHelpers.DefaultWaitForCompletionAsyncTResult
at Azure.AI.FormRecognizer.OperationExtensions.WaitForCompletionAsync(Task1 operation, CancellationToken cancellationToken) at OCR.Controllers.FormRecognizerController.Index(FormModel frmFile) in C:\Users\nmuidil\source\repos\OCR\OCR\Controllers\FormRecognizerController.cs:line 115 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask
1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
I had the same problem. I had to update the nuget package from 3.1.0-beta.1 to 3.1.0-beta.4 and then it worked.
Hope this helps someone!
@narendra muidili Thanks for the question. Model Compose in Form Recognizer that will address this. Custom model – Extract key value pairs trained on your own documents.
Support for Model Compose more are now available in Form Recognizer 2.1 Public Preview Release. Please follow the Model Compose that allows multiple models to be composed and called with a single model ID. When a document is submitted to be analyzed with a composed model ID, a classification step is first performed to route it to the correct custom model.