<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting &amp;quot;too_many_write_operations&amp;quot; error during file move using BeginMoveV2 and EndMoveV2 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-quot-too-many-write-operations-quot-error-during-file/m-p/648732#M29712</link>
    <description>&lt;P&gt;Below code using for file move in dropbox,&amp;nbsp;Getting "too_many_write_operations" while moving multiple files one by one, Also allowing multiple movement without completing without completing existing movement. Please suggest the synchronous way of file move without allowing multiple movement, It Should allow one by one file movement(FIFO).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var beginRes = UserInfo.Files.BeginMoveV2(arg, null, null);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var waithandle = beginRes.AsyncWaitHandle.WaitOne();&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if (waithandle)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----Log----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var EndRes = UserInfo.Files.EndMoveV2(beginRes);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var result = EndRes;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 07:22:55 GMT</pubDate>
    <dc:creator>Nataraju</dc:creator>
    <dc:date>2023-01-06T07:22:55Z</dc:date>
    <item>
      <title>Getting "too_many_write_operations" error during file move using BeginMoveV2 and EndMoveV2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-quot-too-many-write-operations-quot-error-during-file/m-p/648732#M29712</link>
      <description>&lt;P&gt;Below code using for file move in dropbox,&amp;nbsp;Getting "too_many_write_operations" while moving multiple files one by one, Also allowing multiple movement without completing without completing existing movement. Please suggest the synchronous way of file move without allowing multiple movement, It Should allow one by one file movement(FIFO).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var beginRes = UserInfo.Files.BeginMoveV2(arg, null, null);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var waithandle = beginRes.AsyncWaitHandle.WaitOne();&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if (waithandle)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----Log----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var EndRes = UserInfo.Files.EndMoveV2(beginRes);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var result = EndRes;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 07:22:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-quot-too-many-write-operations-quot-error-during-file/m-p/648732#M29712</guid>
      <dc:creator>Nataraju</dc:creator>
      <dc:date>2023-01-06T07:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting "too_many_write_operations" error during file move using BeginMoveV2 and EndMo</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-quot-too-many-write-operations-quot-error-during-file/m-p/648806#M29713</link>
      <description>&lt;DIV id="bodyDisplay_0" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;If there are multiple changes at the same time in the same account or shared folder, you can run in to this 'too_many_write_operations' error, which is "lock contention". That's not explicit rate limiting and can't be increased or removed; it's a result of how Dropbox works on the back-end. This is a technical inability to make a modification in the account or shared folder at the time of the API call. This applies to all account types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This error indicates that there was simultaneous activity in the account or shared/team folder preventing your app from making the state-modifying call (e.g., adding, editing, moving, copying, sharing, or deleting files/folders) it is attempting. The simultaneous activity could be coming from your app itself, or elsewhere, e.g., from the user's desktop client. It can come from the same user, or another member of a shared folder. You can find &lt;A href="https://developers.dropbox.com/dbx-performance-guide" target="_blank" rel="noopener noreferrer"&gt;more information about lock contention and optimizations you can make here&lt;/A&gt;. The app will need to be written to automatically handle this error.&lt;BR /&gt;&lt;BR /&gt;In short, to avoid this error, you should avoid making multiple concurrent state modifications and use batch endpoints where possible, such as &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Files.Routes.FilesUserRoutes.html#Dropbox_Api_Files_Routes_FilesUserRoutes_BeginMoveBatch_Dropbox_Api_Files_RelocationBatchArg_System_AsyncCallback_System_Object_" target="_blank"&gt;MoveBatch&lt;/A&gt;. That won't guarantee that you won't run in to this error though, as contention can still come from other sources, so you should also implement error handling and automatic retrying as needed.&lt;BR /&gt;&lt;BR /&gt;I recommend referring to the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#error-handling" target="_blank" rel="noopener noreferrer"&gt;error documentation&lt;/A&gt; and &lt;A href="https://developers.dropbox.com/error-handling-guide" target="_blank" rel="noopener noreferrer"&gt;Error Handling Guide&lt;/A&gt; for more information.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Jan 2023 13:19:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-quot-too-many-write-operations-quot-error-during-file/m-p/648806#M29713</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-01-06T13:19:01Z</dc:date>
    </item>
  </channel>
</rss>

