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 / Invoice file not read ...
Power Automate
Answered

Invoice file not read in AI - "Input parameters are invalid for your model"

(0) ShareShare
ReportReport
Posted on by 15
 

Hi all, hoping someone might be able to help me.

 

I have a flow using the Extract Information from Invoices action to pull the PO number and Invoice number from a PDF and put it in excel online.

 

I have tested the invoice within the available AI build Invoice Processing test sample, and it reads the file just fine. However, when I attempt the invoice within the custom flow which uses PDF from incoming as attachment it comes up with the error “Input parameters are invalid for your model.”

PA_Flow.PNG
PA_Flow_Error.PNG
Categories:
I have the same question (0)
  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @pkhurana ! Thank you for sharing your use case and the screenshots.

     

    I see that you're using an expression in the AI Builder action. It should not be needed. You can build the flow like this:

     

    JoeFMSFT_0-1683972506395.png

     

    Also, if your emails come with signatures, you might have to filter them out like this: https://learn.microsoft.com/en-us/ai-builder/form-processing-model-in-flow#filter-email-signature-from-a-flow-so-that-its-not-processed-by-the-document-processing-model-microsoft-365-outlook

     

    I hope this helps, happy automation!

  • pkhurana Profile Picture
    15 on at

    Hello Joe,

    Thanks for your response. I tried this but still does not works. It seems the attachment pdf is coming as inline.

    Regards,

    Puneet Khurana

    PA_Flow_Error_14thMay.PNG
    PA_Flow_14thMay.png
  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Thanks for the update Puneet! In the AI Builder action, what's the error message you're getting? Did you remove the base64toBinary function?

     

    A couple of things we can try:

    • Take the PDF. Navigate to the AI Builder Explore page (https://aka.ms/tryaibuilder). Select Invoice Processing and upload the PDF from the email. Is the data extracted correctly?

      JoeFMSFT_0-1684077888893.png

       

    • If you then select Use prebuilt model --> Use in a flow and try that flow template, does it work for you?

      JoeFMSFT_1-1684078146147.png

       

     

  • Verified answer
    pkhurana Profile Picture
    15 on at

    Hello Joe,
    Thanks for your response.
    1. I have removed the base64toBinary function
    2. Using the available sample in AI Builder Explore page, this is working perfectly fine. This asks for a file when we run the flow manually and my requirement is to pick pdf from incoming mail on shared mailbox.
    3. I am able to fix it (refer snapshot) but for the future new users, is it possible to have this information in documentation, may be clarity will help others.

    Working_PA_Flow_Invoices.PNG

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard