I have a field calculator processor for converting x,y-fields to geometries. The expression is: '{' + ' "x":' + POINT_X + ',' + ' "y":' + POINT_Y + ',' + ' "spatialReference":{"wkid":3021} }'
However for some GeoEvents the x,y values are null and and error is thrown in the log, see below.
How can I convert the null values to 0.0?
Preferably all events would have a position, but they don't, and I get so many errors in the log that other important information is hard to find, so it would be better to change the null values to 0.0.
Expression ['{' + ' "x":' + POINT_X + ',' + ' "y":' + POINT_Y + ',' + ' "spatialReference":{"wkid":3021} }'] evaluation failed: operator+(arg0:[NonGroup], arg1:[NonGroup]) evaluation failed because of GeoEvent field 'POINT_X' of type [Double] and value 'null' cannot be used as an argument arg1:[NonGroup]