Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute SQL Task with project connection manager fails #21

Closed
nimearo opened this issue Jun 15, 2018 · 2 comments
Closed

Execute SQL Task with project connection manager fails #21

nimearo opened this issue Jun 15, 2018 · 2 comments
Assignees
Labels
bug replicatable This issue can be replicated by assignee

Comments

@nimearo
Copy link

nimearo commented Jun 15, 2018

When a package contains an "Execute SQL Task" which references a project connection manager SSISEnumerator fails on EnumerateSqlTask.

I tested it for packages targeting SSIS 2012 and received the stracktrace below when analyzing my SSIS source directory. SSIS project is in project deployment mode.

Stacktrace:
Enumerating projects...done.
Processing Project package 'XY'... Error The connection "{FD08C64A-...}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
occurred whilst attempting to handle ispac C:\Development..
With stack trace at Microsoft.SqlServer.Dts.Runtime.Connections.get_Item(Object index)
at Microsoft.Samples.DependencyAnalyzer.SSISEnumerator.EnumerateSqlTask(Package package, String location, Int32 packageRepositoryID, TaskHost taskHost) in C:\Users\xy\Source\Repos\SQLServerMetadata\DependencyAnalyzer2008\SsisEnumerator.cs:line 1132
at Microsoft.Samples.DependencyAnalyzer.SSISEnumerator.EnumerateTask(Package package, String location, Int32 packageRepositoryID, DtsContainer dtsContainer) in C:\Users\xy\Source\Repos\SQLServerMetadata\DependencyAnalyzer2008\SsisEnumerator.cs:line 1062
at Microsoft.Samples.DependencyAnalyzer.SSISEnumerator.EnumerateTask(Package package, String location, Int32 packageRepositoryID, DtsContainer dtsContainer) in C:\Users\xy\Source\Repos\SQLServerMetadata\DependencyAnalyzer2008\SsisEnumerator.cs:line 1086
at Microsoft.Samples.DependencyAnalyzer.SSISEnumerator.EnumeratePackage(Package package, String location) in C:\Users\xy\Source\Repos\SQLServerMetadata\DependencyAnalyzer2008\SsisEnumerator.cs:line 1226
at Microsoft.Samples.DependencyAnalyzer.SSISEnumerator.EnumerateIntegrationServicePack(String integrationServicePack, String locationName) in C:\Users\xy\Source\Repos\SQLServerMetadata\DependencyAnalyzer2008\SsisEnumerator.cs:line 628.
Committing analysis information to database...Completed.

@keif888 keif888 self-assigned this Jun 15, 2018
@keif888 keif888 added bug replicatable This issue can be replicated by assignee labels Jun 15, 2018
@keif888
Copy link
Owner

keif888 commented Jun 15, 2018

SQL 2012 doesn't read the connection's from the ispac, unlike more recent versions.
Added code to read the names of the connection managers, which forces them to be loaded, and then available for analysis.

@keif888 keif888 closed this as completed Jun 15, 2018
@nimearo
Copy link
Author

nimearo commented Jun 15, 2018

Patch looks good and works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug replicatable This issue can be replicated by assignee
Projects
None yet
Development

No branches or pull requests

2 participants