Table argument cannot be null

hey guys, i’m trying to read a table and sort according to dates in a column, i get this error
image
i tried using try catch but it just ignores the error and doesn’t read all the tables

any suggestion ?

variable ‘table’ is not initialized.
Make sure table is assigned and then use Merge Data Table.

i initialized it but i get this error
image

i also tried changing the column type to string, but i get error when i sort it becauses i’m using dt.AsEnumerable.OrderBy(Function(d) DateTime.ParseExact(d(“Database date”).ToString,“MM/dd/yyyy HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture)).CopyToDataTable

i also tried to use sort data table activiy but it just sort base on the date, but ignores the month & year

could you please check what’s wrong ?
Main.xaml (32.7 KB)