java.lang.ClassCastException: class org.mozilla.javascript.Undefined cannot be cast to class java.la
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 01:39 AM
while i am using a cartJS in scripted rest api while testing from postman i am getting
error -
- 2,102 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 08:13 AM
Seeing this same error after updating our Employee Center application. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 07:29 AM
Anyone found a resolution for that topic ? Testing currently the spedint API and getting the same issue ...
Thank you !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 12:40 PM
I was getting a similar error when passing a catalog item ID to the addToCart() method
var itemId = current.catalog_item;
var cart = new sn_sc.CartJS();
var item = {
'sysparm_id': itemId,
'sysparm_quantity': String(quantity || 1),
'variables': variables
};
cart.addToCart(item);
I needed to make sure that the parameter I was passing was a String
var itemId = current.catalog_item.toString();