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

10 REPLIES 10

Chris Schuh3
Tera Guru
Tera Guru

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.