We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Reed M.2
10 years agoNew member | Level 1
Polling for metadata changes results in conflict files
I'm using the Dropbox Ruby api to download the metadata for a specific file every five minutes. When I see the file's revision change:
file_metadata = client.metadata(SOME_FILE_PATH)
current_revision = file_metadata['revision']
I download the file, parse it, and then do something with that data.
My issue is that if other people have that document open while I perform the above we end up with a bunch of "conflict" documents (i.e. Dropbox creates copies of the original document).
I don't understand why this is happening since I am not modifying the document - all I do is download it. Am I missing something obvious?
Thanks in advance!
1 Reply
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
That would certainly be unexpected from the metadata call. Are you making any other API calls around the same time?
Also, are you sure this only happens when you're making this metadata call? Is it possible the people with the file are (perhaps not intentionally) saving new versions and causing the conflicts, unrelated to the API use?
Conflicted copies can also occur when a file is left open on another computer, especially when using applications with an auto-save feature. Closing the file from within the application on either computer should prevent further conflicts.
For more information on conflicted copies, see the Help Center article here:
https://www.dropbox.com/help/36
One good thing to check would be the version history for the file(s) in question to see who and what client made the new versions:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 3 days ago
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 or Facebook.
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!