Maximo

Maximo

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

 View Only
Expand all | Collapse all

Getting "Code : 499 Message :Token Required" while Mapping JSON Data by using GIS URL

  • 1.  Getting "Code : 499 Message :Token Required" while Mapping JSON Data by using GIS URL

    Posted Fri September 04, 2020 07:20 AM
    Edited by System Admin Tue August 22, 2023 04:44 PM
    Hi All,

    I am new to Maximo Spatial and I am trying to get the JSON Data by using the GIS URL but i am getting "Code : 499 Message :Token Required" which i can understand that Maximo requires token authentication to receive JSON data but those credentials are already provided in Map Manager application.

    Please suggest how to solve this.

    I can able to see the below IBM link which provides some information related to this.

    IV94948: JSON MAPPING APPLICATION DOES NOT POPULATE THE JSON DATA FIELD IF THE URL BEING USED IS FROM A TOKEN ENABLED MAP SERVICE.
    Ibm remove preview
    IV94948: JSON MAPPING APPLICATION DOES NOT POPULATE THE JSON DATA FIELD IF THE URL BEING USED IS FROM A TOKEN ENABLED MAP SERVICE.
    PROBLEM DESCRIPTION: When creating a new JSON mapping for a map service with token
    View this on Ibm >

    Thanks,
    Sudhindra


    #Maximo
    #MaximoSpatial
    #AssetandFacilitiesManagement


  • 2.  RE: Getting "Code : 499 Message :Token Required" while Mapping JSON Data by using GIS URL

    Posted Thu September 10, 2020 07:55 AM

    You can copy the json content directly into the JSON Data field. You can also define username/password into the corresponding record inside the End Point that has the same name of your GIS Object.

    If you go on the second approach, make sure the end point is referenced in the JSON Mapping record.



    ------------------------------
    Joao Souto
    Maximo Product Architect
    IBM
    ------------------------------



  • 3.  RE: Getting "Code : 499 Message :Token Required" while Mapping JSON Data by using GIS URL

    Posted Mon September 14, 2020 05:49 AM
    Thanks Joao Souto for the response.

    Your suggestion was helpful and I am following instructions from below URL

    https://www.ibm.com/support/pages/configuring-inbound-json-mapping-records-spatial-use

    In the URL, the 5th point talks about JSON data field on how to retrieve JSON attributes by using query option.
    After 5th step I tried with URL option by providing username and password in the end point which you mentioned but received below error

    BMXAA1482E - The response code received from the HTTP request from the endpoint is not successful.
     
    so I have copy pasted the JSON query output manually as you suggested to JSON data field and tested the map by using "Test Mapping" from more actions menu.
    I can able to see Response after clicking the test button as well. Hope the steps which I followed to paste the JSON data is correct.

    1. As URL option is giving error and is there any problem in Map Manager application relationship where clause ?
    2. is there any dependency on queue configuration in external systems ?



    ------------------------------
    Thanks
    Sudhindra Shivanagere
    ------------------------------



  • 4.  RE: Getting "Code : 499 Message :Token Required" while Mapping JSON Data by using GIS URL

    Posted Fri September 18, 2020 10:52 AM
    I have created sample mapping by providing manual input in to JSON field and later I have taken the url from log which is having token authentication and did a small change to fetch all fields.

    Currently I can able to get the JSON data from GIS system but the mapped fields are not getting created / updated in location object in Maximo.
    Just want to know is there any mandatory fields i need to map in JSON mapping application to inbound the data. Currently i can able to see that data is loaded to inbound queue but that is not getting loaded in Maximo location object where logs are also not showing any errors during the load (In  message tracking application i can able to see that message is getting processed).

    I can able to see process flag which i am using is getting updated from value 1 to 2 in GIS.
    Another question is MXCREATIONSTATE we have to create manfully in GIS system?

    Your suggestion will be helpful for me to overcome the challenge which i am facing to load the data from GIS to location object. Thanks for your help.

    ------------------------------
    Thanks
    Sudhindra Shivanagere
    ------------------------------