Form Recognizer: Generic error during training when using Java SDK

MMVDC 6 Reputation points
2022-07-27T07:16:55.497+00:00

Hi all, I'm having trouble getting the Java SDK for form recognizer to properly trigger training, I keep getting the following error:

com.azure.ai.formrecognizer.models.FormRecognizerException: Invalid model created with model Id [modelId], errorCode: [3014], message: Generic error during training.

However, when using the Form Recognizer studio, my models starts and succeeds training without any issues.
The code I'm using looks like this:

            SyncPoller<FormRecognizerOperationResult, CustomFormModel> trainingPoller = formTrainingClient.beginTraining(sas, useTrainingLabels, new TrainingOptions().setModelName(modelName), Context.NONE);  
  
            CustomFormModel customFormModel = trainingPoller.getFinalResult();  

The only thing I can imagine possibly being a problem is the fact that my training files are located within a folder in the container I'm storing them in, but as far as I can tell even that shouldn't make a difference in my case, since I don't have any other files (apart from fields.json file) in the container at the moment.

Community Center Not monitored
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.