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 / Error on flow : Start ...
Power Automate
Unanswered

Error on flow : Start an approval process and send an email on Microsoft Form submission

(0) ShareShare
ReportReport
Posted on by

Hi 

 

While testing for the following flow:

memento_1-1708475579112.png

 

error at the first stage

memento_0-1708475543391.png

 

error message:

 

Invalid form id. Inner message: source array was not long enough. Check the source index, length and the array's lower bounds. (Parameter 'sourceArray')

 

I checked all the fields entered are following the correct format.

For 'Get Response Details' the response id is also selected.

memento_2-1708475781315.png

 

 

What could have gone wrong?

 

 

 

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @memento ,

     

    Please try removing the trigger and adding it again.

    When setting the Form ID, please select from the dropdown menu instead of manually entering the form's name.

    vbofengmsft_0-1708480682466.png

     

    Best Regards,

    Bof

     

  • memento Profile Picture
    on at

    But in the drop down listing, there is only the form name for selection.

    How to find the form id ? 

    Also, i tried created the same flow with another form and there is no error. I followed the same concept with the 2nd form and then the error occur. The only difference is that in the 2nd form i added more fields to fill in but i also check that the test inputs followed the same format ie. if is text then is text (or text with numbers), if is date then is in (M/D/YYYY) as per the form format and also choice input.

  • v-bofeng-msft Profile Picture
    on at

    Hi @memento ,

     

    You could find the Form ID in the code view.

    vbofengmsft_0-1708483026005.png

     

    Best Regards,

    Bof

     

  • memento Profile Picture
    on at

    The form ID in the code shown is actually the form name.

  • Santhosh Balakrishnan Profile Picture
    169 on at

    You can get the form id by opening the form on portal.

     

     

     

    If this solution proves helpful and resolves your issue, kindly consider marking it as accepted. Doing so will aid others who encounter similar challenges in the future.


    Regards,
    Santhosh Balakrishnan
    Apps4.Pro - Trusted Office365 T2T Migration partner. Migrate Exchange, SharePoint, Microsoft Teams, Stream, Yammer, Power Platform between tenants.
    Product Specialist - http://www.apps4.pro/

    sanbss_0-1708503845617.png

  • memento Profile Picture
    on at

    Hi everyone, 

     

    i managed to solve the approval process by just reusing my previous flow which is working but just change the form in the flow.

    which means i use the original form and added the fields that i need instead of using a new form to have those new fields.

     

    Thus, it is not due to whether i use the form id or not since when i reuse my previous flow but change the form (there is a drop down listing to choose the name), the whole flow worked. which means for some reason the flow does not work with the new form which is very strange and since i don't have time to figure the reason, i just use the original form with my added new fields.

     

    But if anyone has similar encounter and you know why, please share. 

     

    Now i am onto the next part where after it has all the approval, i added the "Create item" in sharepoint. This part has failed due to the field stated in form is a number/double ie $XXX.XX but the list in sharepoint which i want to create did not state this as the format. However, I tried the formula under the validation part =DOLLAR([Col1], 2) where Col1 is the name of my column in the sharepoint listing (and also the same from the form) but it doesn't recognise. 

     

    If anyone knows, please advise. 

     

    Thanks !

  • Santhosh Balakrishnan Profile Picture
    169 on at

    We attempted to reproduce the error and discovered that need to format a column as 'Currency' on sharepoint list.

     sanbss_0-1709100742300.png

     Subsequently, in the 'Create item' step of the currency column, utilize the formula float(replace(outputs('Get_response_details')?['body/r61804482e325451184aa7fe02e6c78dc'], '$', ''))

     

    This expression removes the dollar symbol and converts the value to a float. Since the column type is inherently currency, it automatically appends the dollar symbol to the amount.

     

    Let me know if this work for you.

     

    If this solution proves helpful and resolves your issue, kindly consider marking it as accepted. Doing so will aid others who encounter similar challenges in the future.


    Regards,
    Santhosh Balakrishnan
    Apps4.Pro - Trusted Office365 T2T Migration partner. Migrate Exchange, SharePoint, Microsoft Teams, Stream, Yammer, Power Platform between tenants.
    Product Specialist - http://www.apps4.pro/

     

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