Reputation: 5398
I am new to SSIS, I have already designed a package and configured SSIS Log provider for Text Files. This works fine and log files are generated successfully.
We have a monitoring team, they use this log file for monitoring. They are unable to read the log files since the file encoding is in Unicode format. They are expecting a non unicode format for their monitoring.
I tried to change the existing log file encoding to ANSI but when I re-run the package my log file has been created again with UNICODE encoding.
Is any way we can create log files using SSIS Log provider for Text Files with non unicode encoding. Kindly suggest me any workaround. I am unable to find solution for the past two days.
Upvotes: 2
Views: 1008
Reputation: 37313
Since SSIS Log provider for Text Files use a File connection manager for logging purposes, you don't have the choice to edit the file encoding within the SSIS package because this type of connection manager can be used for different files format (excel, text ...).
While searching for this issue it looks like if the log is created for the first time by SSIS it will write unicode data.
Try to create an empty text file using notepad and save it with ANSI encoding.
Then select this file from the SSIS logging configuration.
Other helpful links
To test the workaround i provided i have run the following experiments:
Save As
the encoding shown in the combobox is Unicode
)Ansi
encoding as mentioned above.Use Existing
instead of Create New
and i selected the file i createdAnsi
TL DR: Create a file with ANSI
encoding outside the ssis package and within the package create a file connection manager, select Use Existing
option and choose the created file. Use this file connection manager for logging purposes.
Upvotes: 1