This topic contains 5 replies, has 0 voices, and was last updated by darrenhillconsulting 8 years ago.
-
AuthorPosts
-
November 16, 2016 at 1:20 pm #1531
darrenhillconsultingSo, today … an automation I built just stopped working. More accurately, the render.xmlToPdf function throws a classic unexpected error. (Line 221 is the render.xmlToPdf call)
{“type”:”error.SuiteScriptError”,”name”:”UNEXPE CTE D_ERROR”,”message”:null,”stack”:[“renderXmlToPdf(N/render)”,”
(/SuiteScripts/DH/DH_GeneratePDF.js:211)”],”cause”:{“type”:”internal error”,”code”:”UNEXPECTED_ERROR”,”details”:null,”u serEvent”:null,”stackTrace”:[“renderXmlToPdf(N/render)”,” (/SuiteScripts/DH/DH_GeneratePDF.js:211)”],”notifyOff”:false},”id”:””,”notifyOff”:false} This has been working for more than a quarter, so why fail now?
Here’s the xmlString I’m passing into the function. The xml itself passes all validations and has no bad characters. And 3 image references resolve fine.
Code:
Vendor Report Batdad – batdad
2016-10-1 – 2016-10-31 Traffic Summary
Total Earnings $105,419.90 Total Pageviews 32,595,964 Total Entrances 8,506,353 Earnings Per Day $3,400.64 Pages Per Session 3.83 Pageviews Per day 1,051,483 Entrances Per Day 274,398 Average RPM $3.23 -
November 16, 2016 at 4:27 pm #1532
michoelI don’t know if this is what’s causing the issue, but you seem to be missing the tag:
Code:
-
November 16, 2016 at 4:42 pm #1533
darrenhillconsultingI thought the same thing … but its in there (not sure why its not in my example)
-
November 16, 2016 at 7:48 pm #1534
adityasrivalliNoticed at a coupel of places, some equal to symbols in your sample tags within the Datacurve tag, Please check if they are causing syntactical issues.
-
November 17, 2016 at 5:32 am #1535
darrenhillconsultingOriginally posted by adityasrivalli
View Post
Noticed at a coupel of places, some equal to symbols in your sample tags within the Datacurve tag, Please check if they are causing syntactical issues.
Ya, something went wrong when I copied that code into this editor. I corrected the xml content string.
-
November 17, 2016 at 6:37 am #1536
darrenhillconsultingHello all,
I was able to fix this issue myself. I ended up downloading and installing the BFO Generator locally and ran my xml through it. So I got much more detailed error output than the generic Netsuite one. Ended up my TrueType font file was corrupt! Everything is right in the world again.
Cheers to those that helped out!
-
AuthorPosts
You must be logged in to reply to this topic.