This issue surfaced only after the Sandbox environment underwent a refresh. Here’s a detailed look at the error and how to avert it.
A client faced a challenge where their custom invoice form failed to reach customers via email after the record was submitted. The alert displayed in NetSuite read:
"This transaction was entered successfully, but the following error occurred while sending the transaction email: The email template cannot be processed. Please check that your custom email template and attachment format preferences are compatible."

The invoice form, along with several other forms, included a specific terms and conditions addendum added to the custom forms. These terms and conditions were stored in the Sandbox file cabinet and were linked to the custom forms using HTML.

What Led to the Error?
This complication arose only after refreshing the Sandbox environment. After the HTML code linked the aforementioned terms and conditions text from the Sandbox file cabinet, the custom forms transitioned to the Production environment. The URLs remained connected to the PDFs located in the Sandbox file cabinet. Interestingly, even though the files and links to the URLs belonged to Sandbox instead of Production, everything functioned correctly in Production.
However, when the Sandbox environment was refreshed using the Production environment, where these PDFs in the file cabinet were absent, the URLs referenced by the HTML code no longer existed, causing the form to fail.
Want to grasp the fundamentals of NetSuite Advanced PDF/HTML templates? Check out our FREE NetSuite PDF Course!
The key takeaway here is, especially for developers, when transferring code from Sandbox to Production that contains links to a Sandbox file cabinet, ensure those files are also uploaded to the Production file cabinet and properly re-linked, or future issues are likely to occur. Identifying this problem can be challenging since it arises from a disconnected link within the HTML code.
Items Not Showing in SuiteCommerce Sandbox? After establishing a sandbox domain and setting it up, or following a sandbox refresh, you might encounter an error indicating no items are visible on the SuiteCommerce sandbox site. Here’s how to resolve it.
