Maximo

Maximo

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

 View Only

JSON Path was not found error

  • 1.  JSON Path was not found error

    Posted Thu March 17, 2022 02:32 PM
    Edited by System Admin Wed March 22, 2023 11:52 AM
    Edited to include information on the fix.

    I have a JSON Mapping where I map an inbound message to SR. There is an array object attachments that is mapped to DOCLINKS. Everything works fine if attachments exists. If it does not, then, I get the error - BMXAA9287E - The JSON Path attachments was not found. I tried a condition the Object Mapping (typeof attachments != 'undefined') but that didn't work. Has anyone had to deal with this situation before?

    If the condition doesn't provide the solution, is the only option to check for the existence of 'attachments' in an automation script and set the appropriate mapper that excludes the mapping of attachments to DOCLINKS? This isn't ideal if there are additional objects that have to be handled, with one, multiple, or none, of those objects in the message!

    Looks like it was reported already and there's a fix that we've to install - https://www.ibm.com/support/pages/apar/IJ36434

    Thanks in advance!

    ------------------------------
    MANU MAGANTI
    EMA Canada| Inc.
    OAKVILLE ON
    ------------------------------
    #AssetandFacilitiesManagement
    #Maximo