Datatable default value 0 on number fields and bolean columns

Hello!I checked with the bot for that question and I am not sure if I am the only one experiencing it.

So when I use the datatable node, update row, I get a default value 0 on number fields.
If I deleate the 0 it comes back when I refresh the page.

I have to pull the latest table, and use a code node with the new data to rewrite over, otherwise the data in place is written over by 0. Is it normal behavior?

I just updated to 2.7.5, self hosted.

If you don’t want it to write/update the number field with 0, just remove it:

Have you tried this?

Hello Mohamed, thank you for the reply. If I deleate it, after a publish or a page refresh, it comes back with the same default value.

My solution is to replace them with text fields

I don’t think you need to do that,
The idea is simply that the workflow isn’t being saved properly:

I see, this happens if the workflow isn’t saved,
From my experience, you need to make any small additional change, like moving the node slightly, so that auto-save is triggered and the settings are saved..

Yes, everything should work correctly once the workflow is saved..

1 Like

Ok it work.
I have to put the node, delete the field I don’t want to update, make sure the auto update get triggered, then the field don’t appear anymore.
If I update the workflow before an auto-save, it stays.
Thanks a bunch for your help!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.