could you please help me to import this TXT file into ArcMap.My trials are ending with the error message
I do not knwo what is wrong with this file.
Thank you in advance
Try to use Make XY Event Layer—Help | ArcGIS Desktop
or ADD X Y data Adding x,y coordinate data as a layer—Help | ArcGIS Desktop
Presumably you made this in some other program like Excel.
You would be advised to save it as a comma-separated values file rather than space-delimited. you should then be able to add it as an Event Layer.
Also, make sure there are no blank lines at the end of the file.
Dear Dan,in my file there are no blank lines. Moreover, although I save the file as a comma-separated file, I still can not create an Event Layer, because there are no values to be chosen as X and Y
Here I attach the file again.
ob11_92.txt - Google Drive
I would be grateful if you could help me solve this problem.
works in 10.6 and pro
I will attach a shapefile
Yes, I know, but why it doesn't work in 9.3.1?
During the year many enhancements may have been implemented in the software. We are currently at version 10.6 and 9.3.1 was retired more than 4 years ago. In case you can, please update. In case you can't use, the data processed and offered to you. In case you have a lot of file to process, maybe a script can be written to help you process the files.
9.3.1? Esri retired 9.3.1 software 3+ years ago. I realize it still may "work" for you, but it is very difficult for people on GeoNet to troubleshoot, let alone explain, software that old.
What version of ArcMap are you using? And when you say, " import this TXT file into ArcMap," how exactly are you trying to import it?
I am running ArcMap 10.6, and I have no problem loading the file using "Add Data..." in the menu.
I am using ArcGIS 9.3.1 and I am trying to import this file by Tools->Add XY Data
Yes, I can see, but my problem still remains unsolved. Could you please help me with my file?
You are adding it wrong...
go to the File menu, select Add Data, Add XY data or equivalent for your version of the software. You are trying to make an event layer, but you have to get the data in first and the approach I suggested is the quickest
I can nopt do this, because as I choose the file, there is nothing on the lists for X and Y Field
no clue.. either the file doesn't work on your machine, or your machine has issues.
Here is a copy, try it. If that doesn't work, I am out of ideas, except to suggest trying it on another machine
maybe a new name will do it
Thank you for your suggestions. I will try it on another machine.
Just on the off chance... you didn't have the file stored on the Desktop did you? or a USB drive?
I have seen situations where files not stored in a real folder cause issues
What Dan is getting at is that paths containing spaces do not work in ArcGIS (esp older versions). In Windows XP all user data (Desktop, My Documents, etc) folders are in C:\Documents and Settings which would often break ArcGIS!
For this reason Dan and I (and others) strongly encourage users to put their data somewhere else, for example C:\gisclass\mydata, not on the Desktop or in the user documents folder.
If the above mentioned does not work for you, can you try bring the data in excel and then see if it works?
My doubt is that ArcGIS desktop is not able to consider the Latitude (Y) and Longitude (X) fields as a double type. Ideally, ArcGIS desktop reads the first 8 rows of the table and assigns/decides the field types.
You may simply copy the data from the text file and paste it in MS Excel and use the Text to Column option to create a properly formatted excel and use that to plot the point data.
I hope this helps!
Shantonu, the file attachments that I posted were brought into excel for a check. It was fine. I managed to make the csv from it and brought it in to arcmap and pro as an event layer then I ultimately saved it as a shapefile. So it isn't the data, it is his machine/installation
Dan Patterson, that would explain the issue and it does make sense.
Retrieving data ...