After converting an existing project to a template, I get workflow errors when I log into the project
Question ID: 106604
1
0

Using an existing project, I have created a template for ALM 11.52. With the template, I used the conversion tool switch the project scripts to template scripts. Did the replace all functions and even ran the syntax check. This all completed with no issues. However logging into the template I am greeted with an error about workflow script for Bug_New. The error shows some details about a function that works fine in the original project. Nothing is wrong with the code. I know the detail errors showing code often are not the where the problem lies 100% of the time. Any quick ideas beyond having to dive deep into the workflow?

Marked as spam
Posted by (Questions: 104, Answers: 0)
Asked on January 26, 2016 3:39 pm
40 views
Answers (1)
1
Private answer

Hello,

Seen this before with template conversion of existing scripts, as the new template project will have the converted scripts in the template workflow section in the script editor as well as the project scripts still in the regular project area. Essentially the code is doubled up and any defined variables and such will trip the workflow among other issues.

Solution is to remove all the project level workflow in the template project. That is not needed given the template now has its template workflow which will take precedence over the project level anyway.

The easiest way to accomplish this would be to use FTP to view the smart repository to open the template project. It is will be a Scripts folder. Open it and delete all scripts within the Scripts folder that don't have template associated to them. The base functions in the script editor will still be present at project level; they will just be free of any code additions.

Marked as spam
Posted by (Questions: 1, Answers: 116)
Answered on January 26, 2016 3:42 pm
0
Thanks, that would seem to be the issue as I do see the code is in there twice. Let me get out then.
( at January 26, 2016 3:48 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top