Skip to main content
Participating Frequently
September 13, 2022
Question

Request maintenance Process model

  • September 13, 2022
  • 11 replies
  • 5 views

I keep getting the following error with creating the process model for the request maintenance form, any idea how to fix it please?  

 ERROR An error occurred while evaluating expression: =localize("de","","fr_CA","","ru","","sv","","pt","","ko","","el","","it","","fr_FR","","es","","ar","","zh_HK","","en_GB","","en_US",tostring("Request Maintenance" & pv!Vehicle.vehicleyear & " " & pv!Vehicle.vehiclemake & " " pv!Vehicle.vehiclemodel ),"ja","","es_MX","","zh_CN","","pl","","nl","") (Expression evaluation error at function 'tostring' parameter 1: Invalid index: Cannot index property 'vehicleyear' of type Text into null value of type AX_Vehicle?list)

    11 replies

    New Participant
    September 14, 2022

    Hi [mention:f0bd4e317b8142ee905bd53aa9bb8837:e9ed411860ed4f2ba0265705b8793d05]

    The reason for error would be that pv!Vehicle is null so it is not able to get the fields vehicleyear or vehiclemake  or vehiclemodel .

    Can you check if PV Vehicle has data.

    Also as a best practice, it is recommended to access values from CDT in null safe manner using index or property functions for example in your case you can access as index(pv!Vehicle, "vehicleyear", null) 

    Participating Frequently
    September 19, 2022

    Hi, how do I check if Pv!Vehicle has data? 

    gabriele.camilli
    Employee
    September 19, 2022

    On the toolbar of the process monitoring you will find the tab "Process Dettails"