[Design] [FormRecognizer] Handle operation failed status consistently across Recognize and Train LROs #11473
Labels
blocking-release
Blocks release
Client
This issue points to a problem in the data-plane of the library.
Cognitive - Form Recognizer
Cognitive Services
Milestone
Summary
When a training operation fails, no exception is thrown. The developer needs to manually check their model status and errors to assert it has succeeded before actually making use of the model.
Getting no exceptions could be misinterpreted as a sign that the training operation has succeeded.
However, throwing an exception in case of failure could be risky as well. It could give the developer the impression that the whole operation has failed and that no model has been created. They should be able to immediately retrieve the model id and delete it if desired. The current implementation allows that.
Goals
The text was updated successfully, but these errors were encountered: