Hi Kushagra Gupta,
Welcome to Microsoft Q&A Community!
Thank you for reaching out. Let's address your issue step-by-step.
From your error log:
Execution failed. User process exited with status code 42.
File "driver/amIbi_main.py", line 226, in main
sys.exit(exitcode_candidate)
SystemExit: 42
This suggests a user-level failure during model training or deployment in Azure Machine Learning, often due to:
Malformed or incomplete data labels
Missing expected fields in your training documents
Runtime errors in the custom script or configuration
Can you please confirm if the below steps were already performed to Improve Your Custom Extraction Model so that we can check on the different methods.
- Review and Refine Labeling Strategy
Ensure all labeled fields exist across samples. If a field is missing on some pages, it may confuse the model.
Use consistent bounding boxes – irregular labeling introduces noise.
Label multiple document instances if the same field appears more than once (e.g., header/footer).
Reference: Labeling best practices
- OCR Layer Not Available in Downloaded JSON?
If you're exporting from Labeling Tool, it may not include OCR content by default.
To get the OCR + labeled content, use the Analyze API on your labeled/test document through your trained model and set includeTextDetails=true in your request.
More info: Build custom model
- Auto-labeling Fallback
If auto-labeling is off or failing, review logs or try resetting the label layout and re-assigning entities manually.
- Limited Data? Use Prebuilt + Compose Model
Combine your Custom Extraction model with a Prebuilt Layout or Read model using Compose Model to extract structure reliably with few samples.
Reference: Choosing model types
- AzureML Error: SystemExit 42
From the error:
AzureMLCompute job failed
Please review the full log in:
user_logs/std_log_0.txt
Look for:
Import errors
File path mismatches
Environment dependency issues
Make sure:
- Your compute instance has necessary permissions and access to training files.
- The training dataset is correctly mounted or uploaded.
- When labeling or troubleshooting in the Document Intelligence Studio:
- Prefer the latest stable API version (v4.0 or v3.1).
- If the UI seems buggy, try re-uploading clean files and creating a new project.
Let us know if you need further help!
Best regards,
Chakravarthi Rangarajan Bhargavi
If this answer helped, please click "Accept Answer" and upvote to help others in the community!