We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
mms
7 years agoHelpful | Level 6
Nil fileUrlsToBatchResultEntries response when setting template name and value to DBFILESCommitInfo
Hello there.
I am trying to set a property custom property to a file that I am uploading to User's folder with the name 'name' and value 'value', with teamplate '/templateId'. When I add the fo...
- 7 years ago
I found the solution following the source:
https://www.dropboxforum.com/t5/API-Support-Feedback/File-properties/td-p/288255
The problem was that I was trying to set the property while having a folder access only.
Cheers.
Greg-DB
Dropbox Community Moderator
7 years agoIf the file does get uploaded, fileUrlsToBatchResultEntries shouldn't be nil, so we'll be happy to help look into it. Is this is actual code you're running though, or was it edited for the post? I ask because it looks like you may be missing some curly brackets. Also, it looks like you're not using the propertyGroupArray anyway.
To begin debugging this, it may be helpful to start by just printing out all of the values given to the response block, e.g.:
NSLog(@"fileUrlsToBatchResultEntries: %@", fileUrlsToBatchResultEntries); NSLog(@"finishBatchRouteError: %@", finishBatchRouteError); NSLog(@"finishBatchRequestError: %@", finishBatchRequestError); NSLog(@"fileUrlsToRequestErrors: %@", fileUrlsToRequestErrors);
mms
7 years agoHelpful | Level 6
I found the solution following the source:
https://www.dropboxforum.com/t5/API-Support-Feedback/File-properties/td-p/288255
The problem was that I was trying to set the property while having a folder access only.
Cheers.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!