Unexpected error prompted for while accessing reports for Servicedesk Plus MSP integrated setup

Unexpected error prompted for while accessing reports for Servicedesk Plus MSP integrated setup

Issue :
Unexpected error prompt while accessing reports


Analysis:
The exception caused is due to a syntax problem faced in the query formed while the user filter drop down is used on the SLA deviation report. The logs shared helped us to find the problematic syntax and we have the solution now to rectify the problem faced.

Log Trace:

Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: boolean = integer
Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Position: 72  


Solution:

1. Launch cmd prompt as Administrator and browse to <AnalyticsPlus home\pgsql\bin>

2. Execute  psql.exe -h localhost -p 33366 -U postgres to connect to the Postgres database.
For example: D:\MEReports\AnalyticsPlus\pgsql\bin>psql.exe -h localhost -p 33366 -U postgres

3. Execute \c zreportsdb;  to connect to reports database.
For example: postgres=# \c zreportsdb;

4. Execute below queries one by one,

Query #1:
CREATE OR REPLACE FUNCTION pg_catalog.toequals_udf(boolean, integer) RETURNS boolean AS $$ DECLARE x boolean; BEGIN x = ($1::integer = $2); RETURN x; END; $$ STRICT LANGUAGE plpgsql IMMUTABLE; 
Query #2:
CREATE OPERATOR pg_catalog.= (PROCEDURE = toequals_udf, LEFTARG=boolean, RIGHTARG=integer); 

                  New to ADSelfService Plus?

                    • Related Articles

                    • Servicedesk Plus gets logged off after integrating with ManageEngine Reports

                      Problem: Servicedesk Plus logs off randomly. Problem occurs after setting up integration between ManageEngine Reports and Servicedesk Plus. Solution: If you have installed Servicedesk Plus and ManageEngine Analytics Plus on same server, please access ...
                    • Formula createdtime() function throws error

                      Issue: When we create a formula column using the 'createdtime()' function, it throws unexpected error occurred. Analytics Plus Builds affected : 4300 & 4310 This is found as an issue within Analytics Plus and found happening on build 4300 and 4310. ...
                    • How to import description field details from ServiceDesk Plus to Analytics Plus?

                      Description details from the Requests' module are not available out-of-the box in Analytics Plus as it might contain HTML contents and cannot be displayed properly for reporting. However, if you wish to import description details into Analytics Plus, ...
                    • Steps to import approval date

                      We can fetch the approval date data from ServiceDesk Plus using the following workaround. Below are the steps to be followed to successfully import the data. Step 1: Click Import data within the ServiceDesk Plus database in Analytics Plus. Step 2: ...
                    • Analytics Plus Inventory

                      Aim: To have the detailed list of all the Reports, Databases created in Analytics  Open Local & Cloud Databases and fill the entries password = Postgres and if any error occurs stating something like "check the DB connection" change the Port to ...