Open full view…

Getting exception while getting field "branch_verifications.branch"

Tue, 21 Aug 2018 09:06:52 GMT

I am implementing with C sharp and when I am trying to get "branch_verifications.branch" filed from ClearQuest with "GetField" method I am getting this exception: System.Runtime.InteropServices.COMException But this method works with other fields. Can anybody please help me? Thanks in advance. Best regards, Marzie

Tue, 21 Aug 2018 15:01:31 GMT

There is probably a more detailed error message that is getting lost somewhere, but I think I know what the problem may be. If "branch-verifications" is a reference list field, then you won't be able to get the field value that way. ClearQuest wouldn't know which reference to get the value from if there were multiple values. And even if there was only one value, ClearQuest still complains because all it does is look at the field type. Instead you would need to create a query, add "branch-verifications.branch" as a display field, add a dbid or unique key filter to select the values from the record you want, and get the value that way. (note I used dash instead of underscore in my answer because underscore was changing everything to italics)