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,956 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2025 12:30 PM
I was able to resolve this for my use case (trying to insert a new Translated Text [sys_translated_text] record from Scoped Application) by creating a Script Include in the Global Scope and then from my Scoped Application, calling the Script Include and the function I wrote that executes the logic needed, but just from the Global Scope.
In this case, the function in the Global Scope Script Include inserts a new record into the Translated Text [sys_translated_text] table. I did not want to make any table modifications to the Translated Text [sys_translated_text] table, so this preserved those table configurations and still delivered the outcomes I was seeking.