Datatable dynamic column add issue

I am trying to add a dynamic column with a value to a data table, but it gives an error during datatable initialization. In first time only ajax call is called .after that ajax call is not working. Please review my code and update for solution.