Code generation failed

I have a process that will not deploy. As soon as I open it a message says that code generation failed. I click on the messaged for more info and it says "The namespace 'Metastorm.Runtime.Models.Project1' already contains a definition for 'Project'".

 

I right-clicked on the message and clicked on go to component, but nothing happens.

 

Tagged:

Comments

  • There could be any number of reasons. Can you post the solution?

  • I usually have to back out whatever I was doing since the last deploy whenever I get that, but this time I want to try to work thru it.

     

    I exported a report, changed the name of the original and changed the BO, and then reimported the export.

     

    After getting the "Code Generation Failure" I also exported the new report, so now I can conveniently delete one or the other and then easily recover.

     

    If I deploy with only one of them, either one, I can deploy. But not with both.

     

    The first is called "CallSummary" and the second is called "SalesSummary", so I went into the export of the SalesSummary and found, and changed, all instances of CallSummary to SalesSummary. It seems that there were a few class declarations... However, the error persists!