Troubleshooting
FolderId or ParentId not correct
Situation
If you get an error message like this:
ParentId was not valid, please make sure that it is correct
or
FolderId was not valid, please make sure that it is correct
Problem & Solution
There are 3 possible issues:
- You used the old ID that looks like
640a050c4563163e4c9b1943
- you manipulated the ID yourself (e.g. decoded/encoded it) and somehwere there is a mistake
- the string you put into the ID field does not come from one of the id fields from the GraphQL API
Currently the IDs within the GraphQL API are base64 encoded global ids that follow the schema type:dbId
.
for example for a folder with the old ID 640a050c4563163e4c9b1943
you have to base64 encode the following string folder:640a050c4563163e4c9b1943
which results Zm9sZGVyOjY0MGEwNTBjNDU2MzE2M2U0YzliMTk0Mw==
Use the checker below to check your ID if it is correct.
Can't Move Folder to another Folder
Situation
If you get an error message like this:
Folder cant be moved to specified target folder.
Problem
This can have multiple reasons:
- the
folderId
ortargetFolderId
couldn't be found with the given credentials - the
folderId
andtargetFolderId
you specified are the sameId - the
folderId
is a child of thetargetFolderId
(or vice versa) and you would create a circular reference
You do not have Access on all IDs
Situation
This primarily happens in queries and mutations where you request multiple ids and at least one of them you do not have any permissions on.
Solution
To fix this, you either have to make sure that the requesting user has direct access to them, or you remove those ids from your query.