cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SimpoFlow
Level: Powered On

Flow failing between Forms and Power BI. Any help much appreciated.

I am trying to configure a flow from Microsoft Forms to Power BI.  I have this working ok, but when I add branching questions in Forms, I start receiving errors.

 

To explain further:

 

I essentially have a form containing a question with 3 options, A, B and C.  If the user selects A, the branching rules open all the subsequent A questions, then hides all the subsequent B and C questions.  Simialrly if B or C is selected.

 

I have a mixture of Text and Numerical answers, however the flow always fails when one of the subsequent B questions is set as a 'Number' response in Power BI's dataset and also one of the subsequent C questions set as a 'Number' response.

 

(Note there are no 'Number' format questions in the subsequent A questions.  I also have the Historical Data Analysis setting 'on' as I require allot of answers to be stored for review)

 

PBI1.png

 

 

A sample error is shown below:

 

{
"error": {
"code": "InvalidRequest",
"message": "Error parsing request for dataset sobe_wowvirtualserver|590941f8-8b6e-4502-b3ec-e424243a4562: Conversion error on column '<pi>Requirements Clear</pi>': <pi>Input string was not in a correct format.</pi>"
}
}
 
If I change all the format settings to all questions in Power BI to 'Text' then the flow passes and outputs in Power BI.  However it then views the numbers as text in Power BI.  
 
Does anyone know how I can fix this so I can have multiple 'Number' format branched questions in Forms, and for the flow to succesfully output these to Power BI without the above error?  Let me know if you need any further information.
1 REPLY 1
Super User
Super User

Re: Flow failing between Forms and Power BI. Any help much appreciated.

Hi @SimpoFlow 

 

Microsoft Forms returns everything as a string. You should keep your configuration on Power BI and then do a simple cast on the value before inserting it into Power BI. Something like this:

 

float(body('Get_response_details')?['Project_Status'])

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,150)