You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Avielos's avatar
Avielos
New member | Level 2
2 years ago

File lock

Hi,

 

We Created an Dropbox App that is installed in my clients dropbox.

They are assigned to my app.

this app is creating a csv file inside some directory that is automatically created.

This folder in shared amond other users with edit permisions.

My App needs to write to this csv file, but I get the following error on my server:

 

ApiError('f9ee5a51cff24e56b5bcfe2db75e39fb', UploadError('path', UploadWriteFailed(reason=WriteError('conflict', WriteConflictError('file', None)), 

 

Do you know what is the conflict? why it happens?

The csv file is not locked (I don't see the lock icon) but still I see that the options for 'delete' & rename are greyed out. 

 

Thanks,

Aviel

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi Avielos,

    The error, you received, is clear enough (oh.. can be more clear of course, but...). Different scenarios may lead to such result. The most typical one is when upload mode is update, but file revision doesn't match. If so, trace where you have lost the actual revision. Other way, leading to the same result, may be usage meaningless of strictness. If set, even missing file is conflict when existing file is expected (normally the new file is wrote when there is no other). Check your code for a scenario like described or something similar.

    Hope this gives direction.

    • Avielos1's avatar
      Avielos1
      New member | Level 2

      Hi,

       

      what do you mean exactly 'usage meaningless of strictness'? where do I configure the strictness?

      BTW, our upload mode is overwrite.

       

      Thanks,

      Aviel.

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        Avielos1 wrote:

        ...

        what do you mean exactly 'usage meaningless of strictness'? where do I configure the strictness?

        ...


        There is a strictConflict parameter in upload, for instance. Similar for the other upload methods. Default parameter values are fine usually; if needed to change some parameter, just take care.

        Hope this helps.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Avielos When uploading a file, a 'path/conflict/file' error like this indicates that the upload failed because there was already a file at the specified path. That can occur whether or not the file is "locked". You can find more information about this particular error, as well as the others, in the documentation. You can find that here for the /2/files/upload endpoint itself, which is what the SDKs use as well. (It looks like you're using the Python SDK, so you can also find the Python SDK documentation here.)

     

    As Здравко mentioned, you can control the conflict behaviors using the parameters, such as mode, autorename, and strict_conflict. Refer to the documentation linked above for information on those.