Arccollector Do You Loose Data if You Sign Out and Sign Back in Before You Sync
How To: Access offline edits from Collector for ArcGIS directly from an Android or iOS device
Summary
Collector for ArcGIS stores offline replicas in a SQLite database or runtime geodatabase (as .geodatabase files) before they are synchronized to the feature service. In the event the offline edits cannot be synchronized, the locally stored edits are extracted from the mobile device and converted to a file geodatabase. The instructions below describe steps to do this in Collector for ArcGIS on both the iOS and Android operating systems.
Note: These instructions are a last option to salvage data from the device. Contact Esri Technical Support for help with device information and errors.
Procedure
Recover runtime geodatabase from device
For iOS:
- Connect the iOS device to the PC, open iTunes and follow the prompts on the device.
- From the settings menu select File Sharing.
- Select Collector.
- Select the folder that corresponds to the ArcGIS Online username.
- Save the folder to a location on the local machine.
Note: In iTunes versions older than 12.7, the interface is different. Instead of selecting File Sharing (step 2), select Apps.
For Android:
- Connect the Android device to the PC.
- Browse to the ArcGIS Collector folder.
For example:
<Name of phone>\Phone\Android\data\com.esri.collector\files\<username>
- Copy the entire folder containing the .geodatabase file from the device and paste it on the local machine. Ensure a .geodatabase file is inside the folder first, as shown below:
Note: If unable to browse files using the Android device, install a file explorer application to access the data.
Working with or converting recovered data
In ArcGIS Pro
As of ArcGIS Pro 2.1, Feature Service sync is now available. Use the following steps to sync the edits recovered above:
- Recover the runtime geodatabase (based on the operating device explained above).
- Open ArcGIS Pro.
- Sign in to ArcGIS Online or Portal for ArcGIS as the user that downloaded and made the offline edits in Collector.
- In the Catalog window, navigate to the folder location of the recovered runtime geodatabase. Drag and drop to add the layer(s) to a new map view in Pro.
- On the ribbon, choose the Map tab. In the Offline group, the Sync and Remove tools should become active when a valid offline dataset is added to the map contents.
- Click Sync.
Alternatively, use the following steps to convert the runtime geodatabase to a file geodatabase:
- In ArcGIS Pro, search for the tool Export XML Workspace Document.
- In Input data, drag and drop the .geodatabase file from your device (you must drag and drop it in the white line below Input data because you won't be able to find it using the Open button).
- Choose a location for the output .xml file. Leave all other options by default.
- Once done, open the tool Import XML Workspace Document (Data Management > Distributed Geodatabase).
- In Target GDB, put the location of the geodatabase to contain all the exported data (the tool automatically creates one if it doesn't exist in the specified folder). Always use a blank GDB.
- In Import file, put the .xml file created earlier. Leave other options by default.
- You should now have a file geodatabase containing all the data
ArcMap
In ArcMap, use the runtime geodatabase recovered from the device as the input for the Copy Runtime Geodatabase to File Geodatabase Tool. The output of this tool is a file geodatabase containing any unsynchronized edits and photo attachments that can now be migrated back into the original database if necessary.
Note: The Copy Runtime Geodatabase to File Geodatabase geoprocessing tool is available at version 10.3 of ArcGIS Desktop with all license levels: Basic, Standard, or Advanced, yet all geoprocessing tools in the Attachments toolset require an ArcGIS for Desktop Standard or Advanced license.
Related Information
- How To: Access offline edits from ArcGIS Field Maps directly from an Android device
- How To: Access offline edits from ArcGIS Field Maps directly from an iOS device
- ArcGIS Blog: Collector – Disconnected editing and sync
- Collector for ArcGIS (Classic): Prepare maps for offline use
- GeoNet blog: ArcGIS Pro 2.0: Copy Runtime Geodatabase tools
- ArcGIS Pro 2.0: Copy Runtime Geodatabase tools
Last Published: 12/9/2021
Article ID: 000012460
Software: ArcGIS Collector (Android) 20.2.2, 20.2.1, 20.2.0, 20.1.0 ArcGIS GIS Server 10.3.1, 10.3, 10.2.2 ArcGIS Online Current Collector for ArcGIS (Android) 10.3.2, 10.3.1, 10.3, 10.2.7, 10.2.6, 10.2.5, 10.2.4, 10.2.3, 10.2.2 Collector for ArcGIS (iOS) 10.3.2, 10.3.1, 10.3, 10.2.7, 10.2.6, 10.2.5, 10.2.4, 10.2.3, 10.2.2 ArcGIS Pro 2.9, 2.8.3, 2.8.2, 2.8.1, 2.8, 2.7.4, 2.7.3, 2.7.2, 2.7.1, 2.7, 2.6.8, 2.6.7, 2.6.6, 2.6.5, 2.6.4, 2.6.3, 2.6.2, 2.6.1, 2.6, 2.5.2, 2.5.1, 2.5, 2.4.3, 2.4.2, 2.4.1, 2.4, 2.3.3, 2.3.2, 2.3.1, 2.3, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2, 2.1.3, 2.1.2, 2.1.1, 2.1, 2.0.1, 2.0, 1.4.1, 1.4, 1.3.1, 1.3, 1.2
Arccollector Do You Loose Data if You Sign Out and Sign Back in Before You Sync
Source: https://support.esri.com/en/technical-article/000012460