Legacy Dev Forum Posts

 View Only

Sign Up

Script Bridge Action error when writing result to dynamic string variable

  • 1.  Script Bridge Action error when writing result to dynamic string variable

    Posted 06-05-2025 18:40

    dnivelad | 2017-02-24 15:03:34 UTC | #1

    I have a Bridge Action call that is invoked through a button click in a Callback Script. The action returns a string that when set on a basic string variable works fine upon calling the action. If set on a dynamic string variable the call gives the error message below:

    Bridge action failed with an unexpected error Error: Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.


    Frederick_Joshua | 2017-02-24 15:42:00 UTC | #2

    Hi,

    Dynamic variables are read only so you cannot assign value to them. So if you want to data back from the bridge action and into a variable you need to use a normal script variable. You should not be able to assign a dynamic variable to the output from a bridge action. If so we need to fix this. If you want to use a dynamic then you can have the dynamic pull in the normal variable. I hope this helps with your question.

    Josh


    dnivelad | 2017-02-24 16:02:59 UTC | #3

    Ok thanks for the quick reply. Read a bit about dynamic and input/output variables now and things make a bit more sense now. However I could assign the result of a bridge action to a dynamic variable in the script editor so I guess you need to fix this as the UI error message only states unknown error when the assign fails.


    Frederick_Joshua | 2017-03-07 18:49:54 UTC | #4

    Thanks for letting us know this I will put a issue on the ticketing board we have to get this clean up in the editor.


    system | 2017-08-28 19:32:23 UTC | #5


    This post was migrated from the old Developer Forum.

    ref: 969