Remove everything after first comma in an entire column of a datatable without for each

Hi @muhamed_fasil

I am getting the following error while using the code in invoke code.

Can you please help me to resolve it?