Our SSIS package fails 2 seconds into the run with the following error:
An item with the same key has already been added.; at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Microsoft.SqlServer.IntegrationServices.Server.ISServerExec.ProjectOperator.StartPackage() at Microsoft.SqlServer.IntegrationServices.Server.ISServerExec.ProjectOperator.PerformOperation() Transact-SQL stored procedure
We deploy our SSIS packages (2016) to our SSISDB on MSSQL: 13.0.4001.0, we also have environment variables in that same folder
The strange thing is that in this project I have 5 packages that run ok (different job) but only 1 fails (it has itsβ own job)
- I already deleted a recreated the folder/ environment variables/jobs - same result
- I made sure I have Different environment variables folder name
- We run the job with different users and 2 of them were admins in the DB
- We have other servers which have the same config and project (2 QA environments) and they work the same but OK!
Do I need to go directly to MSDB and delete a row? Where?
Appreciate any ideas β thank you all
I found the error and solution π
It seems I deployed a package with 2 same named SMTP connection (one as a project connection and the other with same name as a package connection) I deleted the unnecessary (in my case deleted the package one) and deployed the fixed package. Now the job run successfully calling on one only connection.
- I was missing the correct error handling from the error itself since it did not direct me to the specific connection
- The package failed at runtime on validations β so no error logs to assist
- I run the query from [SSISDB].[catalog].[execution_parameter_values] and compared between a successful run to a failed then I noticed the same named connections
Thank you for your comments!
Yoni