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 Pages / TriggerInputSchemaMism...
Power Pages
Suggested Answer

TriggerInputSchemaMismatch

(0) ShareShare
ReportReport
Posted on by 114
Hello i have a flow in power automate where i have 3 inputs , (2 texts and 1 file ) , in the powerapps i try to execute the flow but i got error;


this is my code :
ForAll(
    DataCardValue30_1.Attachments,
    xxxxxxx.Run(
        JSON(
            {
                Input: TextInputCanvas5.Text,  // First text input
                Input1: DataCardValue30.Text,   // Second text input
                FileContent: {
                    name: ThisRecord.Name,       // File name
                    contentBytes: ThisRecord.Value // File content in bytes
                }
            },
            JSONFormat.IncludeBinaryData // Ensures binary data is included
        )
    )
)

Please help me!
Categories:
I have the same question (0)
  • Suggested answer
    Inogic Profile Picture
    1,291 Moderator on at
    Hi,
     
    As per your description, your flow has 3 inputs (2 text inputs and 1 file), and when calling it from Power Apps, you receive this error:
    TriggerInputSchemaMismatch
    Required properties are missing from object: text_1

     
    Why This Is Happening
    This error occurs because the flow trigger expects separate parameters, but you are passing a single JSON object instead.

    When you use the Power Apps (V2) trigger in Power Automate, each input becomes a required parameter (for example: text, text_1, file, etc.).
    However, your code is wrapping everything inside: JSON({...})
    So the flow is receiving one string parameter, not the three expected inputs — which causes the schema mismatch.
    Correct Approach
    You should pass parameters separately, not as a JSON object.
    ForAll(
    DataCardValue30_1.Attachments,
    xxxxxxx.Run(
    TextInputCanvas5.Text,
    DataCardValue30.Text,
    {
    name: ThisRecord.Name,
    contentBytes: ThisRecord.Value
    }
    )
    )

    Notes
    • Do NOT wrap parameters inside JSON()
    • The order of parameters must match the order in the flow trigger
    • The file parameter must be passed as an object with:
    • name
    • contentBytes
     
    Hope this helps.
     
    Thanks!
    Inogic
  • CU03060858-0 Profile Picture
    6 Microsoft Employee on at
    hi  @lumos 
    I hope the answers provided helped resolve your issue.
    If our solution was helpful, could you please mark it as the accepted solution? This will help other community members facing a similar situation find the solution more easily.

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

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 36

#2
Valantis Profile Picture

Valantis 30

#3
omkarsupreme Profile Picture

omkarsupreme 23

Last 30 days Overall leaderboard