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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow works but get err...
Power Automate
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!

 

 

 

Categories:
I have the same question (0)
  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    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

  • kellen Profile Picture
    22 on at

    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
    15,404 Super User 2025 Season 2 on at

    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

    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
    15,404 Super User 2025 Season 2 on at

    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

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard