You write that it does not work. What does not work? Which stage action is at fault? What is the exception it throws?
Try this:Assuming you have the connection string correct, done a connect and an open, including some wait stages, you might want to try and format the Excel Sheetname as [Table1$] instead of plain Table1.
SQL:Your statement:
WHERE invoice = [InvoiceID] AND [Column1] != '' AND [Column2] != '' AND [Column3] != '' ...will return the row with the matching InvoiceID where comumns 1 and 2 and 3
all must have a value. This does not seem to match what you describe.
You can put the check in the SQL but you can also only select on the InvoiceID and then have BP validate the collection that was returned.
The SQL might look like this:
WHERE invoice = [InvoiceID] AND ([Column1] = '' OR [Column2] = '' OR [Column3] = '')
...this would require at least one of the columns 1, 2 or 3 to be empty.
On the other hand is your description "
one of Column1, Column2 or Column3 is empty" a bit fuzzy, in which case I'd like you to ask you to describe better what it is you want.
🙂------------------------------
Happy coding!
Paul
Sweden
------------------------------
Happy coding!
Paul, Sweden
(By all means, do not mark this as the best answer!)