When saving files in ArtiosCAD, some of them return with the error: "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value".
Symptoms
When saving files in ArtiosCAD, some of them give the following error: "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value".
Solution
In case all clients report the error:
Logon to the SQL database.
Go to Security > Logins > Programmer.
Double-click to see the Properties.
Check if the default language is set to English. If this is not the case, change to English. If the language had been changed to another language than English, the date format would be interpreted in a wrong way. For e.g., a file with a revision date 2014-06-13 would return an error because '13' would be considered as a month, which can only be in the range 1 to 12.
Close the windows in the SQL database, log out and then save the file again.
In ArtiosCAD, open one of the files that caused the error.
Click Save. This will open the database dialog.
Click OK.
You should not get the error anymore on the client.
In case several clients point to the same database server but not all clients have the above mentioned error:
On the concerned client(s):
Go to Control Panel > Administrative tools > Data Sources (ODBC) or Data Sources 32 bit (in case of a 64bit OS) > System DSN.
Select ArtiosCAD > Configure. Go through the next steps until you get to the window shown below.
Make sure you enable the Change the language of SQL server system messagesto: check box in case 'English' is not the selected language.
Change to English and keep the toggle on.
Click the Finish button.
In the ArtiosCAD, open one of the files that caused the error.
Click Save. This will open the database dialog.
Click OK.
You should not get the error anymore on the client.