Is not defined for types 'String' and 'System.Data.Data Table'

Hello,
I’m trying to do a program that will select currency from a website by the date and input the result in a Message Box in format "InputDate + “, USD, " + ExtractDataTable” For example (17.11.2000, USD, 13.945). But it gives me this error message:
Compiler error(s) encountered processing expression “InputDate
USD, " + ExtractDataTable”.
Operator ‘+’ is not defined for types ‘String’ and
‘System.Data.Data Table’.

Can anyone help?

Hey

if you want to output a datatable, you should first use the Output DataTable Activity, and then just concat it in your mesasge box like this

InputDate +  ",USD," + StringDataTable

Regards!

Hi @thsrytked,
this error appear because you add Datatable in log message activity so the meaning of error that you can not print Datatable variable directly you have a lot of options to print this info like make for loop for this Data Table then print every row or item needed the second option is to select directly the index of needed value from Datatable it will work.
please try and if you still have issue please update us.