This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SUPPORT Q&A - Workflow Promote Error

daniel.broomall - Tuesday, May 29, 2007 2:48 PM:

I have a workflow map (with an associated life-cycle map) that is starting to throw an error when I try to promote an item mid-way through the process.  I know that the life-cycle and workflow maps match each other (I have verified manually) and I am using the Workflow Promote method to move to the next life-cycle state.  However, I'm still getting the following error:

 Not an Item: Error while running method Workflow Promote.

I did modify the workflow including a non-promoting step after the workflow was in use.  Did that somehow corrupt my workflow map or something?

Any help would be greatly appreciated.

Thanks



RobMcAveney - Tuesday, May 29, 2007 9:54 PM:

Hi Dan -

I'm not 100% sure, but I suspect the problem is that you have more than one activity with the same name.  This is a known limitation with the Workflow Promote method.  You need to make sure that all activities that use the Workflow Promote method have unique names (even across different Workflow Maps).  There is a feature slated for the next release that will improve this functionality and remove that limitation, so this is a short-term problem.

Hope that helps -

Rob
 



daniel.broomall - Wednesday, May 30, 2007 8:48 AM:

Rob

Thanks for your response.  I checked all of the workflow maps in the system -- 3 from y'all and 2 from us -- and they seem to only overlap on the Start item.  I figure that's not the problem.  Just wondering, could overlapping names on the paths also cause a problem?

Thanks



RobMcAveney - Wednesday, May 30, 2007 9:50 AM:

No, the names of the paths shouldn't be a problem.  Looks like we'll have to make a couple changes to the Workflow Promote method in order to get a better error message.  I'll give you the instructions to do it here, but I can send you an importable version if you'd rather do it that way.

  1. Go to Methods on the TOC, find the method named Workflow Promote and open it for edit
  2. Take a quick look through the code -- you should see 5 lines that check for errors like this:

    If (something.isError()) Then

  3. Modify the first 4 of these lines to look like this (leave the original variable name in place of "something"):

    If (something.getItemCount() <> 1) Then

  4. Save the method and try running the workflow again.  You should still get an error message, but it should be a different one.

Let me know how this works out and we'll go from there.

Rob
 



daniel.broomall - Wednesday, May 30, 2007 4:44 PM:

Rob

This has to be another example of the fact that I don't understand the Identity structure and assigning Permissions as well as I should.  Hopefully my company will come through the training soon!

Anyway, as I have fiddled with Identities and Permissions today, the problem has gone away, resurfaced, and gone away again.  I did add the code changes you suggested.  Worst case, if I have another error (or heaven forbid this one comes back), I will have it for that case.  For now, I need to figure out what I changed with the Identities and Permissions to address the issue. 

As always, you've been a big help.  If I get more information on this one, I will pass it along.  Maybe we can keep another keyboard jockey out of trouble.  Maybe I could write a book -- Dan's Guide of Bonehead Administrative Moves in Innovator.  Catchy title, huh.

Thanks again.



daniel.broomall - Tuesday, June 5, 2007 10:02 AM:

Rob

My issue has resurfaced.  Now the error is returning as 'Error finding the Workflow relationship'.  For some reason if I make any kind of a change to the items involved in this process (ItemType, Form, Workflow Map), I start to see an error while trying to promote along the Workflow Map.  There seems to be no pattern as to when along the Workflow map I will see the problem.  Does that error ring a bell, by chance?

Thanks