SQLIS Wiki
User: Guest
Login
Wiki Home Wiki Home
Topic Index Topic Index
Edit Edit
Print View Print View
What's New What's New
Search
RSS 2.0 RSS 2.0
Recent Topics
0xC0204006 0xC0204006

Current Version:
3/25/2006 1:13 PM DarrenSQLIS
0xC0204006
.

Failed to set property "%1!s!" on "%2!s!". The property could not be set for an unknown reason.

Constant DTS_E_FAILEDTOSETPROPERTY
HRESULT 0xC0204006
Error -1071628282
Code 16390
Facility Component (DTS_FACILITY_COMPONENT)
Severity Error (DTS_SEVERITY_ERROR)

Community Notes

Examples of this error can be seen when calling SetComponentProperty method of CManagedComponentWrapper, such as when building the Data Flow programmatically. Causes for this are usually simple mistakes when programming for example:

  • Property name passed into SetComponentProperty incorrect.
  • Component is incorrect. Check the Count of IDTSComponentMetaData90.CustomPropertyCollection.
  • Forgot to call ProvideComponentProperties, which will create the properties you intend to set. Until this is called the IDTSComponentMetaData90.CustomPropertyCollection will be empty.
 ...
 IDTSComponentMetaData90 component = dataFlow.ComponentMetaDataCollection.New();
 component.ComponentClassID = "...";
 instance = topTransform.Instantiate();
 instance.ProvideComponentProperties();
 CManagedComponentWrapper instance = instance.ProvideComponentProperties();
 instance.SetComponentProperty("Rows", rows);
 ...

ComponentErrorCodes

Copyright © 2001-2005 SQLDTS.com. All Rights Reserved. TermsOfUse, Powered by FlexWiki 1.8.0.1677