I do get the below error randomly and could not able to figured out what causing this error
Error:
Invalid parameter for function URLFOR Error is in expression '{!URLFOR($Action.Attachment.Download, item.AttachmentID)}' in component
Visualforce page Code:
<apex:column headerValue="Employee">
<apex:outputLink value="{!URLFOR($Action.Attachment.Download, item.AttachmentID)}" target="_blank">{!item.AttachmentName}</apex:outputLink>
</apex:column>