<?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 Re: Webgisdr Backup Error: &amp;quot;Export operation failed. String index out of range: -1&amp;quot; in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/webgisdr-backup-error-quot-export-operation-failed/m-p/1127490#M32064</link>
    <description>&lt;P&gt;We have also started getting the same error but the site contains a lot of services, so is there a way to narrow down the services causing the issue?&lt;/P&gt;&lt;P&gt;{"code":500,"messages":["Export operation failed. Method argument cannot be null."],"status":"error"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Dec 2021 23:29:52 GMT</pubDate>
    <dc:creator>DeanHowell1</dc:creator>
    <dc:date>2021-12-19T23:29:52Z</dc:date>
    <item>
      <title>Webgisdr Backup Error: "Export operation failed. String index out of range: -1"</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/webgisdr-backup-error-quot-export-operation-failed/m-p/599950#M23138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are planning to &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-enterprise/administration/migrate-to-a-new-machine-in-arcgis-enterprise-two/"&gt;migrate &lt;/A&gt;our ArcGIS Enterprise to new machines using webgisdr utility.&lt;/P&gt;&lt;P&gt;Our Portal datastore and web Adaptore are installed in one machine while ArcGIS Server is installed in another machine (Linux VMs).&lt;/P&gt;&lt;P&gt;After filling the necessary parameters we run the&amp;nbsp; webgisdr&amp;nbsp; tool and we are having the following error message, which I found to be not informative:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;==================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;Starting the WebGIS DR utility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;==================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;The configuration and base backup time in the current Web GIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;-------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt; Portal: https://xxxxx/portal at 24.10.19 08:03&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt; | --&amp;nbsp;&amp;nbsp; Hosting Server: https://xxxxx/arcgis at 24.10.19 08:03&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt; | &amp;nbsp; &amp;nbsp;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |-- Relational Data Store: https://xxxxxxx.com:2443/arcgis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;Starting the backup process with the WebGIS DR utility.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;Starting the backup for Portal for ArcGIS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;Url: https://xxx.com/portal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;Starting the backup for ArcGIS Server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;Url: https://xxxxx/arcgis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;Starting the backup for ArcGIS Data Store:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;Url: https://xxxx:2443/arcgis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;STRONG&gt;Failed to back up the ArcGIS Server&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;Url: https://xxxx/arcgis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; font-size: 11px;"&gt;{"code":500,"messages":["Export operation failed. String index out of range: -1"],"status":"error"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;The following ArcGIS Data Store has been backed up &lt;SPAN style="color: #00ff00;"&gt;successfully&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;Url: https://xxxx:2443/arcgis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;The backup of ArcGIS Data Store has completed in 00hr:01min:20sec.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;The following Portal for ArcGIS has been backed up &lt;SPAN style="color: #00ff00;"&gt;successfully&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;Url: https://xxxxx/portal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;The backup of Portal for ArcGIS has completed in 00hr:05min:57sec.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;The backup of Web GIS components has completed in 00hr:06min:32sec.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SHARED_LOCATION and BACKUP_LOCATION is a network directory. &lt;/P&gt;&lt;P&gt;I change the log to debug to get more details but couldn't find any hint.&lt;/P&gt;&lt;P&gt;The same error is generated when we try to use the exportSite tool in Server admin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/467657_pastedImage_104.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been roaming around to understand what this "string index out of range: -1"&amp;nbsp; is implying to no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mehretab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/webgisdr-backup-error-quot-export-operation-failed/m-p/599950#M23138</guid>
      <dc:creator>Mehretab</dc:creator>
      <dc:date>2019-10-24T12:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Webgisdr Backup Error: "Export operation failed. String index out of range: -1"</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/webgisdr-backup-error-quot-export-operation-failed/m-p/599951#M23139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those types of errors are challenging to troubleshoot without Supports help. You can try again with server logging DEBUG logs but you may want to reach out to Support for further assistance. If you do, have them log a bug to improve on that error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 21:31:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/webgisdr-backup-error-quot-export-operation-failed/m-p/599951#M23139</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-10-31T21:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Webgisdr Backup Error: "Export operation failed. String index out of range: -1"</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/webgisdr-backup-error-quot-export-operation-failed/m-p/599952#M23140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After several months of testing and trying to figure out the problem Esri Support finally&amp;nbsp; got the source of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;We were able to test the whole configuration you have and have determined the issue to be with your existing services and the FolderInfo.json file stored in the folder containing the service. If either one of the two are deleted the export site function works correctly. This causes us to believe that there is an issue with them existing together.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;However, if we publish a new service to ArcGIS Server, using an mxd of the existing service, the export site function works fine. Would it be possible for the user to republish his services so as to regenerate all the FolderInfo.json files and then attempt to backup the site?&lt;/EM&gt;"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;The FolderInfo.json file they are referring is the file in /config-store/services/&amp;lt;folder containing the service&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The file contains one line of code, information about the folder name and a few more information.&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"folderName"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"yourFolderName"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"description"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"None"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"webEncrypted"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"isDefault"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Deleting the FolderInfo.json would make the folder containing the services invisible in ArcGIS manager or any client interface. The worst thing is, the Webgisdr Backup tool completes successfully, but it will exclude the services in the hidden folders. Basically there will be no content in the backup.&lt;/P&gt;&lt;P&gt;The only way going forward was to republish all the services and generate a new FolderInfo.json.&lt;/P&gt;&lt;P&gt;Weird though, this small file will cause such inconvenience in ArcGIS Enterprise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 10:06:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/webgisdr-backup-error-quot-export-operation-failed/m-p/599952#M23140</guid>
      <dc:creator>Mehretab</dc:creator>
      <dc:date>2020-07-09T10:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Webgisdr Backup Error: "Export operation failed. String index out of range: -1"</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/webgisdr-backup-error-quot-export-operation-failed/m-p/1127490#M32064</link>
      <description>&lt;P&gt;We have also started getting the same error but the site contains a lot of services, so is there a way to narrow down the services causing the issue?&lt;/P&gt;&lt;P&gt;{"code":500,"messages":["Export operation failed. Method argument cannot be null."],"status":"error"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 23:29:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/webgisdr-backup-error-quot-export-operation-failed/m-p/1127490#M32064</guid>
      <dc:creator>DeanHowell1</dc:creator>
      <dc:date>2021-12-19T23:29:52Z</dc:date>
    </item>
  </channel>
</rss>

