So I discovered something that I struggled for quite some time. I was setting a field with a number, this number I was casting it to an integer just before setting to remove any decimal it might have, but it was being set always with a decimal (1.0, 2.0, etc), the field was declared as a free-form text, but apparently this is expected behaviour with numbers set on a text field. I just casted the number to a string an everything worked. So always set your field as the data is going to be stored (unfortunately I could not change the field type). Everyday you learn something haha