SSIS package completes without errors in Visual Studio, but fails with errors in SQL

Brett Schapeler 21 Reputation points
2021-04-27T16:33:52.27+00:00

Full Disclosure – not a DBA or a BI guy and we really don’t have either, so here I am. We have an issue where we can run a dtsx package to completion without errors in Visual Studio, but the package throws errors when running manually from SSMS under the SSISDB or with the SQL agent in a scheduled job. When opening the package in Visual Studio, the package produces no errors or warnings in any of the control flow or data flow tasks. I have used the same credentials when running in Visual Studio and running manually from SSMS. I’m using Visual Studio 2019 and the SQL server is running SQL 2014. I use the Project/Deploy menu in Visual Studio to deploy to the SSISDB and have verified it successfully deploys.

Here are the errors I get when running manually from SSMS or when the scheduled job runs via the SQL agent (in order of occurrence):

Load studrec_001_addr_contact_parsed:Error: The "Get spg_err and addrcln data" failed because truncation occurred, and the truncation row disposition on "Get spg_err and addrcln data.Outputs[ADO NET Source Output].Columns[addrcln_pgcon_addr_bndry_street_suffix]" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.

Load studrec_001_addr_contact_parsed:Error: The Get spg_err and addrcln data was unable to process the data. Pipeline component has returned HRESULT error code 0xC020902A from a method call.

Load studrec_001_addr_contact_parsed:Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Get spg_err and addrcln data returned error code 0xC02090F5. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.

Looking at the data flow task for the Load studrec_001_addr_contact_parsed and viewing the mappings for the columns, the addrcln_pgcon_addr_bndry_street_suffix shows Length: 4 for the Input Column and Length: 20 for the Destination Column when hovering over the column name for each.

1) Why are we not seeing truncation warnings in Visual Studio if truncation is truly the issue?
2) Why does it complete from Visual Studio, but not from SQL?

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,450 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Yitzhak Khabinsky 24,936 Reputation points
    2021-04-27T17:08:35.143+00:00

    @Brett Schapeler ,

    Is the SSIS package in question connected to the same database in VS2019 vs. SSIS run-time server?

    0 comments No comments

  2. Brett Schapeler 21 Reputation points
    2021-04-27T18:37:34.3+00:00

    Thank you for the reply. I'm not sure I understand the question. When I open the solution in VS, it uses the connection managers to the database for the flow tasks. I would assume by deploying the package to the SSISDB that I'm using those same connection managers/databases. Our SSIS run-time server is on a server separate from our main database server.


  3. Monalv-MSFT 5,891 Reputation points
    2021-04-28T08:43:45.327+00:00

    Hi @Brett Schapeler ,

    Load studrec_001_addr_contact_parsed:Error: The "Get spg_err and addrcln data" failed because truncation occurred, and the truncation row disposition on"Get spg_err and addrcln data.Outputs ***[ADO NET Source Output].Columns[addrcln_pgcon_addr_bndry_street_suffix]****" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.*

    Could you please check if the length of data in the column [ADO NET Source Output].Columns[addrcln_pgcon_addr_bndry_street_suffix] is more than 4?

    If so, please add the length of column in the external source.

    Best regards,
    Mona


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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.


  4. Brett Schapeler 21 Reputation points
    2021-04-29T18:29:12.543+00:00

    Hello, here is the preview. Thanks.92645-ado-source.jpg

    0 comments No comments

  5. Brett Schapeler 21 Reputation points
    2021-05-03T21:40:05.733+00:00

    I've opened a case with Microsoft. I'll post the resolution here if we get one.

    0 comments No comments