Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Operand type clash: datetime2 is incompatible with tinyint

SA-22335

Summary



Logs are showing errors referencing Operand type clash: datetime2 is incompatible with tinyint in MS SQL DB.


Error Messages



com.microsoft.sqlserver.jdbc.SQLServerException: Operand type clash: datetime2 is incompatible with tinyint
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:216)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1515)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:404)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:350)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696)
...
com.pegarules.generated.definition.ra_action_getemailrecipientbyclusterscorecard_a96ea31ce7848823190af6f2548ff637.perform(ra_action_getemailrecipientbyclusterscorecard_a96ea31ce7848823190af6f2548ff637.java:50)
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:3180)
at com.pegarules.generated.activity.ra_action_pxretrievereportdata_a3add20b4fb0a3473fdbdde8b5ce3d52.step27_circum0(ra_action_pxretrievereportdata_a3add20b4fb0a3473fdbdde8b5ce3d52.java:2887)
at com.pegarules.generated.activity.ra_action_pxretrievereportdata_a3add20b4fb0a3473fdbdde8b5ce3d52.perform(ra_action_pxretrievereportdata_a3add20b4fb0a3473fdbdde8b5ce3d52.java:580)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3375)
...

Steps to Reproduce

  1. Run AES717 on a MS SQL Server database.
  2. Start the server and the error will appear in the log file when administrator starts to navigate in the AES portal.

Root Cause



A defect in Pegasystems’ code or rules
There is an incompatibility between datetime2 and tiny int in msSQL

Resolution



Apply HFix-26993

Published August 23, 2017 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us