Troubleshooting bindings¶
Here you can find the error messages which the Binding Editor displays when there is an error in a binding. See Bindings expressions reference.
Error |
Problem |
Solution |
---|---|---|
Cannot parse the binding expression because of a syntax error |
Kanzi cannot parse the binding expression you entered in the Binding Editor because it contains a syntax error. For example, in this binding expression the parameters of a function are not separated by a comma: |
The |
Assign a value to the identifier before you use it |
The binding expression contains a variable which does not have an assigned value. For example, in this binding expression the variable |
Assign a value for the variable |
Invalid argument |
A function in the binding expression has too many parameters. For example, in this binding expression the |
The |
Invalid argument data type for the operation |
A function parameter in the binding expression has an unsupported data type. For example, in this binding expression the |
The |
The attribute is not a valid property field of the property |
A property in the binding expression is using an invalid property field. For example, in this binding Translation is not a defined property field of the Layout Transformation property: |
Use the Translation X, Translation Y, or Translation Z property field of the Layout Transformation property. |
Invalid result data type |
The function in the binding expression returns a data type which does not match the data type of the target property. For example, in this binding the |
In the Binding Editor set:
|
Operation is not a valid binding operation |
The function in the binding expression does not exist. For example, there is no function |
Use an existing function. See Bindings expressions reference. |
Set the target property type |
The target property type for the binding is not defined. For example, in this binding the target property is not set: |
In the Binding Editor set the Property to the property to which you want to bind. For example, set it to Text. |
Cannot find item |
The binding tries to refer to a node or property type in the project but cannot find that node or property type. For example, in this binding the relative path to the Slider 3D node is not correct: |
Make sure that the relative path to the node or property type points to the correct place. Tip When you use the @ sign in a binding expression before the path to a node, Kanzi Studio:
With the @ sign you can create bindings only within the same prefab, not between prefabs. |
Cannot use target property in the binding expression |
A binding expression, which tries to modify the current value of a property, uses the target property. For example, these binding expressions try to modify the values of the Layout Width and Render Transformation properties of the node: |
In a binding expression that modifies the current value of a target property use the |