DU Classification Giving Error: Request PredictionId: n1j5ugc5FwFFX5wEIlIQ1gbBBfx6CytDaj8m1YSmcNI=_b35efed6-67a4-42a3-8a54-ac04a0da72d4 Object reference not set to an instance of an object

Hello,

Periodically I get the error when trying to use Document Understanding Classification:

Request CorrelationId: 296e1644-e0f4-48be-b706-c3ac295fc818
Request PredictionId: QijhRGwoKXCj7bjB5S2a0Q5nB5Olzex9JBaHxzHxoxM=_e2b70ba5-4303-4e46-9de7-cd3a23de82b4
Object reference not set to an instance of an object.

System.SystemException: Request CorrelationId: 296e1644-e0f4-48be-b706-c3ac295fc818
Request PredictionId: QijhRGwoKXCj7bjB5S2a0Q5nB5Olzex9JBaHxzHxoxM=_e2b70ba5-4303-4e46-9de7-cd3a23de82b4
Object reference not set to an instance of an object. at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Sometimes its periodically random:
image

Other times not so much:

Most of the failed jobs are of pages 2 and less, so the file isn’t to big.

Note: This is happening at the Classify Document Scope.

Your Classification result could be blank yet time so that could be a reason for your object ref error…

If you need any more information on the same please feel free to share the code file or screenshots of your code around classification activity.

Took me a while to figure out, but it seems like the Intelligent Keyword JSON file was broken.

This has popped up a few times, after retraining based on an action center completed task, the process will update the file. 95/100 times this works, but 5/100 times it messes up, by not placing a [ , or other symbols, which breaks it for future runs.

My way around, when it errors out at this activity, go to the json files previous version and roll it back one. Try again, and it works.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.