Problem: File geodatabase appears as a folder in ArcMap
In some cases, the contents of a file geodatabase cannot be viewed in ArcMap/ArcCatalog because the database appears as folder rather than a geodatabase.
This problem may occur when a file geodatabase is received from someone else, the file geodatabase is copied to a different location, or the file geodatabase is corrupted.
A file geodatabase is stored as a folder of files, and ArcGIS identifies a file geodatabase based on the following three criteria which, if not met, causes the file geodatabase to appear as a folder in ArcMap.
- a file named gdb must be present in the file geodatabase folder
- a file named timestamps must be present in the file geodatabase folder
- the file geodatabase folder name must include the .gdb extension
Note: The gdb and timestamps files must be present in the file geodatabase folder
Solution or Workaround
A. Copy or create a gdb and timestamps file
- If the gdb or the timestamps file (or both) are missing, copy the file(s) from an existing file geodatabase, and paste them in the corrupt file geodatabase.
- Open an existing file geodatabase in Windows Explorer. Select the gdb or the timestamps file (or both), and right-click > Copy.
- Paste the copied gdb and timestamps files in the file geodatabase which does not contain the gdb and timestamps files.
- Create the gdb or timestamps file (or both) in the corrupt file geodatabase folder.
- Open a text editor, such as Notepad. Do not type anything into the document.
- Save the document with the name 'gdb' in the corrupt file geodatabase folder that is missing the gdb file.
Note: Do not save it with the .txt extension.
- Repeat Steps 1 and 2 to create a timestamps file in the corrupt file geodatabase folder.
- In ArcMap, create a new file geodatabase in the Catalog window. For more information on how to create a file geodatabase, refer to the Related Information section.
- Open the corrupted file geodatabase in Windows Explorer, select all the content in the folder, right-click the content, and select Send to > Compressed (zipped) folder.
- Right-click the zipped file, and select Extract All.
- In the Extract Compressed (Zipped) Folders dialog box, browse to the newly created file geodatabase in ArcMap and click the Extract button to extract the data to the new file geodatabase.
Note: If the Copy File dialog box appears, select Copy and Replace.
- In ArcMap, right-click the new file geodatabase and select Refresh. The new file geodatabase is now ready to be used.
- ArcGIS Help: Creating a file geodatabase from the Catalog tree
- ArcGIS Help: What is a file geodatabase?
- ArcGIS Help: File geodatabases and Windows Explorer