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.
Why are you using the "localize()" function here? The way you have it set up, it's not actually doing anything..
In regards to your error, the prior commentors here were asking you to check your Process Instance data to verify whether pv!vehicle contains a value. Were you able to do that?
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.
Yes I did and I noticed it does not contain value, and I'm trying to add the value for it so that it passes from the Interface to the process model and its not.