Problem Note 20680: "Warning: Unable to find a valid extension on DATAFILE" received when
using PROC MAPIMPORT
The following messages may be received when importing a .shp file
(shapefile) using PROC MAPIMPORT:
WARNING: Unable to find a valid extension on DATAFILE. This may
cause errors.
ERROR: Invalid file, [path to .shp file]
The problem occurs because the length of the path to the .shp file in
the DATAFILE= option is being limited to 78 characters. If the path
name is longer than 78 characters, it will be truncated.
To circumvent the problem, do one of the following:
1. Move the .shp file and any associated .dbf or .shx files to a
directory whose path is less than 78 characters (including the file name
and extension), and import the file again.
2. Define a FILENAME statement to point to the .shp file and then
reference the fileref for the DATAFILE= option in PROC MAPIMPORT. For
example:
filename test 'long_path_to_file\filename.shp';
proc mapimport out=work.mymap datafile=test;
run;
Operating System and Release Information
| SAS System | SAS/GRAPH | Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | 9.2 TS1M0 |
| Microsoft Windows NT Workstation | 9.1 TS1M3 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 | 9.2 TS1M0 |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | 9.2 TS1M0 |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | 9.2 TS1M0 |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | 9.2 TS1M0 |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | 9.2 TS1M0 |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 | 9.2 TS1M0 |
| Microsoft Windows 2000 Server | 9.1 TS1M3 | 9.2 TS1M0 |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | 9.2 TS1M0 |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | 9.2 TS1M0 |
| 64-bit Enabled Solaris | 9.1 TS1M3 | 9.2 TS1M0 |
| Linux | 9.1 TS1M3 | 9.2 TS1M0 |
| HP-UX IPF | 9.1 TS1M3 | 9.2 TS1M0 |
| Linux on Itanium | 9.1 TS1M3 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 | 9.2 TS1M0 |
| 64-bit Enabled AIX | 9.1 TS1M3 | 9.2 TS1M0 |
| OpenVMS Alpha | 9.1 TS1M3 | 9.2 TS1M0 |
| Tru64 UNIX | 9.1 TS1M3 | 9.2 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | medium |
| Topic: | SAS Reference ==> Procedures ==> MAPIMPORT Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Types ==> Maps
|
| Date Modified: | 2007-07-27 08:37:09 |
| Date Created: | 2007-07-27 08:37:09 |