Forum Discussion

nedbacan's avatar
nedbacan
Frequent Contributor
4 years ago
Solved

End of my data driven test > Ending with an Exception "Type Mismatch"

Created a small data-driven test, but it returns an exception after the loop is completed.

 

 

 

 

  • Hi,

     

    The only thing I can think of here is that Test Complete 'thinks' that it should process row 5.  If your source data is in CSV format, open it in Notepad and check for a <cr> at the end of the last line.

     

    Another thing worth trying... In your DataDrivenLoop step, does it allow you to see the data?  Might be worth seeing how rows the app thinks it needs to process.

2 Replies

  • Hi,

     

    The only thing I can think of here is that Test Complete 'thinks' that it should process row 5.  If your source data is in CSV format, open it in Notepad and check for a <cr> at the end of the last line.

     

    Another thing worth trying... In your DataDrivenLoop step, does it allow you to see the data?  Might be worth seeing how rows the app thinks it needs to process.

    • nedbacan's avatar
      nedbacan
      Frequent Contributor

      Thank you very much for your support.  The problem got resolved with your suggestion.