Forum Discussion

Greeb's avatar
Greeb
Occasional Contributor
8 years ago

Ambiguous error message

Item cannot be found in the collection corresponding to the requested name or ordinal.

 

I am selecting and object then selecting a column from a variable that I have set up using the test complete drop downs. So I know the query runs and gives me a result and I can see the result. But when the automation runs it fails every time and gives this error, I can't figure out why. I mean I am using the built in functionality to get my object both as the tested item and as the test variable result.

3 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Check for multiple copies of your tested app or web page in Task Manager.  Having multiples open will confuse TC.

     

    • Greeb's avatar
      Greeb
      Occasional Contributor

      I found the issue the UI is auto filling in the following:

       

      KeywordTests.Product_Tab.Variables.Product_Vw(KeywordTests.Product_Tab.Variables.Product_Vw("OnHand"))

       

      instead of

       

      KeywordTests.Product_Tab.Variables.Product_Vw("OnHand")

       

      I have no idea why. I am manually correcting them all now.

      • Marsha_R's avatar
        Marsha_R
        Champion Level 3

        Looks like either a search/replace gone haywire, or maybe you have a bad branch in your name mapping.