Check your SQL query, make sure documentId column is there, because you are printing the documentid of the current page where your repeater is. if documentid is not returned by your query - then {%DocumentID%}
is taken from {%CurrentDocument.DocumentId}