SSIS Output to an Excel Template does not seem to follow formatting

Bobby P 231 Reputation points
2022-06-22T20:30:09.603+00:00

I have a fairly simple SSIS Package which extracts data daily from our SQL Server Database and outputs to an Excel Template that we have created and formatted accordingly to have centered data, numeric data, etc..

When we append the data to our Excel Template, how come it does not seem to follow the formatting correctly? The new data rows are not centered, the annoying green triangle appears to re-format the appended rows.

Is there any way that I can force the appended rows to follow the Excel Template formatting that we have set-up for it once the SSIS Package and the Data Flow Task is completed?

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2022-06-23T02:37:24.923+00:00

    Hi @Bobby P ,

    A workaround for you. Add a row with template data and formatting and hide that row.

    Step1: Add a row containing numeric data in your excel file like shown below.

    214171-image.png

    Step2: And then load data into the file you will not get the green triangle.

    214123-image.png

    Step3: You may hide the first row or delete it after the loading.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.