KB-ID: RES02
Exception Trace : Incorrect syntax near the keyword 'key'.java.sql.BatchUpdateException: Incorrect syntax near the keyword 'key'.
Cause of the issue : Handling of reserved keyword as column name not handled
Steps to resolve the issue :
Open CMD and navigate to Drive:\ManageEngine\ServiceDesk\bin and type in the below command.
Drive:\ManageEngine\ServiceDesk\bin> write restoreData.bat
- This will open up the restoreData.bat file in write mode. In this file locate the string " Dsdp.restore.error.ignoretables ".
Once located, add the following after the equal to (=) sign : globalpersonalize,
Note: You will have to add the word globalpersonalize and the comma (,) after it.
Now, you can either choose to reinitialize the existing DB (this process would wipe out all data in the DB) or create a new DB. If you wish to reinitialize the existing DB, then open CMD and navigate to Drive:\ManageEngine\ServiceDesk\bin and invoke the reinitializeDB.bat file. Then you will be asked for a confirmation if you wish to reinitialize the DB. Type in 'y' in CMD and hit enter. If you wish to create a new DB, then Drive:\ManageEngine\ServiceDesk\bin and invoke the changeDBServer.bat file. This will bring up a GUI where you can put in a new DB Name and save the configurations.
Now, in the same CMD window, invoke the run.bat file. This will load all the modules and will start ServiceDesk Plus Application.
After all the modules load, you should see a message "Server started in :: [XXXXX ms]". Once you see this, please try to access the application. If you see the login page, then login using the default credentials i.e administrator/administrator.
If you are able to login successfully, come back to the CMD window and hit CTRL+C. This will stop all modules and kill the modules that were loaded. At the end, you will be asked if you want to terminate the application. Please type in 'y' in there and hit enter.
Once you are back in the CMD window, invoke the restoreData.bat as indicated below.
Drive:\ManageEngine\ServiceDesk\bin > restoreData.bat > 1.txt
If the restore is successful, then we will have to manually add the data present in globalpersonalize table. You can then raise a supprt ticket where we can help you with adding the entries in this specific table manually.
KB-ID: RES03
Exception Trace : Violation of UNIQUE KEY constraint / Cannot insert duplicate key in object 'dbo.ABC'
Cause of the issue : Duplicate value exists violating the UK constraint
Steps to resolve the issue :
- Locate the error from the CMD window and you should see the phrase 'Cannot insert duplicate key in object 'dbo.ABC'. The duplicate key value is (XYZ ).' In this error ABC is the table where the duplictae value exists and XYZ is the duplicate value itself.
- If you are performing a restore on a Test/Dev environment, then login into the Production Environment, change the duplicate value from XYZ to XYZ_1.
- Once the duplicate value is renamed, then take a fresh backup and perform a restore again.
- If the restore is performed on a Production Environment, please raise a supprt ticket where we can help you withhandling this issue.
KB-ID: RES04
Exception Trace : Unable to restore database : Batch entry 0 INSERT INTO WorkOrder (WORKORDERID,REQUESTERID,OBOID,CREATEDBYID,CREATEDTIME,RESPONDEDTIME,DUEBYTIME,COMPLETEDTIME,TIMESPENTONREQ,TITLE,DESCRIPTION,
MODEID,SLAID,WORKSTATIONID,DEPTID,SITEID,AUTOCLOSETIME,CLOSEAUTHKEY,ISPARENT,TEMPLATEID,SERVICEID,IS_CATALOG_TEMPLATE,FR_DUETIME,
HASCHANGE,HASCAUSEDBYCHANGE,HASPROBLEM,HASDEPENDENCY,SURVEYSTATUS,HASDRAFT,RESOLVEDTIME,HASPROJECT,CIID)
Cause of the issue : Column WORKSTATIONID present in the workorder table in the backup, but is not available in the DB that's created.
Steps to resolve the issue :