Extracting arabic words from an image using Sanad AI arabic OCR UiPath

Hello everyone,
I’m trying to extract Arabic words from an ID using Sanad AI, but I get an empty message in the message box. Does anyone know how to fix it?

1 Like

Hi, @Samira_RAHME1 welcome to the Community!

just make sure your input is a good-quality scanned document with clear Arabic text. Before showing the result in your message box, log the extracted output to check if your workflow is picking up the correct field or value

Yes it is a good-quality scanned document.

@Samira_RAHME1
you can try this once After the SanadGenericExtraction activity use the “Export Extraction Results” activity and map the ExtractionResult output to a DataSet variable.

Then, in your Message Box, access your extracted field value with:
dataSet.Tables(“Simple Fields”).Rows(0).Item(“fieldname”).ToString
Replace fieldname with actual field.

Hello,

Maybe the issue is that ocrResult is an object, not the final text.

Perhaps you can try this expression to get the actual value, replacing "YourFieldName" with the field name you defined in your Taxonomy (e.g., ArabicName):

Assign or Message Box Text: ocrResult.Results.Where(Function(r) r.DataPoint.FieldName = “YourFieldName”).FirstOrDefault().Values.FirstOrDefault().ToString()