Dear experts,
I working on Maximo Asset Management 7.6.1.1, writing Automation scripts type integration to process incoming request message from external system with option: Enterprise service, Request, User exit, Before External exit, Jython script simple as below:
from psdi.server import MXServer
from psdi.mbo import Mbo
selectedMBOs = mbo.getMboSet("SR")
if selectedMBOs is not None:
selectedMbo = selectedMBOs.moveFirst()
if invuselinerefs is not None:
mbo.setValue("DESCRIPTION", selectedMbo.getString("DESCRIPTION") + selectedMbo.getString("TICKETID") + selectedMbo.getString("ASSETNUM"))
print("LONGND RUN")
I always get the return error as:
<faultcode>soapenv:Server</faultcode>
<faultstring>BMXAA7837E - An error occured that prevented the SYNC.MXSRINTERFACE.USEREXIT.IN.BEFORE script for the null launch point from running.
NameError: name 'mbo' is not defined in <script> at line number 3</faultstring>
</soapenv:Fault>
It means that at runtime the "mbo" is not identified.
If i remote all the code, and keep the simple Printout statement, I got the normal response without error and I can see the result of Printout statement in the Log file. It mean that the integration automation script is already executed successful without "mbo" usage.
Please be noted that, this issue is not happened with other type of Automation scripts as with Launch Point. Just occurred with integration automation scripts.
Can anyone meet the same issue, what is happening with our system and how to resolve this.
Thank you so much!
Long.
#Maximo#Support#AssetandFacilitiesManagement#SupportMigration