Hi
I have to process an excel file from a supplier (i.e. I have no control over it). The file has a column that contains dates in UK format (dd/mm/yyyy). This column can also contain the value 'TBC'.
I need to put the value of this column into a destination where the datatype is date - the value 'TBC' would become NULL.
SSIS, using the Microsoft.ACE.OLEDB.15.0 provider, reads this as a string, and I have a script component that will do the conversion to a date and Null/TBC conversion. All is good.
However, if we get sent a file where there is no 'TBC' this process falls over. My assumption is that the ACE driver at runtime, recognises and reads this column as a date, it sees that the package is expecting a string and converts it, but when it converts it, it uses US format (mm/dd/yyyy). All locale settings in the package itself are set to en-GB, so it must be the ACE driver/provider that is doing this conversion using the wrong format.
So, is there some way for me to force the driver to treat a column as a string - even if it only contains dates? Or can I at least somehow specify the locale that the driver uses to convert a date to a string?
Any help much appreciated.
Darren