I am looking for a way to use the Processing modeler to add a date field to an output dataset in QGIS 2.6.1
I have tried using the field calculator algorithm without success. (Also the advanced python field calculator without success).
I have a vector layer and I add a field calculator algorithm and set the field type to Date, field length to 30, precision to 0, create new field and set the formula to $now I have also tried datetime.date.today()
The error I get is;
Prepare algorithm 0: Field calculator Running Field calculator [1/1] Parameters: INPUT_LAYER =C:/Users/lee/Desktop/TEMP/test.shp, FIELD_NAME =loadDate, FIELD_TYPE =3, FIELD_LENGTH =30, FIELD_PRECISION =0, NEW_FIELD =True, FORMULA =$now Failed Error executing algorithm 0 underlying C/C++ object has been deleted
(I am looking to automate the process of adding a 'loadDate' field to features so that users know when a feature was loaded into a postgis table. I want to repeat it over a number of layers, and do it on a regular basis hence the use of the modeler).