Unhandled exception in GlideAjax, Record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 10:39 AM
Hello folks!
I am working on an Legal service delivery project where we have a Record producer, where the first option is "Create new / Update existing". When "Update" is selected, a reference type field is displayed, where you can choose the user's requests that already exist.
The problem is that when I select any of the existing ones, I get this error message "There is a JavaScript error in your browser console"
When inspecting the form, in the console I find this:
And when I click on the blue reference, it sends me to the code block where the error message is displayed:
But I honestly have no idea what could be causing this malfunction with GlideAjax.
Any help is welcome, thank you very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 11:00 AM
You will need to identify the catalog client script in the catalog item that is using GlideAjax.
If you are using Vancouver, try using Next Experience Developer Tools release notes to troubleshoot.
Regards,
Sharad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 09:52 PM
Hi @Aram Sosa
It's because a certain line being invalid in your codes (client script and Ajax script include) that interrupt the function works completely.
You could try to implement a try-catch block to pinpoint the exact location of the problem.
Or feel free to share your script here, and we can assist in reviewing it.
Cheers,
Tai Vu