Maximo Integration

 View Only
  • 1.  MXRECEIPT - Rest API

    Posted Wed March 02, 2022 10:59 AM
    Hi -  Trying to load receipts from external system. Using the following json payload. 

    /maximo/oslc/os/MXRECEIPT

    {  
          "_action""Add",  
          "ponum""PO-TEST",
          "description""TESTING",
          "externalrefid""12345",
          "issue""1",
          "polinenum""1",     
          "porevisionum""0",
          "positeid""TEST",
          "receiptquantity""4.0",
          "refwo""TESTWO",
          "siteid""TEST",     
          "sourcesysid""EXTSYS"
    }

    running into the following error 
    {
        "oslc:Error": {
            "oslc:statusCode""400",
            "spi:reasonCode""BMXAA1312E",
            "oslc:message""BMXAA1312E - The PONUM object is required for this transaction. Review the error stack in the log files in the <HOME> directory to determine why the PONUM object is missing.",
            "oslc:extendedError": {
                "oslc:moreInfo": {
                    "rdf:resource""https://maximotest.com/maxrest/oslc/error/messages/BMXAA1312E"
                }
            }
        }
    }


    seems to be issue with json load. as seeing error is in processing class. Any ideas on what is missing.



    ------------------------------
    vaigai puyal
    ------------------------------


  • 2.  RE: MXRECEIPT - Rest API

    Posted Wed March 02, 2022 11:01 AM
    try putting the ?lean=1 parameter on your URL - that may help

    ------------------------------
    Tom Sarasin
    Maximo Designer
    IBM
    (978) 899-2592
    ------------------------------



  • 3.  RE: MXRECEIPT - Rest API

    Posted Wed March 02, 2022 11:12 AM
    Good catch. That fixed it. Thanks!

    ------------------------------
    vaigai puyal
    ------------------------------