cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lostgical
Advocate II
Advocate II

User account parse with HTTP Request, user name with comma character may cause error 400-Invalid JSON ??

The SP user account is parsed for us to grab employee ID (custom SP field). This particular user with an apostrophe in the name is returning 'Flow run failed' each time, with error message 400, Invalid JSON. A comma character :

 

"status": 400,
"message": "Invalid JSON. A comma character ',' was expected in scope 'Object'. Every two elements in an array and properties of an object must be separated by commas.\r\nclientRequestId: bd3a38cc-6c65-4e67-a3a6-d02bd6f2e830\r\nserviceRequestId: 7438059f-c0cd-9000-8877-6de234dbe744",
"source": "............./_api/Lists/getbytitle('45')/items",
"errors": [
"-1",
"Microsoft.SharePoint.Client.InvalidClientQueryException"
]

 

image.png

 

How do we go about fixing this or preventing this from happening?

 

Many thanks.

 

2 REPLIES 2
v-alzhan-msft
Community Support
Community Support

Hi @lostgical ,

 

Could you please share a screenshot of the configuration of your flow?

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

image.png

 

 

And detail of the failed step:

 

image.png

 

{
'__metadata': { 'type': 'SP.Data.45ListItem'},
'Title': '-------Sign-in',
'AttendeeName': 'O'Day, -------',
'Email': '--------------',
'Department': '----------- Executives',
'EmployeeID': '0----',
'EventListID': '--'
}

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (17,784)