When CJK-OCR is used in Automation Suite > AI Center > Data Labelling > Document Manager, PDF file import is slow, and large file (than 30 pages) failed.
The detailed error message: The import has been terminated due to inactivity for 20 minutes or more.
Issue
When CJK-OCR is used in Automation Suite > AI Center > Data Labelling > Document Manager, PDF file import is slow, and large file (than 30 pages) failed.
The detailed error message is: The import has been terminated due to inactivity for 20 minutes or more.
Environment
- Air-gapped AS 23.4.5, multi-nodes (3 server nodes + 1 agent node) hosted in VMWare environment
- Applications Installed in Automation Suite platform: Orchestrator + AI Center + Document Understanding + Action Center
- Each node has 20*CPU and 40GB RAM
Troubleshooting Steps
- Run iperf tool shows the network throughput is normal between the nodes
- Run fio tool shows disk read/write speed is normal on each node
- Issue can not be reproduced on other environments with same infra and same Automation Suite version
- no error observed in browser har file
- Timeout error message observed in du-digitizer pod:
2024-07-11 09:32:59.9240|ERROR|UiPath.DocumentUnderstanding.Digitizer.Worker.Services.DigitizationFacade|Digitize job threw an OCR exception. Operation id: 92b90e37-653f-ef11-8f05-005056a9b913 with org ID f1a080ab-1f0c-4f41-a22a-d5bfbfba7ae2 and tenant ID 817a50f3-b416-41b6-a869-66bda031275f. ContentType: application/pdf. OcrType: uipath_cjk. OcrUrl: https://{as-fqdn}./du_/cjk-ocr/. IsDocumentPreprocessingOnly: False.Error: [OcrEngineError] Exception: UiPath.DocumentUnderstanding.Digitizer.OCR.Errors.OcrException: [OcrEngineError]. Details: Polly.Timeout.TimeoutRejectedException: The delegate executed asynchronously through TimeoutPolicy did not complete within the timeout.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled.
---> System.Net.Sockets.SocketException (125): Operation canceled
Resolution
Increase VMware CPU allocation limit of resource pool (from 20GHz to 70GHz in this example) and avoid hosting all node servers in same VMware resource pool.
Refer to the VMware vSphere document for more details.

