Error – Cannot access a disposed object

Question ID: 109581
0
0

I have created a custom field with two list values in it. Bases on the selection on this field I am hiding/displaying the ‘Target Release’ field. added the workflow to Bug_New and Bug_FieldChange subs.
When I change the values in the defect details form, I am getting an error as ‘Cannot access a disposed object’
Here is the script added…

If Bug_Fields.Field(“BG_USER_17”).Value = “VALUE” Then
Bug_Fields.Field(“BG_TARGET_REL”).IsVisible = True
Else
Bug_Fields.Field(“BG_TARGET_REL”).IsVisible = False
End If

 

Marked as spam
Posted by (Questions: 99, Answers: 7)
Asked on June 5, 2020 12:59 pm
5 views
Answers
0
Private answer

This issue has already been reported to Micro Focus and is addressed in QCCR1J101295. The issue was fixed in an patch, I assume it was Patch04, however I installed Patch05 and even though it was not listed in the fixed defects it resolved my issue.

Marked as spam
Posted by (Questions: 0, Answers: 293)
Answered on June 5, 2020 1:01 pm
thanks I'm on the original release I guess it's time to patch.
( at June 5, 2020 1:03 pm)