Friday 13 October 2023

{Resolved}Invalid xml string field is not accepting & symbol in power automate

Hello Everyone,








Today i am going to resolve an error message on Power Automate Invalid XML string field is not accepting  "&" symbol.















Let's get's started.









In XML, the ampersand symbol "&" is a reserved character that is used to indicate the start of an entity reference. if you want to include an actual ampersand symbol in an XML string, you should use the entity reference '&' instead of the raw "&" symbol. this is because using "&" directly can result in a parsing error it's not allowed in its raw form.






So in Power Automate, when working with XML data, make sure to replace the "&" symbol with '&' 

wherever it occurs within your XML content to ensure that it's a valid XML String.






Below XML i have separated the two string values by adding '&'    




<condition attribute="gmr_name" operator="eq" value="MADDULAPALLI &amp; LONDON" />




Update the Power Automate Flow with the updated XML and it will resolve the issue.













That's it for today.


I hope this helps.

Malla Reddy Gurram(@UK365GUY)
#365BlogPostsin365Days


















No comments:

Post a Comment

Note: only a member of this blog may post a comment.