Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

A failure has occurred in workflow script (in function )

$
0
0

Hi

 

We recently got upgraded to HP ALM 11.52 from HP QC 11.00. Since we have the option to create a template with the latest version, I created a template for our Quarterly Release projects using an existing project instance. We have a workflow setup for Defects module in our QR instance. When I clicked the Script Editor in the newly created template it showed me an informational messaged stating that the code has to be converted into template functions in order to apply it to the linked projects. I clicked ok and converted all the functions into the template functions using the 'Covert Tool Dialog' tool.

 

After the conversion, when I opened a new defect window the hit with the foolowing error.

 

A failure has occurred in workflow script (in function <Template_Bug_CanDelete>)

 

Error at Line 602, (character 7)

Name redefined:

====================

'Use these constants to make the layout code more readable

==> Const kVIS = True 'Visible

Const kHID = False 'Hidden

====================

 

I did not hit with errror before the conversion process. Also the workflow was working as expected. When the error dialog box is closed, the new defect window opens, but the workflow didn't have any impact and the hidden fields were also getting displayed.

 

I am not sure which change is causing this error. I did not make any changes to code expect the conversion. Attached the code and screen shot for reference. Looking forward for the guidance.

 

Thanks

Praveen

 

Hi



We recently got upgraded to HP ALM 11.52 from HP QC 11.00. Since we have the option to create a template with the latest version, I created a template for our Quarterly Release projects using the existing project instance. We have a workflow setup for Defects module in our QR instance. When I clicked the Script Editor in the newly created template it showed me an informational messaged stating that the code has to be converted into template functions in order to apply it to the linked projects. I clicked ok and converted all the functions into the template functions using the 'Covert Tool Dialog' tool.



After the conversion, when I opened a new defect window the hit with the foolowing error.



A failure has occurred in workflow script (in function <Template_Bug_CanDelete>)



Error at Line 602, (character 7)

Name redefined:

====================

'Use these constants to make the layout code more readable

==> Const kVIS = True 'Visible

Const kHID = False 'Hidden

====================



I did not hit with errror before the conversion process. Also the workflow was working as expected. When the error dialog box is closed, the new defect window opens, but the workflow didn't have any impact and the hidden fields were also getting displayed.



I am not sure which change is causing this error. I did not make any changes to code expect the conversion. Looking forward for the guidance. Attached the code for reference.

 


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>