PRB: COM+ Catalog Order of SaveChanges Affects Role Assignment (272100)
The information in this article applies to:
This article was previously published under Q272100 SYMPTOMS
When you assign roles to components through the catalog admin automation objects, changes may not be saved if the SaveChanges method is not called on components before the ComponentRoles.
CAUSE
When you retrieve the ComponentRoles from the components, you get them directly from the catalog and not from the cached components table. The saved changes to the ComponentRoles are overwritten when the cached components table is saved. If you save changes to the components table before you get the ComponentRoles, the last call to components.SaveChanges effectively does nothing because nothing has been modified in the components table.
RESOLUTION
To resolve this problem, call SaveChanges on the components before you call SaveChanges on the ComponentRoles.
Modification Type: | Major | Last Reviewed: | 2/21/2002 |
---|
Keywords: | kbDSupport kbprb kbSysAdmin KB272100 |
---|
|