Maximo Open Forum

 View Only

 BMXAA4153E - null is not a valid site

  • Administration
  • Integrations
Dylan McNamara's profile image
Dylan McNamara posted 10-24-2022 13:33

I am standing up a development environment of Maximo and I am running into the following error trying to pull down Work Order data:

{
    "Error": {
        "errorattrname": "siteid",
        "extendedError": {
            "moreInfo": {
                "href": "http://WIN-DRHH4QME3HB.mshome.net:80/maximo/oslc/error/messages/BMXAA4153E"
            }
        },
        "errorobjpath": "workorder",
        "correlationid": null,
        "reasonCode": "BMXAA4153E",
        "message": "BMXAA4153E - null is not a valid site. Enter a valid Site value as defined in the Organization Application.",
        "statusCode": "400"
    }
}



Here is my request:

POST /maximo/oslc/os/MXAPIWODETAIL?siteid=BEDFORD&lean=1&ignorecollectionref=1&oslc.select=wonum,description,description_longdescription,status,owner,rel.worklog{*}&oslc.where=wonum=1000 HTTP/1.1
Host: WIN-DRHH4QME3HB.mshome.net:80
apikey: <generated api key for maxadmin>
Content-Type: application/json
Accept: application/json
Cookie: JSESSIONID=0000Ri17i6JtQIUNlW1_IxTplNo:-1


I am using postman. I am able to create a SR's just fine. Any help or references to helpful articles would very much appreciated 

Steven Shull's profile image
Steven Shull
Can you clarify what you're trying to do in your request? You have a POST request (which would be creating a WO) but have oslc.select syntax (which would be used in a GET request)? I don't see a body in your request which is how you would need to provide the data (siteid, assetnum, description, etc.) that you want to set on the work order.
Dylan McNamara's profile image
Dylan McNamara

You nailed it -- my issue was that I was using a POST when I should have used a GET in this scenario... I totally overlooked that after switching from creating an SR to trying to pulling down Work Order info. Thanks Steven!