Yes, you should be able to do this test scenario using data driven testing.
You just have to make sure that you verify with the same value that you used for creating the invoice.
Another issue that you might experience is if the invoice element find logic is not a static and it changes every time you execute the test with a new invoice #. If that is the case, you might need to modify the find expression
that Test Studio uses.
Either way, if you continue to experience any issues, please provide us with a copy of your test and if it is possible grant us access to your application so we can reproduce the issue on our end and give you a solution.
Looking forward to hearing from you.