XmlService parse error - must start and end within the same entity

629 views
Skip to first unread message

Oliver Uhrinec

unread,
Apr 9, 2015, 7:35:18 AM4/9/15
to adwords...@googlegroups.com
I have a problem with AdWords Script. I´m trying to parse external XML feed. This file has about 75mb. I´m getting this error:
Error on line 258085: XML document structures must start and end within the same entity. (line 4)

My code is:

function main() { var feed_url = "http://www.abcknihy.sk/Feed/bluewinston_products.xml"; var xml = UrlFetchApp.fetch(feed_url).getContentText(); var doc = XmlService.parse(xml); Logger.log("done"); }

Is there any limit in size of XML feed? I´m sure, that XML file is correct, i´m using it in another service.

Anash Oommen

unread,
Apr 9, 2015, 8:21:20 AM4/9/15
to adwords...@googlegroups.com
Hi Oliver,

UrlFetchApp has a 100mB / day limit as per https://docs.google.com/macros/dashboard, may be that's what's causing the download to be truncated? 

Cheers,
Anash P. Oommen,
AdWords Scripts Team.
Reply all
Reply to author
Forward
0 new messages