AxisFault/Server.userException/org.xml.sax.SAXParseException/An invalid XML character (Unicode: 0x8) was found in the element content of the document.

37 views
Skip to first unread message

Virtual Digital

unread,
Nov 30, 2017, 7:53:24 AM11/30/17
to AdWords API Forum
Hi,
I was trying to request the AdWords API to synchronize the accountPerformanceReport.But there was such an error.

The specific request as shown below.

Does this mean that there's an embedded backspace (Unicode 0x8) in the request or response?
response:


How should I solve this problem?Any idea?Thx
Zedd
error log.docx

Nadine Sundquist (AdWords API Team)

unread,
Nov 30, 2017, 9:41:19 PM11/30/17
to AdWords API Forum
Hello Zedd.

This can be tricky to bug, but I think I found some of the culprits. You are completely correct that it is a backspace that is found in the response. i found that it is specifically in some of the labels that are coming back. For example, the following label name coming back has a backspace in it before the word Tina:

<ns2:accountLabels><ns2:id>4933659</ns2:id><ns2:name> Tina</ns2:name></ns2:accountLabels>

When the parsing is happening you should be getting back errors as to specifically where in the response the parsing error is happening. You can then use that information to fix the labels through the UI. I usually take the entire SOAP response and put it into an editor that can see all characters when trying to debug an issue like this. 

Cheers,
Nadine, AdWords API Team

Virtual Digital

unread,
Dec 1, 2017, 12:51:12 AM12/1/17
to AdWords API Forum

Hello Nadine.

This is really helpful to me.
After removing the label, the problem was solved.

Thank you so much.
Zedd

Nadine Sundquist (AdWords API Team)

unread,
Dec 1, 2017, 9:24:05 AM12/1/17
to AdWords API Forum
Hi Zedd,

Thanks for getting back to me. I'm so happy to hear that you got it resolved!

Take care,
Nadine, AdWords API Team
Reply all
Reply to author
Forward
0 new messages