I keep getting the following error with creating the process model for the request maintenance form, any idea how to fix it please?
Discussion posts and replies are publicly visible
Hi michaellea5398
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)
Hi, how do I check if Pv!Vehicle has data?
On the toolbar of the process monitoring you will find the tab "Process Dettails"
No, its not showing? How do I fix it?
use index function instead of the dot(.) operator.
Can you give me an example?
index(pv!Vehicle, "vehicleyear", null) we should always try to use index when we are passing the values so that if we do not find the particular field it passes the default value and our code do not break.
Unknown said: index(pv!Vehicle, "vehicleyear", null) we should always try to use index when we are passing the values so that if we do not find the particular field it passes the default value and our code do not break.
Also, while the result is the same in this case, I prefer the property() function when retrieving a value by field name. Who's with me
property(pv!Vehicle, "vehicleyear", null)
Yes we can use the property function as well.