Uploaded PDF, got file ID: 6894dea900399c4b51d2
LOG [ExportPDF] Updating FinalReport with PDF. FinalReportId: 6894dea80038a20f0858 pdfFileId: 6894dea900399c4b51d2
LOG [ExportPDF] ERROR: [AppwriteException: Invalid relationship value. Must be either a document ID or a document, array given.] AppwriteException: Invalid relationship value. Must be either a document ID or a document, array given.
at construct (native)
PDF gets successfully created and saved in storage, but I can't seem to add it's id to my object in the database.
Very confusing error... can anyone help? Thx
TL;DR
Issue: Developer is receiving an "Invalid relationship value" error when trying to add PDF ID to object in database even though the PDF is successfully created and saved in storage.
Solution: Ensure that the PDF ID being added is a document ID or document, not an array. Double-check the type of value being passed and make necessary corrections to resolve the error.