What would cause the error "VARIABLE <UNKNOWN>" unaccessible and/or unavailable when using executeBatch on a prepared statement?

Any thoughts would be appreciated.