Hello,
The only time I have seen the error 173 on SQLADR to occur is on the first SQL statement, mostly the SQL CONNECT, in the program.
There must be something different between your project A and project B. Please open a support incident with MF SupportLine if you can't figure this out.
Regards,