Unable to modify asset state or unable to edit assets

Unable to modify asset state or unable to edit assets

Issue:

While trying to change asset state from list view, we get "Sorry an error has occurred". If we try to Edit that asset, we get a blank page.

Error traces from logs:

|[com.adventnet.servicedesk.asset.action.AssetDefAction]|[SEVERE]|[102]: Exception while trying to retrieve data for Asset : 744955| 
java.lang.NullPointerException
at com.adventnet.servicedesk.utils.Select2Util.constructJSONData(Select2Util.java:78)
at com.adventnet.servicedesk.asset.action.MSPAssetDefAction.fillDetails(MSPAssetDefAction.java:75)
at com.adventnet.servicedesk.asset.action.AssetDefAction.execute(AssetDefAction.java:796)
at com.adventnet.servicedesk.asset.action.MSPAssetDefAction.execute(MSPAssetDefAction.java:39)

Cause:

Issue is because those assets which has this issue does not have department assigned to it properly. 

Fix:

Navigate to Assets list view->Select all the assets that has this issue->Actions-> Modify State->Assign to Department->Select the Account and Department and save.

If there are more number of assets in trouble, you can use this below query to find out the same,

select r.resourcename,r.ciid,ro.deptid,dd.deptname,dd.siteid from resources r inner join resourceowner ro on r.resourceid=ro.resourceid inner join departmentdefinition dd on ro.deptid=dd.deptid where dd.siteid is null

                  New to ADSelfService Plus?

                    • Related Articles

                    • Asset Scan Issues

                      1. Either access denied for the user or the remote DCOM option might be disabled in the workstation. 2. User does not have the access privileges to perform this operation. 3. One of the WMI components is not registered properly. 4. Execution failure ...
                    • Script for Mandating Asset field in Request Creation/Edit page

                      Please Use the below script in FAFR to mandate Asset field in the Request Creation/Edit page if(jQuery("#selectedCIs").val() == ""){ alert("Asset(s) field cannot be empty."); $CS.stopFormSubmission(); }
                    • Blank screen while opening timesheet

                      Issue : While opening a timesheet, the page appears blank like the below screenshot Cause : The issue occurs if the date format is set to dd.mm.yyyy Solution : Please login as the user, click on the user badge on the top right corner, click on ...
                    • Query to show Asset state history ( MSSQL)

                      Tested in MSSQL build (14306) SELECT res.resourcename 'Asset Name', res.assettag 'Asset Tag',res.serialno 'Asset Serial No.', rs2.statedesc 'Previous State',rs1.statedesc 'Current State',DATEADD(s,DATEDIFF(s,GETUTCDATE() ,getdate()) + ...
                    • When will the Assets get duplicated ?

                      Please find the possible scenarios when the machines are renamed with _old Scenario 1: When the workstations are swapped in the network. Consider two workstations, MACHINE-A with service tag ST-1 and MACHINE-B with ST-2. Both the workstations are ...