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 / Logic Apps SharePoint ...
Power Automate
Answered

Logic Apps SharePoint Create Item BadRequest 400 String was not recognized as a valid Boolean

(0) ShareShare
ReportReport
Posted on by 1,599 Super User 2024 Season 1

Hello!

 

In Logic Apps my workflow is getting responses from MS Forms and populating the information into a SharePoint list.

 

This was working all well and find in Power Automate however since moving to Logic Apps, it appears that my Create Item action is falling over with the message status of 400 with the message: String was not recognized as a valid Boolean.

 

 

{
 "status": 400,
 "message": "String was not recognized as a valid Boolean.\r\nclientRequestId: b7e7f139-64ba-4937-873f-543ffc58942e\r\nserviceRequestId: b7e7f139-64ba-4937-873f-543ffc58942e"
}

 

 

sudosaurus_2-1642089091676.pngsudosaurus_0-1642088953193.pngsudosaurus_1-1642088983101.png


I'm wondering if it has something to do with how the form questions/answers are being incorrectly formatted when added to the list? As when I take out this Q1 field, the item gets created successfully. So it creates the item ok with the other details just not with any questions or answers.

sudosaurus_3-1642089293130.png

 

Any ideas?

 

 

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @sudosaurus ,

    I'd try to convert it from Yes/No values to true/false values, e.g. with an if(...) expression.

    if(
     equals(<value from Forms>,'Yes'),
     true,
     if(
     equals(<value from Forms>,'No'),
     false, 
     null
     )
    )

     

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    HI @tom_riha 

     

    Could you inspect the below? Not sure what I'm getting wrong on this one?

     

    if(equals(body('Get_response_details')?['r627f4b6e623d4a72b97f27808180f880'].'Yes'),true,if(equals(body('Get_response_details')?['r627f4b6e623d4a72b97f27808180f880'],'No'),false,null))
  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @sudosaurus ,

    you have a . (dot) before the 'Yes', it should be a comma.

    wrong:
    if(equals(body('Get_response_details')?['r627f4b6e623d4a72b97f27808180f880'].'Yes'),true,if(equals(body('Get_response_details')?['r627f4b6e623d4a72b97f27808180f880'],'No'),false,null))
    
    correct:
    if(equals(body('Get_response_details')?['r627f4b6e623d4a72b97f27808180f880'],'Yes'),true,if(equals(body('Get_response_details')?['r627f4b6e623d4a72b97f27808180f880'],'No'),false,null))
  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    That's great thanks @tom_riha 

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