After upgrading to Banzai we have encountered a very strange and hard to diagnose problem with File uploads from mobile apps. We have multiple mobile apps where fields are rendered as File Upload fields of type Lookup(File). So we have a Lookup to the File object and the upload creates a File record with an attached file. This mostly works. We are doing hundreds of uploads per day and most of them do work as they did before Banzai.
But a couple of uploads each day fail giving the error message “Required Field ParentId missing”. Then the file record gets created but is named with the RecordId of the same record and does not have a attachment. However there seems to be no systematic occurence of the problem. The same user can later upload within the same app and other users can upload. We can not force the problem to occur on a specific record or for a certain user or web-browser.
I assume that the missing ParentID is on the Attachement Object so the failure supposedly starts because the Attachment record is not saved properly and then that means that the file record referencing the Attachment can’t be loaded either. Maybe this can be some kind of performance or timing issue. If the creation of the Attachment record is done Asynchronously maybe that is not finished when the attempt of creating the File record is done.
However I am stuck trying to diagnose the error so I would need suggestions on how to proceed. Does anybode else have similar problems?
Question
Strange+File+Upload+problem+after+Banzai+upgrade

Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.