We have the need to export a lot of receipts, one receipt at a time, from three different systems. We wrote an autoscript to retrieve the records via Where Clause, which we are then calling via the OSLC URL.
For two systems, this worked just fine, but we can't make it work on the third system. Two of the systems are the same fix pack (7.6.0.9) - one works, and the other doesn't. In the log, it looks like the autoscript is running, but nothing's happening. We've checked the usual things, i.e. the Publish Channel is enabled, etc. Can anyone help with this?
The script is:
from psdi.iface.mic import MicService
from psdi.security import UserInfo
from psdi.server import MXServer
from psdi.mbo import MboConstants
from psdi.util.logging import MXLogger
from psdi.util.logging import MXLoggerFactory
from java.lang import System
from java.util import Calendar
from java.text import SimpleDateFormat
logger = MXLoggerFactory.getLogger("maximo.script");
logger.info("############## SCO Terminal Journals Exporting Started")
myMXServer = MXServer.getMXServer()
userInfo = myMXServer.getSystemUserInfo()
logger.info("############## userInfo = "+str(userInfo))
MatUseSet = myMXServer.getMboSet("SERVRECTRANS",userInfo)
MatUseSet.setWhere("servrectransid in (21316318062) ")
MatUseSet.reset();
matusecount=MatUseSet.count()
logger.info("############## matusecount = "+str(matusecount))
for i in range(matusecount):
logger.info("############## Inside If = "+str(matusecount))
matuseid=MatUseSet.getMbo(i).getInt("SERVRECTRANSID");
whereclause="servrectransid="+str(matuseid)+"";
logger.info("############## whereclause = "+str(whereclause))
myMXServer.lookup("MIC").exportData("DPWSCOSERREC","DPWGENGES",whereclause,userInfo,0)
Thanks in advance for any help.
Shannon
#Integrations------------------------------
Shannon Rotz
InComm Solutions Inc.
------------------------------