api/computer/COMPUTERID - returns XML file with ""An Invalid XML character (Unicode: 0x0) was found in the element content of the document"

Hi,

I’ve encountered the following issue:

https://BES_SERVER:PORT/api/computer/COMPUTERID - returns XML file with invalid character
"An Invalid XML character (Unicode: 0x0) was found in the element content of the document"

Does it occurs on all computer Objects? No
Does it occurs with other API Calls: Yes, I’ve tried with “Invoke-RestMethod” on PowerShell and also with CURL command: curl -v -k -u username -o path\output.xml https://BES_SERVER:PORT/api/computer/COMPUTERID

What is the best practice while using API Call?
Do I need to create an XML Sanitizer Function? If so does anyone has an example I can use with PowerShell

1 Like