I’m having problems when converting an excel file to a csv file.
The excel file contains the column “Date” witch has the format “dd/MM/yyyy”:
I’m using the “Read Range” activity and storing the output in a Data table, and then I’m using the activity “Write CSV” to generate the CSV file. At face value everything looks OK, but if we edit the file with something like Notepad++, we can see that some of the records don’t look correct:
I’ve messed around with different encodings, but so far no luck. Any idea what might be the problem? Might there be something wrong with the original excel file?
I’m also including the excel witch I used to generate the CSV file.
I do this procedure for several hotels so before I Write Range, I check to see if the excel file exists. If it doesn’t I use Write Range, if it does I read range the file before hand and do a count of it so I know from witch cell to paste the next information.
I’ve found that the dates are incorrectly formatted every time after the first time I write to the excel file.
So basically, after the first time I write to the excel, the dates are always incorrectly formatted. Also, I tried outputting dtDate everytime just before the Write Range activity and it seems correctly formatted.
I apologize if this is confusing, if need be I can share my project.
Basically, after the first time I write to my excel file, I was using write range activities in Excel Application Scope. For some reason that was messing with the Date format. I just changed those to Write Range activities outside of Excel Application Scope and that seems to have fixed it.