Maximo Integration and Scripting

  • 1.  create PO with PRNUM,PRLINENUM in POLINE object

    Posted Mon May 19, 2025 10:10 AM

    Hi All,

    I am trying to create PO/POLINE(with PRNUM,PRLINENUM ref in POLINE) record through REST API call, here is my Transaction data.

    {
        "ponum": "PO0003_1",
        "revisionnum": 0,
        "revcomments": "Rev 0",
        "siteid": "TEST",
        "issuedate": "2025-05-15T11:15:26+00:00",
        "orgid": "CAN",
        "status": "APPR",
        "description": "test PO-PR0003",
        "requestedby": "KK",
        "sourcesysid": "OR",
        "sendersysid": "OIC",
        "potype": "STD",
        "allowreceipt": true,
        "vendor": "2611",
        "poline": [
            {
                "polinenum":1,
                "conversion": 1.0,
                "linecost": 2250,
                "loadedcost": 2250,
                "orderqty": 5,
                "enterdate": "2025-05-15T11:16:03+00:00",
                "orderunit": "EA",
                "orgid": "CAN",
                "restype": "AUTOMATIC",
                "itemnum": "KKITEM001",
                "itemsetid": "ITEMSET",
                "unitcost": 450,
                "linetype": "ITEM",
                "category": "STK",
                "gldebitacct": "00000-00000-00000",
                "requestedby": "KK",
                "prnum":"PR0003",
                "prlinenum":1
            }
        ]
    }

    while i am sending this JSON data, getting the below error.

    {
        "Error": {
            "extendedError": {
                "moreInfo": {
                    "href": "https://main.manage.test-dev.suite.maximo.com/maximo/api/error/messages/BMXAA4214E"
                }
            },
            "reasonCode": "BMXAA4214E",
            "message": "BMXAA4214E - An unknown error has occurred. Please contact your system administrator for assistance. Gather the logs from the <HOME> directory and determine where and why the error occurred.\n\tnull",
            "statusCode": "400"
        }
    }

    there is nothing in log related with this BMXAA4214E error.

    any help on this issue would be appreciated. 

    Regards,

    Karthik Krishnamurthy



    ------------------------------
    ---------------------------
    Karthik Krishnamurthy
    ---------------------------
    ------------------------------


  • 2.  RE: create PO with PRNUM,PRLINENUM in POLINE object

    Posted Tue May 20, 2025 09:15 AM

    Since you are not passing the storeloc, assume it is a direct charge? If so, you may want to set the "issue" to true.



    ------------------------------
    Nivin Jacob George Subject Matter Expert
    Managing Consultant-SME
    BPD Zenith
    Melbourne VIC
    ------------------------------



  • 3.  RE: create PO with PRNUM,PRLINENUM in POLINE object

    Posted Tue May 20, 2025 09:15 AM

    The "null" part in this text is the key information here:

      "message": "BMXAA4214E - An unknown error has occurred. Please contact your system administrator for assistance. Gather the logs from the <HOME> directory and determine where and why the error occurred.\n\tnull",

    The null means that the java code was trying to use an object that wasn't populated.

    So the Java code will be retrieving an object and then trying to call a method on that object.

    However the object wasn't populated so the call fails with a null error.

    There will probably be at least one error in the logs although it won't be BMXAA4214E. The good news is that the BMX error code means that WebSphere code handled the data and passed it to the Maximo code.

    Way forward

    • Look for references for NullPointerException or other errors.
    • Open the front-end and try and manually replicate the operation - see what errors occur.
    • Consider sharing extracts of the logs here - remember to remove any sensitive information



    ------------------------------
    Mark Robbins
    Support Lead/Technical Design Authority / IBM Champion 2017 - 2023
    Cohesive (previously Vetasi Limited)
    https://www.linkedin.com/pulse/maximo-support-advice-from-non-ibm-engineer-article-mark-robbins/
    ------------------------------