cart.orderNow() throws an error: SEVERE *** ERROR *** java.lang.NullPointerException: Cannot invoke "com.glide.script.GlideRecord.getUniqueValue()" because "requestGr" is nullIssue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Receiving the following error when using the “cart.orderNow()” API to submit a record producer:“Cannot invoke "com.glide.script.GlideRecord.getUniqueValue()" because "requestGr" is null”. Throwing the following error: 2025-12-22 09:11:06 (699) Default-thread-4 1D59CCE087023AD0DFBA8445DABB351C txid=4eda04288702 RhinoExceptions SEVERE *** ERROR *** java.lang.NullPointerException: Cannot invoke "com.glide.script.GlideRecord.getUniqueValue()" because "requestGr" is null org.mozilla.javascript.JavaScriptException: java.lang.NullPointerException: Cannot invoke "com.glide.script.GlideRecord.getUniqueValue()" because "requestGr" is null Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } N/A Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Due to the specific type of catalog item that is being attempted to order, which in this case is a record producer rather than a standard catalog item.CartJS.orderNow only works for normal catalog items.For record producers, please use the submitProducer API of CatalogItem class Ref: https://developer.servicenow.com/dev.do#!/reference/api/xanadu/server/sn_sc-namespace/c_CatItem#CI-submitProducer_O Catalog Item: Represents a predefined service or product that users can request (e.g., ordering a laptop, requesting software installation). Record Producer: A type of catalog item that creates a record in a specific table (e.g., Incident, Change, HR Case) rather than a request item.