Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #1 
This one has been plaguing us for a while. What is worse is that when it happens, you can bet that in our solutions from that point on the entire solution is trashed. Validating will cause a thousand errors - nothing is correct, literally.

I've at last found how to reproduce the error, althgh the complete corruption does not seem to happen with new solutions. It may be that we have not figured out an extra step, or it may be that the solution file was originally built with 9.0.0 or 9.0.1, we are not sure. In any case, the fault prevents deploying so is serious enough to warrant attention.

To reproduce, merely copy any action with something in the 'do this' properties and paste it. It does not matter if you join it up or not, the 'code generation' warning will be there and will prevent deployment until you delete the action or the 'do this' activity(ies).

It seems the copy and paste is still not fixing up the naming problem we had in 9.0.0.

Now I just need to find out what causes the complete and irreversible corruption. It also happens when you export a form and import it again, but not all forms. Once again, I wish I was being paid for this!

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
It seems that the corruption may be just the library references being lost, at least that is what I have just noticed. Updating the Library fixes it once the offending action has been deleted.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #3 
OK that seem to fix the main one, which is a relief. I had to reset the deployment service as well.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Carolyn

Member
Registered:
Posts: 27
Reply with quote  #4 
Did you find out what was causing the corruption? I'm getting it in a library where I've only got one single function in one single server script. I'm referencing an external dll which we built ourselves, it went through some errors early in the week about not being able to find dll's, but now that's turned to 'code generation failed' every time.

I know my dll works ok when running the same function through a .net interface.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #5 
I think it happens every time there is a 'fault' in code, and it cannot compile. This may only be because of a lost reference, as in the missing Library situation we found.

The clue we find is if the Business Objects icon in the formula builder dialog is greyed out. That is a sure sign that compilation (or pre-compilation, for intellisense) has failed.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Carolyn

Member
Registered:
Posts: 27
Reply with quote  #6 
Just got this advice from metastorm:
 
Code generation fails if a project contains a library with promoted scripts. This will be seen in the Calculation Builder in the Designer and when an attempt is made to deploy the project after the library has been added.

An error similar to the following may be seen:

Cannot implicitly convert type 'Metastorm.Runtime.Models.EMailMaintenance.EMail_Maintenance1.Declarations.Local' to 'Metastorm.Runtime.Models.EMailMaintenance.BPMLibrary.Logo1.Declarations.Local'

Resolution

This is fixed by hot fix 1 for Metastorm BPM 9.0 (9.0.0.1).


Hmm. Last week I reinstalled because the SR2 install over the top of my SR1 install messed everything up and meant I couldn't open any folders. I put on the core product and the SR2, and it fixed my problem. Now it looks like I got the old program errors back and have to reapply SR1. Great! The hotfix doesn't install on my system, so I'm reinstalling for about the 5th time already.

Shouldn't the fixes in SR1 be included in the code for SR2? The website says hotfixes are cumulative unless it says otherwise, but what they don't say is the main service releases are NOT cumulative.

Somebody should teach them about source control.

Will post back when I know if it works...
0
Carolyn

Member
Registered:
Posts: 27
Reply with quote  #7 
Er, no. It doesn't work. I reinstalled everything from scratch, with all hotfixes and service releases, but I still get the same 'code generation failed' problem, even when I recreate the library manually.

I thought maybe installing SR2 removes the fix for this.

Then, just to check it wasn't my code going wrong, I removed all the custom dll's from the dotnetbin folder and commented out all my code. That worked. One by one I added them back in until it broke.

The dll that broke the system was system.xml.linq.

Doing anything with linq, or using any dll which uses linq (i.e. just about everything created in .net!) breaks the deployment on v9SR2 for us.

Support call still open, will post back if there's any other fix...




0
Claus099

New Member
Registered:
Posts: 1
Reply with quote  #8 
If you are using non Metastorm dlls they need to be copied to a variety of locations. The following may be overkill but it got me over the issue. Perhaps not yours...though I expect you've moved on from this at this stage :) 

·         D:\Metastorm\BPM\Engine\dotnetbin directory

·         D:\Metastorm\BPM\Designer\CustomLib

·         D:\Metastorm\BPM\Designer\SystemLib

·         D:\Metastorm\BPM\Deployment\CustomLib

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!