Hi Jan,
Thanks for the quick response...
This is to get and copy the refered defect values to the current defect, so I wanted to confirm is the refered defect id is valid or not.
If I run the query I can take count of defects, so I can confirm whether the defect is valid (Exist) or not.
But here in your example how we can confirm.
Set refBug = tdc.BugFactory.Item(refId)
Thanks,
Subbarao