Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Flow works but get error Action 'Extract_information_from_documents' failed

(1) ShareShare
ReportReport
Posted on by 22

My flow is set up to extract the data from a form and input it into a new row in excel. This is triggered by a specific email. When testing the flow I have found that the flow works as intended however I get an error message stating "Action 'Extract_information_from_documents' failed" and an extra row is added to the table with no data.

 

The error details box states:

"{"operationStatus":"Error","error":{"type":"Error","code":"InvalidPredictionInput","message":"Encountered an issue when reaching Form Recognizer: InvalidRequest","properties":{"BackendErrorCode":"InvalidInferenceInput","DependencyHttpStatusCode":"400"},"innerErrors":[{"scope":"Record","target":null,"code":"RecordDimensionsOutOfRange","type":"Error","properties":{"ErrorCode":"InvalidRequest","MlIssueCode":"RecordDimensionsOutOfRange"}}]},"predictionId":null}" 

 

I'm not sure what is causing this error as my excel file populates as intended and by all measures it appears the flow is in fact working. 

 

It shows there being 3 apply to each processes, process 1/3 and process 2/3 work correctly. However at process 3/3 the error message is generated. I don't want process 2/3 to add a line in the excel sheet either although currently it is. 

1/3, it works as intended and I thought this would be the only process running.

 2/3 works but I don't want it to add a row in the excel sheet and don't see what this process is actually doing or needed for.

 

The error message comes from 3/3 as seen below 

kellen_2-1691432227740.png I'm assuming the error has to do with my apply to each function, perhaps I could use conditionals to avoid the issue? If anyone has any info that could help me out it would be much appreciated!

 

 

 

  • kellen Profile Picture
    22 on at
    Re: Flow works but get error Action 'Extract_information_from_documents' failed

    I really appreciate the help! The AI Model has 99% accuracy and there is never going to be a time where any of the fields are left blank. When I was running the test all fields in the PDF attached to the email were filled out entirely. 

     

    All the correct information goes into my excel table as desired, the problem is that another row is added with no info (only one row needs to be added and it contains the information I need for excel) and then after this the flow "Fails" if I could simply make the flow stop after the first row of information is added to excel it would work exactly how I want. 

     

    I don't see the operational status field within the AI, I think my problem should be an easy fix within the flow just not sure what exactly I need to change.

  • trice602 Profile Picture
    13,760 Super User 2025 Season 1 on at
    Re: Flow works but get error Action 'Extract_information_from_documents' failed

    Thanks for posting.  Understood. OK, I can't fix the empty value because it is inside your AI model and can't be addressed with a conditional statement (now that I see the flow).  My recommendation on the error is to revisit the AI model and verify the operational status field has a value (the error says it is blank).  If it is there, then retrain your model to accurately capture this.  If you have a few documents where this is going to be blank, include those in your training model so your AI extraction step understands the blanks. 

     

    On the 2 of 3 where you don't want to write that to Excel, find it in your Excel step and simply remove the value so it doesn't write it.  Here's an example of that:  if you didn't want to write the City to your Excel table, find City in the Excel step and remove the dynamic extracted value and leave it blank.

     

    trice602_0-1691439003814.png

     

     

     

    Please let me know if that was helpful!  Always glad to help! Tom

  • kellen Profile Picture
    22 on at
    Re: Flow works but get error Action 'Extract_information_from_documents' failed

    kellen_0-1691437799520.png Thanks so much for the help! I have attached screenshots of the flow with the steps expanded, if there is a better way for you to see the flow let me know and I can try and do it a different way. Thanks again! 

    kellen_1-1691437849944.png

     

    kellen_2-1691437896900.png

     

  • trice602 Profile Picture
    13,760 Super User 2025 Season 1 on at
    Re: Flow works but get error Action 'Extract_information_from_documents' failed

    Hi @kellen ,

     

    Sure can.  Please add your flow in this thread with the steps expanded so I can see what is being selected.  From there, I'm going to add a condition that says if the value you are extracting is not blank, do this, otherwise do nothing - in the apply to each.  Always glad to help! Tom

  • kellen Profile Picture
    22 on at
    Re: Flow works but get error Action 'Extract_information_from_documents' failed

    Hi @trice602 , is there anyway you would be able to elaborate with that? It sounds like it could solve the issue just not sure how to go about doing this. Thanks so much!

     

  • trice602 Profile Picture
    13,760 Super User 2025 Season 1 on at
    Re: Flow works but get error Action 'Extract_information_from_documents' failed

    Hi @kellen ,

     

    I would recommend you put your extract info action in a conditional step and check if empty() is equal to true().  Please mark as a solution if that works for you! Always glad to help! Tom

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,601 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,942 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow