You can use the ULConnection::GetLastError() to access the error details.
if( ps->ExecuteStatement() ) {
const ULError * error = ulconn->GetLastError()
// get info from the error object to help determine the problem
}
The error object will show the SQLCODE and error parms in the debugger or you can implement a more detail error handler using the information accessible from this object.
If you have question about the error , please post the error details.