The problem is with the Folder information for a document library.
For a document library the field Folder is “generated” automatically – and is displayed correctly when it is shown as a normal field or when <%Folder%> is used in the body of the Custom Display – but when you create a calculated field using <%Folder%> it gives an error of “System.Data.DataRowView” instead of the path to the folder in the document library.
