req_file_path,"request" error while executing scripts

req_file_path,"request" error while executing scripts

Message : Traceback (most recent call last): File "X.py", line 10, in <module> requestObj = read_file(req_file_path,"request") File "C:\Program Files\ManageEngine\ServiceDeskPlus-

This error will be thrown when the application is installed under Program Files.

Resolution

Replace req_file_path = sys.argv[1] in the provide python scripts
to
req_file_path = sys.argv[1] + " " + sys.argv[2]

                New to ADManager Plus?

                  New to ADSelfService Plus?

                    • Related Articles

                    • Script to Auto share request

                      1. Download MSP_share_Request.zip from the attachment, extract it, and paste the same under ManageEngine\ServiceDesk Plus MSP\integrations\Custom_scripts.          # auto_share_MSP.py      # functions.py      # configuration.json 2. ...
                    • Notification script using Custom function in custom trigger

                      This is applicable from 10600 builds. From 10600 , Business rules dont have Email notification feature. The same use case be achieved through Custom triggers feature as mentioned below. Script to enable notification of request creation using custom ...
                    • Python script to update request status

                      This article consists of a python script to update the request status based on a criteria set in Custom trigger. For installation and setup of PYTHON, please refer the below link, ...
                    • Script to AutoShare Request to Groups

                      Please follow the below link to setup python on the server ​ https://pitstop.manageengine.com/portal/en/kb/articles/how-to-setup-python-on-the-server-11-11-2019 Steps to configure 1.  Extract the attached zip file in <Home>/integration/custom_scripts ...
                    • Script to send notifications when a unknown request is raised

                      Use case The script will send email notifications to the address configured inside the script whenever a request is created under unknown requests.  This notification will be sent to Admin Email Pre-requisite - Python should be installed in the ...