Trying to use two scoring functions that have been published to the Netezza database from two different models within the same SQL procedure query might result in this error:
ERROR: 256 : Code generation failure
The only workaround for this issue is to run the two scoring functions in separate queries.