Maximo Open Forum

 View Only

Automation Script - Unable to add COMMLOG to CLOSED service request.

  • 1.  Automation Script - Unable to add COMMLOG to CLOSED service request.

    Posted 07-06-2025 14:48

    Been using an automation script for some time now that sends out communication templates based on the changes to a status on a service request.

    The below code behaves exactly as expected however when the SR is in a CLOSED or CANCELLED status we receive: 

    psdi.util.MXAccessException: BMXAA0024E - The action ADD is not allowed on object COMMLOG. Verify the business rules for the object and define the appropriate action for the object.
    commSet = srMbo.getMboSet("COMMLOG")
    comm = commSet.add()
    comm.setValue("TEMPLATEID", "MYTEMPLATE")
    comm.sendMessage()

    Is it possible to force the email to send and for the communication log record to be created even if the SR is being changed to CLOSED status?


    #Customizations

    ------------------------------
    Andrew Weaver
    TechAdept Solutions
    ------------------------------