Error in Preventive Maintenance application while trying to run Forecast Generation in the background.
Steps to replicate the problem:
1. Go to Preventive Maintenance application.
2. Bring up any active PM record.
3. From More Actions, click on Generate Forecast.
4. From Generate Forecast dialog, enter the following and click OK:
Forecast For (Days) = 90
Run Forecast Generation in the Background? = Yes
At this point, system throws the error "BMXAA4190E - Job name PMFORECASTGEN is not in the value list.".
Resolving the problem:
Please check if you have any ORGID and/or SITEID defined for ASYNCJOBNAME domain value for PMFORECASTGEN by running the query below:
SELECT ORGID, SITEID FROM ALNDOMAIN WHERE DOMAINID = 'ASYNCJOBNAME' AND VALUE = 'PMFORECASTGEN';
And if so, run the following update statements to set them to null:
UPDATE ALNDOMAIN SET ORGID = NULL WHERE DOMAINID = 'ASYNCJOBNAME' AND VALUE = 'PMFORECASTGEN';
UPDATE ALNDOMAIN SET SITEID = NULL WHERE DOMAINID = 'ASYNCJOBNAME' AND VALUE = 'PMFORECASTGEN';
Running a task in the background generates a MAXASYNCJOB object. This object has no attributes for neither Organization nor Site. When Maximo attempts to find a matching ASYNCJOBNAME domain value, it treats the Organization and Site of the new MAXASYNCJOB (in this case, PMFORECASTGEN) as null. If there is no ASYNCJOBNAME domain value for PMFORECASTGEN with null Organization and null Site, the error "BMXAA4190E - Job name PMFORECASTGEN is not in the value list." is thrown, as the domain value lookup fails.