Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CSV Data Link - Date is ########

10 REPLIES 10
Reply
Message 1 of 11
tim.mcc
778 Views, 10 Replies

CSV Data Link - Date is ########

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?

10 REPLIES 10
Message 2 of 11
Valentin-WSP
in reply to: tim.mcc

@tim.mcc ,

 

Consider posting the drawing.

 

Also, see if changing the table width in your Properties helps.

ValentinWSP_0-1698145056541.png

 



Please select the "Accept as Solution" button if my post solves your issue or answers your question.


Emilio Valentin
Message 3 of 11
tim.mcc
in reply to: Valentin-WSP

@Valentin-WSP  I attached the dwg, but it won't let me upload the CSV file. Here is what it looks like:

 

CSV_Data.png

 

 

 

 

 

 

Tried increasing the table width too. The column should have plenty of space to display the date.

 

table width.png

Message 4 of 11
Valentin-WSP
in reply to: tim.mcc

@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.

 

ValentinWSP_0-1698156660705.png

 

ValentinWSP_1-1698156695234.png

 



Please select the "Accept as Solution" button if my post solves your issue or answers your question.


Emilio Valentin
Message 5 of 11
pendean
in reply to: tim.mcc


@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.

Message 6 of 11
TheCADnoob
in reply to: tim.mcc

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. 

TheCADnoob_0-1698160361244.png

 

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

EESignature

Message 7 of 11
tim.mcc
in reply to: TheCADnoob

@TheCADnoob  I was able to get 2 conditions to work:

 

1. Single month + Single Day

2. Using periods instead of /

 

2 conditions.png

Message 8 of 11
TheCADnoob
in reply to: tim.mcc

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

EESignature

Message 9 of 11
tim.mcc
in reply to: TheCADnoob

I'm running AutoCAD 2023
Message 10 of 11
tim.mcc
in reply to: Valentin-WSP

@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 !)

Message 11 of 11
TheCADnoob
in reply to: tim.mcc


@tim.mcc wrote:
I'm running AutoCAD 2023

I verified the behavior on something newer than 2023 as well as 2021 (cant get csv in web based AutoCAD)

CADnoob

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report