[AFS] mandatory field is cleared on insert
I am having a problem about AFS.
I use stpapi.put.field() to put values into the mandatory fields.
After that, I use stpapi.insert() to insert the record.
I normally do something like this and all the works I have done can perform just fine.
However, this session (tfacr1110s000) doesn't.
After running the AFS code, it gives error pointing that a mandatory field is missing even though I just put it in before the insert line.
After a while of investigating, I suspect that this stpapi.insert() clears the field itself and then gives error because it cannot insert since the field (it just cleared) is empty. I think because a field here has a default value for the field to be empty and it overwrites after the AFS had just finished its script.
Am I misunderstanding anything?
If not, is there a solution for this issue?
Thanks in advance.