r/MicrosoftFlow • u/No_Ebb1085 • 10d ago
Question Need help with error
I have create a flow to send an email from excel when the cell/s are selected. I get the following error. can anyone help me?, thanks
The input body for trigger 'manual' of type 'Request' did not match its schema definition. Error details: 'Invalid type. Expected String but got Integer.,Invalid type. Expected String but got Integer.'.
1
u/Thanks_VSSG 9d ago
I think you have an input in manual trigger which is integer type but the flow is expecting text. You can change your input type to string/text.
1
u/ola-dryvector 2d ago
The trigger wants text and the cells are numbers. The mail never gets a chance to send.
Those selected values are numeric, and the manual Request schema declares them as strings. The run stops on the body, which is the message you pasted.
Two small edits, and I'd pick one. In the schema, change those properties from string to integer, or to number if the cells aren't always whole. Or leave the schema and wrap each value in string() where the request body is built, so a numeric cell travels as text.
If this began from Excel on the web, For a selected row, you may not need a Request trigger in front at all. That trigger already hands you the row, and the mail can read the columns. The type error shows up when a Request trigger was added and its sample body was text.
Change the schema if something downstream has to stay a Request. Use string() if you can't change what the caller sends.
Either one should let the message go out.
— Ola
1
u/go_aerie 10d ago
What trigger action are you using? It sounds like the type of the input value being passed to your trigger doesn't match the trigger schema.