randomly started having a scheduled script start t...
# suitescript
d
randomly started having a scheduled script start throwing UNEXPECTED_ERROR when trying to
xml.validate()
script has been working fine for 1.5 yrs, XSD file hasn't changed, and trying to validate xml that passed validation yesterday also throws UNEXPECTED_ERROR
even this bare-bones scheduled script execute function throws
UNEXEPECTED_ERROR
on the
xml.validate()
call sample xml and xsd are from w3
☝️ don't know why syntax highlighting isn't working, I keep saving the snippet as
.js
, but slack keeps changing it to plain text
a
message has been deleted
👀 1
d
was escaping the newline chars for the string literal, force of habit. Testing without, but also the production XML string doesn't have these
a
right its not a solution, and doesn't explain you're original issue
d
yeah, removed and still unexpected error. I've got NS chasing it
a
and i'd expect that to run and FAIL to validate anyway, not error out
d
yeah
a
you have spaces in your code filenames?!
🙈 1
umm what's lin 47 of your code? the version i copied that you posted is only 31 lines?
d
47:9 is xml.validate()
a
figures... I have no clue man, none of this make sense
NS turned off XML parsing on your account, it comes with an extra charge now $$$ 😂
d
hahahahahaha

https://media.tenor.com/IZX4tB6XZFAAAAAC/wheeze-wheeze-laugh.gif