Hi Suvendu,
Copy the Optimised SQL of that Dataflow and Execute that SQL code in SQL Server Management Studio Query panel.
If everything works fine. Please check for the case sensitive column names for the template tables make everything CAPITAL in the query transform before the template table.
If it is a functionality change like data type conversation you need to explicit convert them by using cast function.
Reagrds,
Akhilesh Kiran.