Error on Replace Type
Using Control BuilderM Pro V5.1.1-1. In an application i have control module i want to replace type on. If i right click and go replace type and select my new module from the library and rename the instance. A Messages window pops up saying refreshing project.. then transaction cancelled. Hit ok and an "Error writing source code block" windw pops up. Says ErrorMessage: Source Block application, application name.cmt; Error Message: Exception caught by storage interface. Had previouslt done this same replace type in older CBM ver5.0 with no issues
Answers
What module type are you replacing ?
What are you replacing it with ?
Is the library that the new object belongs to already attached to the current application?
Like you say, this should normally work OK. However there can be some odd restrictions when you use certain types of objects - for example Batch management objects that have hooks into the batch manager, composite object types that have rules for instantiation etc.
You also say you are "renaming" the instance. Keep the instance names the same when you replace the object. You can try to rename it later.
I've got similar trouble - in my case consistency check slove it.
Forgot to mention the control module i wanted to replace with was a newly imported module. Was working on the test system. Reimaged the server to a backup i had before any changes were made. re-imported my new module this time without including dependancies. Was now able to replace type. So not sure what caused the error yet but that was how i got around it.
Add new comment