Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
Expand all | Collapse all

Not Valid Site Error - When Updating the data through POSTMAN

  • 1.  Not Valid Site Error - When Updating the data through POSTMAN

    Posted Thu May 08, 2025 11:41 PM

    Hi,

    I have created a custom object structure to update the data and configured the Object Structure authorization and Security.

    I have given the headers as

    Content Type - application/json

    x-method-override - SYNC

    patchtype - MERGE

                

    When i am trying to update the data of the records, i am getting below error

    {
        "oslc:Error": {
            "oslc:statusCode": "400",
            "errorattrname": "siteid",
            "spi:reasonCode": "BMXAA4153E",
            "errorobjpath": "operations",
            "correlationid": null,
            "oslc:message": "BMXAA4153E - null is not a valid site. Enter a valid Site value as defined in the Organization Application.",
            "oslc:extendedError": {
                "oslc:moreInfo": {
                    "rdf:resource": "http://localhost/maximo/oslc/error/messages/BMXAA4153E"
                }
            }
        }
    }

    Raw Data - 

    {
        "orgid":"US001",
        "siteid":"US13",
        "location": "98088",
        "operatingcosttotal": "223469"
    }

    Any advise will be really helpful.

    Thanks



    ------------------------------
    Chaitanya Kumar R
    ------------------------------


  • 2.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted Fri May 09, 2025 01:45 AM

    Hi Chaitanya,

    Could you please double check if your POST request contains this property: lean=1  as well.

    curl --location 'https://localhost/maximo/api/os/mxapilocations?lean=1' /
    


    ------------------------------
    Bartosz Marchewka
    IBM Maximo Consultant
    AFRY
    ------------------------------



  • 3.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted Fri May 09, 2025 02:04 AM
    Hi Bartosz,

    Yes, I have added that property _lean=1 but still getting the same error message.

    Thankyou





  • 4.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted Fri May 09, 2025 02:51 AM

    Hi,

    Could you please share the whole curl POST request without sensitive data?



    ------------------------------
    Bartosz Marchewka
    IBM Maximo Consultant
    AFRY
    ------------------------------



  • 5.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted Fri May 09, 2025 05:54 AM
    This is the maximo curl which I am using with post method https://localhost/maximo/oslc/os/operations?lean=1

    Thankyou 





  • 6.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted Mon May 12, 2025 02:56 AM

    Does user, which You are using for posting, has access to that site?

    Does simple GET query work on that object structure?



    ------------------------------
    Juris Flugins
    Technical expert
    AS Sadales tikls
    Rīga
    ------------------------------



  • 7.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted Tue May 13, 2025 01:24 AM
    Hi Juris,

    Yes, i have tried the GET method with the same URI and I am getting the response and there is no issue with GET, I am only facing issue when using POST or PUT

    Any help would be really.appreciated

    Thanks.





  • 8.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted Tue May 13, 2025 02:34 AM

    Hi Chaitanya,

    Maybe a silly question, but does the user you are trying to update the data with have a default insert site?

    ------------------------------
    Liliana Malaescu
    Senior Maximo Technical Consultant
    ZNAPZ
    ------------------------------



    ------------------------------
    Liliana Malaescu
    ------------------------------



  • 9.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted Tue May 13, 2025 02:40 AM
    Yes, I have double checked whether the user have default insert site or not and yes user have the Default Site.






  • 10.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted Thu May 15, 2025 02:57 AM

    Does this only happen when using POSTMAN?
    Can you try any other tool and see if it works? 

    Also try deleting cookies in POSTMAN:





    ------------------------------
    Gertjan Zomerdijk
    Gemba Services b.v.
    ------------------------------



  • 11.  RE: Not Valid Site Error - When Updating the data through POSTMAN

    Posted 18 hours ago

    Hi Chaitanya,

    Are you finding any solution? Please share here. I'm also faced with this issue



    ------------------------------
    Munikrishnan Raji
    ------------------------------