Graphical Work Week allows copying of Saved Queries from WOTRACK but the same query that runs in WOTRACK (or in Oracle SQL Developer) does not run in GWW without modifications.
Currently, I am getting an unknown error.
When reviewing the query in SDM (which is great btw), I see 2 warnings which are a bit lacking in explanation.
Error/Warning |
Description |
Fix Option |
QUERYHISTORY |
history is added by Scheduler and if added in the query could be a performance issue |
Return to original schedule and make changes to the query |
RESTRICTDATES |
Consider using restrict work to dates |
Return to original schedule and make changes to the query |
QUERYHISTORY - the sql restricted with a historyflag = 0
RESTRICTDATES - the sql limited the retrieval of work to about 6 weeks
The query runs fine in WOTRACK Where Clause and in a select in Oracle developer.
siteid = 'AFS'
and historyflag=0
and status not in ('WAPPR','ENTPLNG','PLNG', 'PLND','COMP', 'PENDCAN', 'PENDCLOSE')
and worktype not in ('AD')
and srp_ucr in ('1', '2', '3')
and ((schedstart is not null and (schedstart < (trunc(sysdate, 'iw') + 42 - 1/86400)))
or (pmnum is not null
and schedstart is null
and (targstartdate <(trunc(sysdate, 'iw') + 42 - 1/86400))))
An expansion on the meaning of these 2 Warnings (or any of the other 5 ERROR/WARNIING) and guidance on what to look for when Copying and modifying WOTRACK queries to run in Graphical Work Week would be greatly appreciated.
Thanks,
------------------------------
Orin Huey
SRP
AZ
------------------------------
#AssetandFacilitiesManagement#Maximo#MaximoScheduler