How do I copy a full Data Flow Task (DFT) from one project to another if pasting the project connection manager throws the error:
At least one connection manager could not be pasted correctly.
The connection manager with the name 'MyConnMngr' could not be pasted successfully.
The connection manager could not be created.
Object reference not set to an instance of an object.
(Microsoft.DataTransformationServices.Design)
Here is the full copy of the message. The link is dead:
TITLE: Microsoft Visual Studio
------------------------------
The designer could not paste one or more connection managers.
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%C2%AE%20Visual%20Studio%C2%AE&ProdVer=15.9.28307.2094&EvtSrc=Microsoft.DataTransformationServices.Design.SR&EvtID=PasteComponentsFailureCause_couldNotRestoreConnectionManagers&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
At least one connection manager could not be pasted correctly.
The connection manager with the name 'MyConnMngr' could not be pasted successfully.
The connection manager could not be created.
Object reference not set to an instance of an object. (Microsoft.DataTransformationServices.Design)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%C2%AE%20Visual%20Studio%C2%AE&ProdVer=15.9.28307.2094&EvtSrc=Microsoft.DataTransformationServices.Design.SR&EvtID=RestoreConnectionManagers_AtLeastOneRestoreConnectionManagerErrorOccured&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
If it was just this connection manager that I would have to build from scratch again, I would not take the time for this question. But this error stops pasting the whole DFT, and I cannot even copy and paste any boxes step by step.
The only thing that was pasted from the whole DFT was one Flat File Connection Manager for the package. It seems as if connection managers for the project cannot be pasted. I tried it in two projects. I know that sometimes objects are still files in the project and not shown in the project explorer. Such files can block pasting new objects of the same name, or you would get a warning to replace it at least. Therefore, I pasted the DFT in a project that had not had any connection manager of that name or function before, and still, the error came up.
I work in an older SSIS version from 2016. Perhaps a younger version can deal with it, but I doubt it.