Hi All,
Interesting issue, I’ve created a blank afterCreate event handler on a table called ‘BarCheckIn’, now suddenly the iOS app is throwing an Error ‘java.util.HashMap.setMissingProperties(java.util.Map)’ when setting a relationship on the object from another table called ‘Bar’ (Bar being the parent table).
I’ve attached the Java function:
What’s interesting is, in debug mode on code runner it runs absolutely fine, it only starts throwing the error on the app when its in production mode.
Have you seen this error before? Any suggestions?
Hello @Reece_Smith
I’ve created an internal ticket to investigate the problem, the ticket’s number is BKNDLSS-21624
Regards, Vlad
Thanks Vlad, looks like I’ve figured out exactly why it’s doing it.
I’m creating the object and then immediately adding a relation to that object from another table. Because the afterCreate function hadn’t finished processing it blocked the addRelation function on the other table.
Setting the afterCreate to non blocking fixed the issue.
The question is, is it expected behavior that the afterCreate blocks another table adding a relation to the newly created object.
Hello @Reece_Smith
Try now create object with afterCreate event handler for BarCheckIn (Bar relationship to BarCheckIn).
Please let us know about the result.
Hi Vlad,
Nice one works fine now. Thanks for fixing.