So I am using QGIS 2.18.15
If I go via the attribute table into the field calculator and use following formula it works just fine:
if( "DB_arit" IS NULL, 0, "DB_arit" )
Explanation: It searches for NULL values in the column "DB_arit" and replaces them with "0", all other values stay the same.
Now if I use the modelbuilder I get the following error:
Algorithmus Test Field calculator NULL to 0 in DB_arit startet... Bereite Algorithmus vor: QGISFIELDCALCULATOR_1 Verarbeite Field calculator Field calculator NULL to 0 in DB_arit [1/1] Parameters: INPUT_LAYER =replacedbyme.shp, FIELD_NAME =DB_arit, FIELD_TYPE =0, FIELD_LENGTH =10, FIELD_PRECISION =2, NEW_FIELD =False, FORMULA =if("DB_arit" IS NULL, 0, "DB_arit" ) Fehlgeschlagen
Fehler in Algorithmusausführung Field calculator Field calculator NULL to 0 in DB_arit QgsFeature.setGeometry(QgsGeometry): argument 1 has unexpected type 'NoneType' See log for more details
(Don't wonder aboout "Input_Layer=", I edited it just for this post)
Can anyone explain or help?