Forum Discussion
DataFormat.Error: We couldn't parse the input provided as a DateTime value.
- 9 years ago
After playing with your text file for 15 mins, I have found that there are some extra space at the front of your date column. Can you please remove those extra characters.
Steps to follow afterwards:
1. Split the column by 11 characters. This will separate Date and Time
2. Split the Date column by "/" Delimiter
3. Change the data type of the newly created columns to Whole number
4. Bring the Day column first by dragging, Month column second and Year column last
5. Select all these three collumns and go to Add column Tab, Select Merge Columns and in Merge dialog, Select "/"Separator.
6. Change the data type of the merged column to Date.
So many steps .....
I faced the same issue. I went back & checked my data sets, I noticed that the date columns were different in 2 of the 6 files.
One needs to double check the data source which is being appended.
data parse is however a more elegant and practical solution as not all the data sources can be manipulated and after a while you may decide to change data source.
Also there is always the problem that if you or anyone else forgot to check the file loaded, the error will reappear...but if you parse, no matter what you always get eh same result...
Think holistically and prepare for the worst 🙂