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
9 replies
Subscribers
4 subscribers
Views
2680 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Reports
161364 - no subject - my link to records doesn't work:\nlinks:
johndynelt
over 9 years ago
my link to records doesn't work:
links: apply(
a!recordLink(
label: "Go to record view",
recordType: cons!CONS_RRF_Records,
identifier: _,
dashboard: "summary"
),
local!datasubset.identifiers
I'm getting the error: "An Error Has Occurred
The record data does not exist, has been deleted, or you do not have sufficient privileges to access it. (APNX-1-4205-006)".
The weird thing is, the link works fine on the first two rows.
OriginalPostID-161364
Discussion posts and replies are publicly visible
0
gayathris
A Score Level 1
over 9 years ago
Hi Johndynelt,
This error usually happen when,
1.User Don't have a sufficient privilege to access a that record.
2.Identifiers values that you have passed to create a record link may be invalid.
Print your local!datasubset.identifier to verify if the corresponding identifier has a valid record or not.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
johndynelt
over 9 years ago
Seems the problem are my identifiers. I'm not getting the correct index id.
So I changed it from "local!datasubset.identifiers" to "index(local!datasubset.data, "index_id", null)" and its now working.
Thanks gayathris!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
I also saw this behavior. Having a multiple integer containing record ids does not work. But providing exactly the same ids from the CDT fields does work. I solved it the same way as you did, but I do not understand what makes the difference.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
johndynelt
over 9 years ago
@stefanh791 i also thought that the first one would work just fine.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
Me to. Maybe we can get an answer from Appian on this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
How are you creating the datasubset? If you're using todatasubset, try using a!dataSubset instead as then you'll be able to define the identifiers when you create the datasubset.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
I am keenly following this discussion as I have faced a similar issue but not particularly while accessing record but at the time of fetching the data from report. My observartions are that, Appian is some times returning the data of data type called 'List of Variant'. When we pass the same data without casting (to Integer or String etc) to any other rule or function which accepts 'Any Type' as input, the data isn't passed properly. Simply speaking, I observed a failure case when an object expects 'Any Type' as input and we are trying to pass 'List of Variant'. Though this isn't happening everywhere, in few places, this flaw prevails.
So a query from me is, Is Appian not able to understand and accept the 'List of Variant' data type when 'Any Type' is expected type of input?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Robert Shankin
Appian Employee
over 9 years ago
You can force a label like the one described with an apply() over a repeat() that accounts for the size of the array.
I tried to contextualize according the the example given.
a!gridTextColumn(
label:"",
field: "someField",
data:
apply(
repeat(
times:_,
input: "Go to Record View"
),
{length(local!dataSubset.data)}
),
links: {
apply(
a!recordLink(recordType: cons!CONS_RRF_Records, identifier:_),
index(local!datasubset, "identifiers",{})
)
}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
johndynelt
over 9 years ago
@Rob Shankin thanks! Will try to explore this and maybe use this next time.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel