cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MK-RPADK
Frequent Visitor

Dynamically select AI model when using "Extract information from documents"

When trying to dynamically selecting an AI model in the action "Extract information from documents", I get the error:

"Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Extract_information_from_documents': The API operation 'PredictV2' is missing required property 'item'.'."

Screenshot 2023-02-07 111842.png

 

I then tried to use the action "Predict" instead and using this input (I am using the "Compose" action to encode the file):

 

MKRPADK_2-1675765700760.png

 

But this just lets the flow run "forever" and I have to cancel it.

 

Does anybody have any ideas how to make it work dynamically using an AI model?

1 ACCEPTED SOLUTION

Accepted Solutions
JoeF-MSFT
Power Apps
Power Apps

Thanks for the question @MK-RPADK! I'd recommend following the steps from this page (if you haven't already 🙂https://learn.microsoft.com/en-us/ai-builder/predict-action-pwr-automate#use-a-dynamic-model-id-adva... 

 

Can you give more details on where the flow keeps running forever? Is the a loop where the flows keeps iterating and not exiting? 

View solution in original post

2 REPLIES 2
JoeF-MSFT
Power Apps
Power Apps

Thanks for the question @MK-RPADK! I'd recommend following the steps from this page (if you haven't already 🙂https://learn.microsoft.com/en-us/ai-builder/predict-action-pwr-automate#use-a-dynamic-model-id-adva... 

 

Can you give more details on where the flow keeps running forever? Is the a loop where the flows keeps iterating and not exiting? 

It seems I got it working now using "Predict" - there was an error in my conversion of the attachment content.

 

Thanks 🙂

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,684)