web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / AI Builder "Reconocer ...
Power Automate
Unanswered

AI Builder "Reconocer texto" falla con error "InvalidImage" en todos los PDF

(0) ShareShare
ReportReport
Posted on by 7
 

Hola,

Estoy trabajando con Power Automate Premium y tengo créditos de AI Builder asignados correctamente (1,000 de 5,000). Los créditos están asignados al entorno default y la licencia está activa.

Sin embargo, la acción Reconocer texto en imagen o documento falla constantemente con el siguiente error:

text
InvalidImage. The file submitted couldn't be parsed. This can be due to one of the following reasons: the file format is not supported (Supported formats include JPEG, PNG, BMP, PDF and TIFF), the file is corrupted or password protected.

Ya he intentado lo siguiente:

  1. Probar con diferentes archivos PDF (incluyendo PDFs originales de bancos y un PDF simple creado desde Bloc de notas y convertido con Microsoft Print to PDF).

  2. Usar rutas fijas (expresiones con comillas simples) en lugar de variables dinámicas.

  3. Crear un flujo nuevo de prueba con solo disparador manual y la acción de AI Builder (sin bucles, sin SharePoint, sin variables).

  4. Verificar que los archivos no están protegidos con contraseña y que se pueden abrir y copiar texto manualmente.

  5. Confirmar con el administrador que los créditos de AI Builder están asignados al entorno default.

El error persiste incluso con un PDF de prueba creado desde Bloc de notas.

Adjunto captura de la configuración de capacidad donde se ven los créditos asignados y el error detallado.

Pregunta: ¿Qué puede estar causando este error? ¿Hay alguna configuración adicional en el inquilino (tenant) o permisos de usuario que pueda estar bloqueando AI Builder? ¿Necesito activar algún servicio específico en Azure?

Agradezco cualquier orientación. El flujo funciona perfectamente en todo lo demás (SharePoint, bucles, escritura en listas), pero AI Builder no procesa ningún PDF.

Error1.jpg
Error3.jpg
Error2.jpg

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,898 Moderator on at
    Can you show the flow? What actions does the AI builder perform on the files?
  • LC-12051650-0 Profile Picture
    7 on at

    The issue is not related to my AI Builder license or credits. The error InvalidImage happens because the “Recognize text in image or document” action is not receiving the actual file content in the expected format.

    In my original flow I was passing the file ID or path, but AI Builder requires the binary content of the PDF converted to base64.

    To confirm this, I created a minimal test flow:

    • Manual trigger

    • Get file content (from SharePoint/OneDrive, selecting a specific PDF)

    • Recognize text in image or document with the Image field set to the expression:

      Código
       
      base64(body('Get_file_content'))
      
    • Compose to display the OCR output

    With this setup, the error disappears and the OCR returns the text correctly.

    So the root cause is how the file is referenced inside the flow. The solution is to always use Get file content and pass its output (converted to base64) into the AI Builder action.

    I am attaching a Word document with the flow opened and configurations visible so you can see exactly how it is set up.

    ESPAÑOL

    El flujo falla porque la acción Reconocer texto en imagen o documento no recibe el contenido binario del PDF en el formato correcto.
    La solución es usar primero la acción Obtener contenido de archivo y luego pasar ese binario al campo Imagen con la expresión:

    plaintext
     
    base64(body('Obtener_contenido_de_archivo'))
    

    Con un flujo mínimo (disparador manual → obtener contenido de archivo → AI Builder OCR → Compose) el error desaparece y el OCR devuelve el texto.
    El problema no está en la licencia ni en los créditos, sino en cómo se referencia el archivo dentro del flujo.

    Adjunto en un Word el flujo de prueba con las configuraciones abiertas para que se vea cómo está armado.

     
    RESPUESTA FORO VA...

    Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 707

#2
Haque Profile Picture

Haque 475

#3
Valantis Profile Picture

Valantis 456

Last 30 days Overall leaderboard