Error: com.glide.script.fencing.ScopedGlideRecord cannot be cast to com.glide.script.fencing.ScopedGlideElement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2021 08:57 AM
When i try to update a record from flow designer, am getting below error.
Error: com.glide.script.fencing.ScopedGlideRecord cannot be cast to com.glide.script.fencing.ScopedGlideElement
I am using flow designer in scoped app, and also updating the record which is in same scoped app
- Labels:
-
Scoped App Development
- 5,950 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 03:41 AM
Hello @Community Alums ,
For my case, my action was taking a parameter with a reference type, when it's used in the script I got the error mentioned but when I changed the type of the parameter to a string (which will contain the sys id of my record) it worked fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 04:59 AM
My action is taking parameter of type string.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 06:44 AM
Hello I had the same error on a Script step of scoped flow Action.
Here's an extract of the script that raised this error :
Here the ctask parameter type is Reference (to table Catalog task)
To resolve this I had to change the last line to explicitly use the sys_id :
I hope this can help, I think this is a difference between the scoped and global version of the GlideRecord API.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2024 02:11 AM
Thanks, it helped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2025 05:42 AM
Review the table access properties, such as permissions for reading, writing, and updating. If the table is limited by a specific scope, then the script include utilized in the flow must be set to global.