not able to trigger catalog client script

rajtiwari02
Tera Contributor

No value present: java.util.NoSuchElementException: No value present: java.base/java.util.Optional.get(Optional.java:143)

com.glide.ui.ng.app.AppResources$RecordAcl.ifCanRead(AppResources.java:396)

com.glide.ui.ng.NGUserProcessor.process(NGUserProcessor.java:103)

com.glide.ui.ng.AngularProcessor.process0(AngularProcessor.java:257)

com.glide.ui.ng.AngularProcessor.process(AngularProcessor.java:190)

com.glide.processors.AProcessor.runProcessor(AProcessor.java:759)

com.glide.processors.AProcessor.processTransaction(AProcessor.java:313)

com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:187)

com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:175)

com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:58)

com.glide.sys.Transaction.run(Transaction.java:2734)

com.glide.ui.HTTPTransaction.run(HTTPTransaction.java:35)

java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

java.base/java.lang.Thread.run(Thread.java:840)

 

rajtiwari02_0-1742593419946.png

 

 

 

I'm getting this error while refreshing catalog form in my DEV instance. How to resolve this error? and I have written client script for the catalog item but it's not triggering. Is above error could be reason if yes how to overcome. I have checked in PDI, client script is not causing any error and producing required result. 

Thanks in advance!

10 REPLIES 10

Shivalika
Mega Sage

Hello @rajtiwari02 

 

It's because in your catalog client script you are trying to fetch a value that is not there. You need to first check if the value exists. 

 

Please share the catalog client script. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Ankur Bawiskar
Tera Patron
Tera Patron

@rajtiwari02 

without sharing the client script and the screenshot of client script config, can't help

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

rajtiwari02
Tera Contributor

Hi everyone thanks for the reply. But I don't think it's because of the catalog client script since the error is coming even when the script is active false.

@rajtiwari02 

that error you showed doesn't relate to client script and it's a system log

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader