Editing custom SSIS PipelinComponent throws error "value of 'null' is not valid for 'stream'"

Mansfield

I created a custom PipelineComponent to convert data to Proper Case, like so:

[DtsPipelineComponent(DisplayName = "ProperCase")]
public class ProperCaseTransform : PipelineComponent
{
    //irrelevant code here
}

However, when I add this component to my data flow, and click "edit", I am met with with following error:

Value of 'null' is not valid for 'stream'. (Microsoft Visual Studio)


Program Location:

at System.Drawing.Icon..ctor(Stream stream, Int32 width, Int32 height) at System.Drawing.Icon..ctor(Stream stream, Size size) at Microsoft.SqlServer.IntegrationServices.Designer.Common.ImageSourceHelper.GetIconFromResource(Assembly assembly, String resourceName, Boolean isLarge) at Microsoft.DataTransformationServices.Design.DesignUtils.ExtractManagedBitmap(String fileName, String resName, Boolean large) at Microsoft.DataTransformationServices.Design.DesignUtils.ExtractBitmap(String fileName, String iconResource, Boolean isNative, Boolean large) at Microsoft.DataTransformationServices.Design.PipelineUtils.GetComponentIcon(IDTSComponentMetaData100 componentMetadata, IServiceProvider serviceProvider) at Microsoft.DataTransformationServices.Design.FunctionLevelMappingUI..ctor(FunctionLevelComponentUI componentUI, IUserPromptService promptService) at Microsoft.DataTransformationServices.Design.FunctionLevelComponentUI.EditImpl(IWin32Window parentControl) at Microsoft.DataTransformationServices.Design.DtsComponentUI.Edit(IWin32Window parentWindow, Variables variables, Connections connections)

I have seen similar problems happening with Visual Studio 2012 (apparently CU4 for SP1 fixes this), but never for VS 2013. How can I fix this issue? My component is unusable with editing.

Mansfield

I was tipped off by this question: error : Value of 'null' is not valid for 'stream'. Although this is clearly a bug in the IDE, it was possible to fix by adding an icon to my custom component:

[DtsPipelineComponent(DisplayName = "ProperCase", IconResource="MyNamespace.app.ico")]
public class ProperCaseTransform : PipelineComponent
{
    //irrelevant code here
}

I then included a random icon file in the dll (named app.ico), set the build action to "Embedded Resource", and recompiled; which fixed the issue in visual studio.

NOTE: the IconResource value has the format:

[ProjectNamespace] + "." + "Folder path separated by dots" + "." + "iconName.ico"

The project namespace is defined in the project properties.

Example: the icon MyIcon.ico in the folder icons in a project with namespace MyProject would have the icon resource value "MyProject.Icons.MyIcon.ico"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Editing custom SSIS PipelinComponent throws error "value of 'null' is not valid for 'stream'"

From Dev

error : Value of 'null' is not valid for 'stream'

From Dev

SSIS package throws an error : out of memory Exception

From Dev

Editing simpleform locales to enable custom error messages

From Dev

Custom error template throws fatal error

From Dev

fullCalendar custom events function throws not a function error

From Dev

iterator on custom classes in python throws error in python

From Dev

notify_airbrake throws error on custom classes

From Dev

JQGrid remove cell value from custom error message in inline editing

From Dev

How to do custom text editing in CSS and getting a error in a school project

From Dev

SSIS Custom Data Flow Component - Redirect error rows

From Dev

SSIS Script Task System.IO.File.WriteAllText throws "The process cannot access the file" Error

From Dev

SSIS Script Task accessing Azure Service Bus queue throws X.509 certificate error

From Dev

SSIS passing custom objects

From Dev

SSIS custom source component

From Dev

Casting from ArrayList<Object> to ArrayList<Custom> class throws error while Object to Custom does not

From Dev

Error editing Windows DNS

From Dev

Error while editing gridview

From Dev

Editing gender syntax error

From Dev

Custom UITableViewCell editing mode not working

From Dev

Custom MappedEntityDomainManager throws StackOverflowException

From Dev

AngularJS custom directive and ctrl, throws error if: the method of ctrl is the same as name of ctrl

From Dev

In spring4 the CustomEditorConfigurer throws error while i am setting custom editor property

From Dev

MongoDB Custom Serializer to avoid _t being added collection, throws ReadEndArray Error?

From Dev

Passport.js throws "missing credentials" error with local authentication strategy even when custom usernameField is set

From Dev

Ninja framework endpoint throws 500 error when trying to map JSON to custom object

From Dev

AngularJS custom directive and ctrl, throws error if: the method of ctrl is the same as name of ctrl

From Dev

Settings.py throws error when I try to import my custom backend

From Dev

Injecting custom service into ui-router config throws error: Unknown provider: [Service]

Related Related

  1. 1

    Editing custom SSIS PipelinComponent throws error "value of 'null' is not valid for 'stream'"

  2. 2

    error : Value of 'null' is not valid for 'stream'

  3. 3

    SSIS package throws an error : out of memory Exception

  4. 4

    Editing simpleform locales to enable custom error messages

  5. 5

    Custom error template throws fatal error

  6. 6

    fullCalendar custom events function throws not a function error

  7. 7

    iterator on custom classes in python throws error in python

  8. 8

    notify_airbrake throws error on custom classes

  9. 9

    JQGrid remove cell value from custom error message in inline editing

  10. 10

    How to do custom text editing in CSS and getting a error in a school project

  11. 11

    SSIS Custom Data Flow Component - Redirect error rows

  12. 12

    SSIS Script Task System.IO.File.WriteAllText throws "The process cannot access the file" Error

  13. 13

    SSIS Script Task accessing Azure Service Bus queue throws X.509 certificate error

  14. 14

    SSIS passing custom objects

  15. 15

    SSIS custom source component

  16. 16

    Casting from ArrayList<Object> to ArrayList<Custom> class throws error while Object to Custom does not

  17. 17

    Error editing Windows DNS

  18. 18

    Error while editing gridview

  19. 19

    Editing gender syntax error

  20. 20

    Custom UITableViewCell editing mode not working

  21. 21

    Custom MappedEntityDomainManager throws StackOverflowException

  22. 22

    AngularJS custom directive and ctrl, throws error if: the method of ctrl is the same as name of ctrl

  23. 23

    In spring4 the CustomEditorConfigurer throws error while i am setting custom editor property

  24. 24

    MongoDB Custom Serializer to avoid _t being added collection, throws ReadEndArray Error?

  25. 25

    Passport.js throws "missing credentials" error with local authentication strategy even when custom usernameField is set

  26. 26

    Ninja framework endpoint throws 500 error when trying to map JSON to custom object

  27. 27

    AngularJS custom directive and ctrl, throws error if: the method of ctrl is the same as name of ctrl

  28. 28

    Settings.py throws error when I try to import my custom backend

  29. 29

    Injecting custom service into ui-router config throws error: Unknown provider: [Service]

HotTag

Archive