We are having problems with data import from text file. Now, we have error message for some columns ("Invalid data encountered while importing column... Try importing the data again, but explicitly set the Data Type of those column to Character").
To better clarify, we have JMP scrip that is used to extract bunch of data from a database. After extracting, the data are organized with parameter in columns and rows for each instance of data. These parameters are all categorical, but there are many numerical (and many are formatted as Date). Some years ago, we asked help to improve the performance (time) to convert all columns to the appropriate data type (using Jmp script took a lot of time because of thousands of columns).
Jim Nelson suggested to save the table as text file and then open again. This worked fine, improving the performances excellently, converting in numeric all columns and maintaining the date format for those that are dates.
Now, this does not work anymore, and a window alert stop the execution.
I looked into community, i tried one suggested method:
collist = dt << Get Column Names("String");
For Each({colname}, collist,
r = Column(dt, colname) << Set Data Type("Numeric", << Fail On Conversion Error, <<Return Failed Rows);
If(N Items(r) == 0,
Column(dt, colname) << Set Modeling Type("Continuous");
);
);
This is not good because of we lose Date formatting, so columns that should be dates appear in numeric format.
Could anyone suggest a workaround?