ClosedBit error docs

CB_ERR_TYPE_MISMATCH

Value type mismatch. A value reached an operator or function that expects a different type.

Why it happens

A value reached an operator or function that expects a different type.

How to fix it

Convert explicitly, pass the right kind of value, or use the matching helper for strings, arrays, integers, or floats.

Copy-paste fix pattern
fn main() {
    string text = "42"
    u256 value = parse_u256_or(text, zero)
    save value
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.