Error: com.glide.script.fencing.ScopedGlideRecord cannot be cast to com.glide.script.fencing.ScopedGlideElement

ragavendranr
Tera Contributor

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

11 REPLIES 11

Girish Galla
Tera Expert

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.

Chris Schuh3
Tera Expert

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.