1

Closed

SSIS - Variable Copy / Move broken in v1.5

description

When clicking on the icon I get "Image added to an ImageList must either derive from Image or be an Icon. Upgraded from an earlier version if makes a difference.
 
Q Image added to an ImageList must either derive from Image or be an
Icon.
at System.Windows.Forms.ImageList.Original..ctor(Object image,
OriginalOptions options, Color customTransparentColor)
at System.Windows.FormsJmageList.ImageCollection.Add(String key,
Icon icon)
at BIDSHelper.SSIS.VariablesMove.SetNodelcon(DtsContainer
container, TreeNode childNode)
at BIDSHelper.SSIS.VariablesMove.IterateC ontainers(DtsContainer
parent TreeNodeCollection nodes, String selectedContainerld)
at BIDSHelper.SSIS.VariablesMove.IterateC ontainers(DtsC ontainer
parent TreeNodeCollection nodes, String selectedContainerld)
at BIDSHelper.SSIS.VariablesMove.IterateC ontainers(DtsContainer
parent TreeNodeCollection nodes, String selectedContainerld)
at BIDSHelper.SSIS.VariablesMove..ctor(Package package, String
selectedC ontainerld, 1nt32 selectedVariablesC ount)
at BIDSHelper.SSIS.VariablesWindowPlugin.MoveCopyBut.tonClickO
Closed Jun 11, 2011 at 12:02 AM by furmangg
fixed in the release after 1.5

comments

DarrenSQLIS wrote Jun 9, 2011 at 10:43 PM

I assume this happens when copy/move dialog is opening?

Does it happen on all packages?

Can you tell me what tasks and containers you have in the package? If you can share the package that may be useful too.

dgosbell wrote Jun 10, 2011 at 6:16 AM

Do you have any 3rd party components in your package? If so it looks like it will actually pop up a message box with the component name before it throws this error.

Do you know if this feature worked on this package prior to v1.5? We have not changed this code in a long time, so it may not be a new issue.

dgosbell wrote Jun 10, 2011 at 8:34 AM

Sorry, ignore that remark about no recent changes I was looking in the wrong spot. It would still be helpful to know if you have any third party or custom components in your package.

00 wrote Jun 10, 2011 at 11:02 AM

Hi guys, you are right that it is to do with a custom component - http://ssisexec.codeplex.com/. I have further enhanced this package (reminds me I need to upload my code to codeplex) but I haven't touched the image so I guess this issue will persist with the original.

DarrenSQLIS wrote Jun 10, 2011 at 12:55 PM

If a (custom) task has no icon it causes this issue. When we cache the task information, it tries to get the icon, in this case it returns a null value which isn't a valid icon, hence the error "Image added to an ImageList must either derive from Image or be an Icon". I've added an explicit check when building the info collection, and if a task has no icon, it uses a default one instead.