Hello Gaurav,
Appreciate if you provide more information regarding the error.
For now, please check below points in your Native SQL code:
1) Whether fields and table name are case sensitive in your DB.
2) Exclude the TRANSACTION (BEGIN, COMMIT etc ) statements from native SQL block. try using it outside of the NATIVE SQL code.
Regards,
Praveen