not able to trigger catalog client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2025 02:44 PM
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)
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2025 08:51 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2025 09:15 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2025 10:07 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2025 01:01 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader