Error: "Invalid function document"

I am getting the below error message:
Expression evaluation error in rule 'cmedgetdocumentname' at function 'document': Error evaluating function 'document' : Expression evaluation error : Invalid function document

the sample code:
a!gridTextColumn(
label: "Document Name",
                                        data:apply(fn!document(_"name),local!docdetails.data.iAttachmentId),
links: apply(a!documentDownloadLink(_,""),local!docdetails.data.iAttachmentId),
alignment: "LEFT"
),

Any suggestion?

OriginalPostID-190260

OriginalPostID-190260

  Discussion posts and replies are publicly visible