Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
11 subscribers
Views
2705 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
Hi, What could be the cause of following error? parameter lo
Siby
over 10 years ago
Hi,
What could be the cause of following error? parameter looks same in Records and the related process model!
Could Not Display Form
An error occurred while applying the context for the Shipment Template related action [identifier=10,002]. Details: Could not find variable 'rp!ShipmentID'
Thanks
Stephen
...
OriginalPostID-105352
OriginalPostID-105352
Discussion posts and replies are publicly visible
0
Sathya Srinivasan
Appian Employee
over 10 years ago
you might want to try rf!ShipmendID assuming this is a variable in your Record.
rp is Record Property. The only record attribute currently exposed is rp!id which is something you'd use in Related Actions. Record Fields (rf) is what you would want to use in defining your Record Layout.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Siby
over 10 years ago
Hi Sathya, its giving similar error, ( rp! replaced with rf!). Not, sure where is it expecting this variable.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 10 years ago
Do you have a variable or field called ShipmendID with that exact type-case? Is this entity backed or process backed Record? Make sure that your variable names are exactly the same including the type-case.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 10 years ago
If you're building your Dashboard based on a set of rules, check if any of the parent rule or child rule is referencing to this. You can use the Rules dependency checker in the Rules interface to navigate between Rule parent and Rule Child
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Siby
over 10 years ago
Its entity backed record and variable name is ShipmentID in both side.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Siby
over 10 years ago
Just one rule is used to render the dashboard it's working fine and ShipmentID displayed correctly
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Siby
over 10 years ago
hi Sathya,
Its working when I changed the context expression to {ShipmentID: rp!id}....but the PK of my entity is "ShipmentID"..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 10 years ago
Right, so we are talking about related actions here, right? It'd be useful if you provide where this error is happening so its easier to pin-point the issue in the future.
Having said that, you can only pass in rp!id as parameter when invoking related action. rp!id will automatically map to the primary key of your record type (for e.g. it will point to the PK of the db table for an entity backed record or process id for a process backed record). By this way, you get the key in your model as a parameter and process it accordingly. Thanks for clarifying the situation
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel