Digitize document error - '.xlsx" does not have known content type error

Hello,

i am getting below error while executing workflow while writing data in excel after extraction validation.

my UiPath.intelligent.ocr.document package is 6.27.2 which is latest and if i downgrade to old version then it gives error for digitize document activity.

what is the possible solution?help me on same

Hi @Mathkar_kunal

UiPath’s Digitize Document activity occurs because this activity is designed for unstructured or semi-structured documents like PDFs, images, or Word documents, and not typically for structured data formats like Excel (.xlsx) files.

So even though you’re on the latest UiPath.IntelligentOCR.Document (6.27.2), Excel files will always fail

Regards
Gokul

1 Like

@Mathkar_kunal

Check out this Docs

1 Like

ok then what is the solution?my input files are pdf only.

i am saving output in .xlsx

Hi @Mathkar_kunal

The error happens because Digitize Document / Document OCR does not support .xlsx files. It only works with image or PDF formats.

  • Do not pass the Excel file to Digitize Document.
  • If data is already in Excel, read it using Excel activities (Read Range).
  • If the Excel came from OCR, first save OCR output, then write results to Excel separately.
  • Keep the latest OCR package; this is not a version issue, it’s a file type limitation.
1 Like

Hi @Mathkar_kunal

Option 1 — If you are trying to read data from Excel (MOST COMMON)

Do NOT use Digitize Document

Use Modern Excel activities instead:

  • Use Excel Process Scope
  • Use Read Range / Read Cell / Use Excel File
  • Or Workbook Read Range (if no Excel app)

This is the correct approach for .xlsx.

Option 2 — If you REALLY need to OCR an Excel file (rare case)

If your Excel is being treated like a scanned document:

Convert Excel to PDF first

Then pass the PDF to Digitize Document.

  • Use Excel → Save As PDF
  • Or Use Invoke Code / PowerShell to convert
  • Or Use Print to PDF
.xlsx → .pdf → Digitize Document → OCR

Regards,
Gokul

1 Like

thank you for suggestions.
actually i have provided wrong variable name instead of output i provided input path.
so, .xlsx document saving in input file.
so automation taking that input file for digitize at the end and was giving error.
i rectified path now

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.