English

Error: Unable to open shape file xxx: File not found or insufficient access rights

Error Message

Attempting to convert a shapefile like this:

C:\> shp2sde -o create -l regioni2,shape -f Regioni -x 0,0,1 -u sde -p xxx -g 10000

Produces this error:

ArcSDE 8.0.2 Build 800 Fri Aug 18 11:30:47 PDT 2000
Shape to Layer Loading Administration Utility
-----------------------------------------------------
Unable to open shape file Regioni: File not found or insufficient access rights

Also, attempting to get info on the shapefile produces this:

F:\data\Shapes\sample>shpinfo -f Regioni
Unable to open Regioni: File not found or insufficient access rights

Cause

Not all the files required by the shape file exist in the specified directory, or in the current directory if none is specified. If the files do exist, their permissions do not allow you access.

Solution or Workaround

  • Make sure the shape file in question has all the necessary files in the specified directory. This includes, at minimum, *.shp, *.shx and *.dbf.
  • Make sure you have read permissions on all the files that make up the shape file.