In NetSuite, I'm trying to Customize the "Standard...
# general
a
In NetSuite, I'm trying to Customize the "Standard Purchase PDF/HTML Template" advanced PDF/HTML template as I have done with many others, but when I click the Customize link for it on the "Advanced PDF/HTML Templates" page, then I arrive not at the advanced PDF template editor, but instead at an error page that says:
Copy code
An unexpected error has occurred. Please click here to notify support and provide your contact information.
How can I find out what's causing this error to happen only on the standard advanced template for Purchase Orders and not on any others, and how can I fix it?
1
c
Do you have any plugins running? I know there was a netsuite related one that was causing something similar a while back. I'd try a different browser to eliminate that as an option.
a
Oh you mean browser plugins? Not many no. I suspect it's a server-side userevent script or workflow trying to do something that it can't on the "print" event. I'll try disabling scripts and workflows in Sandbox, that are deployed to Purchase Order, and see if the problem clears up. When I have isolated which script or workflow it is, I'll change it so it doesn't cause the error on a Print event.
The kind of error I am receiving is the page that NetSuite responds with when an unexpected error occurred on the server before it sent the HTTP response for the page that is requested by clicking the Customize button.
c
You can't script against that so I highly doubt it's a script or workflow. It's either an account issue or browser related or plugin related from my experience.
a
Hmm. Interesting. In the Oracle NetSuite Community forum, that's what the gurus suggested, but it might be faster to check on what you've experienced first: https://community.oracle.com/netsuite/english/discussion/4329807/error-message-opening-[…]ected+error+customize+Purchase+Order+Advanced+PDF+Template
c
If you're trying to customize it and it's erroring on opening the PDF to customize, then there's no scripts involved from a scripting standpoint as you don't script against it. I've be super surprised if you disabled a script and it let you customize the standard PDF.
a
Yep, I just eliminated User Event scripts as a possibility, There were only a dozen or so.
So when you said Plugins did you mean NetSuite plugins or browser plugins? I'm on Chrome right now
c
browser plugin
👍 1
a
Hmm... Switching to Edge browser gives exact same results. In Edge I have only 1 extension "Google Docs Offline" and it's not enabled.
c
You can't get to the freemarker at all right?
only other thing i can think of is clear cache and try again and if that doesn't work i'd just contact netsuite support.
a
I just eliminated Workflows as the possible cause. If it's not scripting and it's not the browser, what could it be? My first guess was that maybe something that's normally fine to have on the standard template is messing it up because of some change to NetSuite's features, or the default contents of a certain field maybe?
But I'm just trying to load the editor, not run a preview or render the PDF.
c
Gotcha. That's the weirdness of it. I'd just contact support and let them figure it out as nothing is obvious. Maybe someone sees this that ran into it but with the vague error and the seemingly native functionality just failing it may be only something netsuite can fix.
a
It is starting to look that way. I cleared cache and cookies too, for all time.
Huh. SuiteAnswers had the solution. I guess I should've checked there first! The preferred form for the record type whose standard Advanced PDF/HTML Template has to not be set to Basic printing type, but Advanced printint type, or this error occurs when trying to customize the standard Advanced PDF Template for that record. I just unchecked Preferred on all the Purchase Order forms and now it lets me customize the standard advanced template, even though no PO forms are set to Advanced printing type.
1
1000 1
c
interesting that links together like that. It makes sense I guess.