web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow to pull data from...
Power Automate
Unanswered

Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

(0) ShareShare
ReportReport
Posted on by 48

Hello, I have set up a solution utilising MS Forms, MS Lists and PowerAutomate that sends the data from the forms to the lists using a number of flows to do so. In addition, there's a flow that generates a unique ID (based upon the row ID of the list where the data from the form feeds into) and then sends an email to the submitter with this unique ID. 

 

I've recently had to make some amends to the forms and the lists, which in turn have required amends to the flows too. I've attempted to carry out a test on one of the flows by submitting a test form, but I've had the flow fail that is meant to create an entry in the list once the form has been submitted. The error is: Action 'Create_item' failed. The error details advise: The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/Unscripted_x002d_Howmanyleadersh' is required to be of type 'Number/double'. The runtime value '""' to be converted doesn't have the expected format 'Number/double'.

 

To give some context to the above, the form has a question that asks what programme type and you answer either Scripted or Unscripted, which then using branching, asks you a set of questions (and has the same answers) that are the exact same except for the first question on each set, which is the same question but has a different context depending on if it's Scripted or Unscripted:

Screenshot 2024-04-24 at 12.03.50.png Screenshot 2024-04-24 at 12.04.38.png

Basically, if you answer Scripted, the Unscripted set of questions are not answered as the branching moves past these and vice versa. 

 

Looking at the raw inputs, the values then applied to these questions that are not answered due to the branching are as follows:

Screenshot 2024-04-24 at 12.00.12.png

The questions on the form have number restrictions on that mean a number has to be entered, which then are meant to feed into a number column type on the associated list. 

 

I've got 2 questions to the above:

  • Is there a way to get around this without taking the number restriction off? I'd rather not do this as the numerical data will be used for business information analysis, so if people add data in that isn't numerical it will skew the figures. 
  • Also, I realise the way I've set up the form and list - where there's 6 questions on the form and 6 columns in the list that are essentially the same - perhaps isn't the most efficient and is what is causing the above error. How can I tweak the form so that it only shows the context for Scripted Unscripted, which would then mean I only had to use 3 follow up questions and 3 columns on the list? Would it be through using a section element?
Categories:
I have the same question (0)
  • Jordan-Ryan Profile Picture
    112 on at
    Re: Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

    Set a default value for your SharePoint list columns.

    That means when you put in blank it will take the default value you assigned (I would assume 0).

    JordanRyan_0-1713960621504.png

    Above uses the current solution of 6 columns. 

    The alternative and better route is you have 3 columns in your list:
    Ethnically Diverse
    Disabled
    SED

    When you then store against these in your flow you use a if blank statement. 

     

    if(not(empty(triggerBody()?['UnscriptedEthnic'])), triggerBody()?['UnscriptedEthnic'], triggerBody()?['ScriptedEthnic'])

     


    The above is saying if its not empty use one value and if it is use the other. Obviously you need to replace the inputs but hopefully this helps. 

  • SteCoxy Profile Picture
    48 on at
    Re: Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

    Let me try both suggestions and let you know if this works - thank you for your swift reply.

  • SteCoxy Profile Picture
    48 on at
    Re: Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

    Relating to the second and streamlined approach you've suggested, where would I add the blank statement? 

     

    This is the current flow, as is, where you can see the parameters i.e. column headers and then the form elements that it's mapping from. Would it be within the parameters i.e. in addition to the dynamic content, I can add the blank statement for each according parameter?

    Screenshot 2024-04-24 at 13.27.52.png

  • Jordan-Ryan Profile Picture
    112 on at
    Re: Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

    So atm you have 8 columns 4 for scripted and 4 for unscripted. 

    4 of those would be removed from your list and you would just have 4 Columns in there it would be stored. 

    JordanRyan_0-1713962057181.png

    Highlighted area is where your statement would go and red is what would be removed. 

    You would also then have a new field which would be Scripted / Unscripted which you would store what one it is. 

  • SteCoxy Profile Picture
    48 on at
    Re: Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

    And just to double check, would that statement be in addition or instead of the dynamic content, which is what I've currently got in there i.e. where you map the field on the form to the column on the list?

  • Jordan-Ryan Profile Picture
    112 on at
    Re: Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

    So it would be instead but you would replace the 

    triggerBody()?['UnscriptedEthnic']

    And the 

    triggerBody()?['ScriptedEthnic']


    With the values you currently have. 

  • SteCoxy Profile Picture
    48 on at
    Re: Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

    OK great stuff - thank you so much for your help with this and talking me through it. It's much appreciated! I'm going to give this a go and see if I can get it to work. Fingers crossed!

  • Jordan-Ryan Profile Picture
    112 on at
    Re: Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

    No worries the other way should also work in terms of defaulting it to 0.

    But sometimes these also throws errors. 

  • SteCoxy Profile Picture
    48 on at
    Re: Flow to pull data from MS Form to MS List is failing on the Create Item action relating to Input parameter "is required to be of type 'Number/double'".

    Hi @Jordan-Ryan , I tested this out last night, but it sadly failed, as I think I've misunderstood how to join the dots, as such. I'm wondering if I've got it back to front. I added the statements in using the guidance you provided me and amended them using the ID fields from the form. 

    Screenshot 2024-04-25 at 10.40.47.png

    For example, for the top one, the statement I used was:

    if(not(empty(body('Get_response_details')?['r4c91fd48c8e2436d9dad66d731d84e5b'])), body('Get_response_details')?['r4c91fd48c8e2436d9dad66d731d84e5b'], body('Get_response_details')?['ree6be8e340ec44c19cfa38910cccef24'])
     
    r4c91fd48c8e2436d9dad66d731d84e5b = the ethnically diverse question on the form for Unscripted and ree6be8e340ec44c19cfa38910cccef24 = the ethnically diverse question on the form for Scripted. 
     
    Should this be the other way around? 
     
    Strangely, after I carried out my test, I noticed it's added in a new action somehow: For each. As far as I'm aware, I never did this and if I did it may have been because I was going crosseyed after a long day of config/testing. Could this be causing the fail? 

    Screenshot 2024-04-25 at 10.45.39.png
     
    The fail message was: The execution of template action 'For_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body']?['body/value']' is of type 'Null'. The result must be a valid array.

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard