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 / Can't Pass Dynamic Mod...
Power Automate
Unanswered

Can't Pass Dynamic Model ID to AI Model field in AI Builder Process Documents Action.

(0) ShareShare
ReportReport
Posted on by
Hello,

When passing the static ID of the AI Model in the "AI Model" field of the AI Builder "Process Documents" action, the flow saves perfectly fine. However, when I try to dynamically provide the AI Model ID to the action via a variable or output from another action, I get this error:

Request to XRM API failed with error: 'Message: Flow client error returned with status code "BadRequest" and details "{"error":{"code":"InvalidOpenApiFlow","message":"Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Extract_information_from_Invoice': The API operation 'PredictV2' is missing required property 'item'.'."}}". Code: 0x80060467 InnerError: '.
 
I do notice it works when I declare the AI Model id as an environmental variable within a solution and pass it to the Process Documents action that way, though that defeats the purpose of it being dynamic.

Here is an example of it failing to save when passing the model id to it via a variable:

 

Here is an example of it failing to save when passing the model id via the result of a query to the AI Model table in Dataverse:


Here is an example of it successfully saving when passing the model id via an environmental variable:
 

I have tested that all three of the values passed in each of these cases are the same. This is the first time I'm posting on a forum so let me know if I should be providing any more important context :)
Categories:
I have the same question (0)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard