on 03-26-2021 10:13 AM
Hello all,
I stumbled today that a Calculated Column in a Calculation View wants to convert a null value return to integer.
Can someone explain this to me?
Example: If I define a field as NVARCHAR and determine the field contents via if statement, in some cases a null value should be returned and not an empty string or similar.
However, the activation fails because there is a data type conversion problem. HANA wants to convert NULL to an integer and the Calculated Column is defined as NVARCHAR.
How to understand this? Null represents the absence of a value, so how can it be an integer?
I solved the problem by converting NULL to string.
So the code in calculated column looks like:
if("..." = '01', "...", string(Null))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.