Is This Content Helpful?
We're glad to know this article was helpful.
Republishing a feature class to ArcGIS Online, including the GDB_ServiceItems table, and exporting the republished feature service as a file geodatabase (FGDB, or filegdb) returns the following error:
Error: Error exporting data to filegdb format
This is a known issue. When downloading a FGDB from ArcGIS Online, a table named GDB_ServiceItems is included in the downloaded FGDB as the database is created within runtime. When the feature class in the FGDB is brought to ArcMap or ArcGIS Pro, the GDB_ServiceItems table is included in the dataset. The error occurs due to the duplicate naming convention for the GDB_ServiceItems table, as the table already exists in the republished feature service.
The GDB_ServiceItems table is listed in the Tables section on the item details page of the republished feature service.
Use one of the options available below to solve this error.
Removing or deleting the GDB_ServiceItems table permanently in ArcMap or ArcGIS Pro before republishing the feature layer avoids the duplication of the GDB_ServiceItems table when exporting the republished feature service to the FGDB format for the second time.
To remove the GDB_ServiceItems table, open the downloaded FGDB in ArcMap or ArcGIS Pro, and remove the table from the Table Of Contents window in ArcMap (the Contents window in ArcGIS Pro.)
To delete the GDB_ServiceItems table from the downloaded FGDB in ArcMap, use the following workflow:
To delete the GDB_ServiceItems table from the downloaded FGDB in ArcGIS Pro, use the following workflow:
The name for the GDB_ServiceItems table is created by default when exporting a feature service to the FGDB format. Renaming the existing table at the REST endpoint to a name other than the default name prevents a new table with the same default name to be created when exporting the feature service to the FGDB format.
Once the feature service is republished to ArcGIS Online, use the following workflow to rename the GDB_ServiceItems table in the REST page.
Add the feature service from the ArcGIS Online FGDB directly in ArcMap or ArcGIS Pro without the GDB_ServiceItems table, and export the feature service to a new FGDB before editing and republishing it to ArcGIS Online.
Use the workflow in the following document to export the feature service to a FGDB feature class in ArcMap: How To: Export a feature service to a file geodatabase feature class in ArcMap.
Use the following workflow to export the feature service to a FGDB feature class in ArcGIS Pro:
Note: Users must be signed in to ArcGIS Online to access the data.
Note: An ArcGIS Pro project has a default geodatabase that stores the data in the project. The default geodatabase can also be used to store the exported feature classes.