I am trying to replace the existing document with new document but I'm getting this error . I'm using the primary key of the each record as target ,I configured the update as record action, and I cannot delete the existing record because that Id is used as main request id since the record is created with document upload.
Discussion posts and replies are publicly visible
You should have 'Editor' rights to the document folder in order to do so. Can you check if your account permissions are appropriate?
I have administrator access , also gave editor access to all users.
iswaryan3520 said:using the primary key of the each record as target
What Appian version is this? Do you use the document data type in records? If yes, I think that you should use that document type field, but not the primary key of the record.
okay..I think the problem is with Target having the primary key or record. Use the document field within the record instead as target
It sounds like a permissions issue rather than a problem with your record action configuration. When replacing an existing document, the system typically checks whether your profile has “Create Version” or edit access on that specific object or file, even if you’re targeting the correct primary key. Since the record is tied to a main request ID, deletion isn’t an option, so I’d recommend reviewing object permissions, file versioning settings, and sharing rules for your user role. If possible, test with an admin profile to confirm whether it’s purely privilege-related before adjusting your flow or update logic.
iswaryan3520 said: I'm using the primary key of the each record as target
Use ri!record.documentField (the actual document ID stored in your record) as the target - not the primary key.