Use Incognito Mode for Development: During development, open an incognito (private) session in your browser. Insert nlapiLogExecution functions into your code to visualize data flow and facilitate debugging. Remove these logs when done to avoid performance impact. Handling Catastrophic Errors: If your script encounters critical errors, configured nlapiLogExecution calls can trigger emails to you or… Continue reading Debugging Tips: SuiteScript for Scriptable Cart
Author: Ittymathew Paul
Checkout Error Alerts
Receive immediate notifications in case an order cannot be submitted due to a checkout error. Email alerts will be sent to you, containing a unique ticket number that correlates to the specific error logged in NetSuite. In case you receive multiple alerts, contacting NetSuite Customer Support with these ticket numbers will expedite the resolution process.… Continue reading Checkout Error Alerts
Resolving Permission Errors in Scriptable Cart
When working with Scriptable Cart and custom records, resolving permission errors requires careful consideration of both the custom records and the script logic. Follow the guidelines below to address any permission issues you may encounter: Custom Record Setup: Ensure that the “Use Permissions” box is marked for the custom record. Clear the “Include Name Field”… Continue reading Resolving Permission Errors in Scriptable Cart
Custom List Permission
Permissions are defined differently for custom lists than for custom records. There is no Permissions tab and anyother access control is not available on the list definition page. This also includes errors which shows up on the SSP Navigate to Setup > Users/Roles > Manage Roles Custom Role: Click Edit Click Permissions Click Setup Permission:… Continue reading Custom List Permission
Performance Guidelines
Explicit Width and Height: When you include images in your web pages, it’s essential to specify the width and height attributes in the HTML code. This helps the browser allocate space for the image while it’s loading. Without these attributes, the browser may have to reflow the page when the image loads, causing a performance… Continue reading Performance Guidelines
“This item is no longer available” message within My Account
This issue is characterized by a message “This item is no longer available”, a missing SKU, no product image or a “image not available“ message, and sometimes a missing or $0.00 price. This issue could happen on the Quotes, Purchase History, Invoices, Returns, Credit Memos Tabs within My Account. Firstly, check that the item is… Continue reading “This item is no longer available” message within My Account
Missing/Incorrect Unit Price and Quantity Values within My Account Invoice Tab
Issue: When looking at an invoice, the values for the unit price and quantity are incorrect or missing, while the amount field is calculating correctly. Additionally, Clicking “Download as PDF” will show all the items with their correct unit price and quantity values. Issue described in this article typically arises when a sales order transaction… Continue reading Missing/Incorrect Unit Price and Quantity Values within My Account Invoice Tab
Theme Deployment takes a long time to appear (>1 hour), CDN Cache won’t clear
Problem: We were encountering an issue where after a theme deployment, activation, and Cache Invalidation Request, we were seeing that some of the theme files weren’t appearing on the site immediately. This issue was domain specific, as we tested with a different domain in the same NetSuite environment and did not have this issue. Solution:… Continue reading Theme Deployment takes a long time to appear (>1 hour), CDN Cache won’t clear
“Cannot GET /tba?” Error Fix
To fix this error, Manually create a token in your NetSuite Environment (global search Access Tokens)Create a new access token using the correct integration (likely SC-TBA2 or something along those lines)Ensure you have the employee you are logged in has the correct role SCDeployer After creating the token, you will see “token and secret”, manually… Continue reading “Cannot GET /tba?” Error Fix
Fuse JS
Fuse JS is Powerful, lightweight fuzzy-search library, with zero dependencies. SCA support file for Fuse JS, we can use this in extension. More documentation on https://www.fusejs.io/