ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Recover File Geodatabase

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Recovers data from a file geodatabase that has become corrupt.

Learn more about how Recover File Geodatabase works

Usage

  • The Recover File Geodatabase tool can only recover simple feature classes and tables. Complex data and relationships will not be recovered.

Syntax

RecoverFileGDB_management (input_file_gdb, output_location, out_name)
ParameterExplanationData Type
input_file_gdb

Input corrupt file geodatabase.

Workspace
output_location

Output folder location for the recovered file geodatabase.

Folder
out_name

Name for the output file geodatabase.

String

Code sample

RecoverFileGDB example 1 (Python window)

The following Python window script demonstrates how to use the RecoverFileGDB tool in immediate mode.

arcpy.RecoverFileGDB_management('C:/fgdb/Whistler.gdb', 'C:/recoveredData', 'recoveredWhistler.gdb')
RecoverFileGDB example 2 (Stand-alone script)

The following Python window script demonstrates how to use the RecoverFileGDB in a stand alone script. This script will clean up non-useful tables.

# Name: RecoverFileGeodatabase.py
# Description: Use the RecoverFileGeodatabase tool to recover the data
#              contained in a damaged file geodatabase.

# Import system modules
import arcpy

# Set local variables
geodatabase = "C:/fgdb/Whistler.gdb"
output_location = "C:/recoveredData"
recovered_name = "recoveredWhistler.gdb"

# Process: Recover the data
arcpy.RecoverFileGDB_management(geodatabase, output_location, recovered_name)

Environments

This tool does not use any geoprocessing environments

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the File Geodatabase toolset

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal