Support Article
DatabaseException while running report in SFAHC 7.11
SA-28209
Summary
The report definition PegaHCSPM-Work-Opportunity-Ind.ID crmTotalOpportunitiesList in RS PegaHCSPM:07-11-01 is throwing the below exception.
Error Messages
2016-09-07 09:19:01,610 [:8443-22] [TABTHREAD1] [ ] [ FSAFW:01.01.01] ( rd.queryexec.SqlQueryExecutor) ERROR|[] user - An error occured on executing the query for the report definition - There was a problem getting a list: code: 8117 SQLState: S0001 Message: Operand data type varchar is invalid for sum operator.;com.pega.pegarules.pub.database.DatabaseException: There was a problem getting a list: code: 8117 SQLState: S0001 Message: Operand data type varchar is invalid for sum operator.;From: (H5AD27A6A179ACFBECE853D3C479BE401:) ; SQL: SELECT SUM("PC0".OpportunityAmount) AS "pySummaryValue(1)" , COUNT("PC0".pzInsKey) AS "pySummaryCount(1)" , MIN("PC0".CloseDate) AS "pySummaryDateTime(1)" , MAX("PC0".CloseDate) AS "pySummaryDateTime(2)" FROM dbo.pc_PegaHCSPM_Work_Opportunity "PC0" INNER JOIN dbo.pr_operators "Owner" ON ( ( "Owner".pyUserIdentifier = "PC0".pyOwnerUserID ) AND "Owner".pxObjClass = ? AND "PC0".pxObjClass = ? ) INNER JOIN dbo.PEGA_Work_Account "Acc" ON ( ( "PC0".AccountID = "Acc".pzInsKey ) AND "Acc".pxObjClass LIKE ? AND "PC0".pxObjClass = ? ) LEFT OUTER JOIN dbo.pc_index_workparty "Party" ON ( ( "Party".pxInsIndexedKey = "PC0".pzInsKey AND "Party".pxPartyRole = ? AND
Steps to Reproduce
Run the report definition PegaHCSPM-Work-Opportunity-Ind.ID crmTotalOpportunitiesList in RS PegaHCSPM:07-11-01 framework.
Root Cause
An issue in the custom application code or rules is identified as root cause of the issue.
The error message is because of data type mismatch of “OpportunityAmount” Property. The RUN SCRIPT step required before installing the SFAHC framework jars was not executed, due to which mismatch of data type error was occurring.
Resolution
Perform the following step to resolve the issue:
Execute the RUN SCRIPT step mentioned in user guide during the installation of the framework.
Published September 23, 2016 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.