Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
I have a CSV data link that includes a date. The date is correct in the CSV file, but when you open with Excel, the column is too narrow and it displays as "########". For some reason, my data link is bringing in that instead of the date value "10/23/2023".
- I checked the CSV file in notepad, and the date is correct.
- I can see the date when I open it in Excel and expand the column.
- The AutoCAD column has plenty of room for the date
Is there a way to fix this so my AutoCAD table actually displays the date value?
@Valentin-WSP I attached the dwg, but it won't let me upload the CSV file. Here is what it looks like:
Tried increasing the table width too. The column should have plenty of space to display the date.
@tim.mcc ,
Paste the CSV information on notepad and save as a *.txt file. Then make sure its the same name "#SSI_Drawing_List" and change the extension from *.txt to *.csv. You should get this balloon in AutoCAD that the "Data Link Has Changed" - update and see it change.
Please select the "Accept as Solution" button if my post solves your issue or answers your question.
@tim.mcc wrote:
@Valentin-WSP I attached the dwg, but it won't let me upload the CSV file....
You can always ZIP files to share/post here too.
The more I poke at this, the more I'm confused. It almost feels like a bug, but I'm not sure where the problem lies.
For the time being, if you feed the table a formula, the problems seem to go away. So if you change your data to be a table formula ="10/10/2023" it will put that into the csv it will get you down the road.
That said, I can duplicate your problem (AutoCAD S.51.0.0 2022). What odd is that it seems like its an error when importing the data into AutoCAD. It seems like its trying to guess the datatype but fails if the month or day of the American date format is a two digit number (mm/dd/yyyy).
If you put the date 1/1/2023 does it format it properly?
CADnoob
@TheCADnoob I was able to get 2 conditions to work:
1. Single month + Single Day
2. Using periods instead of /
Using periods might be the easiest work around.
What version of AutoCAD are you using?
I'm going to have to try this on another version of AutoCAD and see if it makes a difference.
CADnoob
@Valentin-WSP Doing a SaveAs to .txt and then renaming the extension back to .csv worked with a small test file.
It did not work for the production file unfortunately.
Attached is a zip file with the dwg and linked csv (Thanks @pendean !)
Can't find what you're looking for? Ask the community or share your knowledge.