You are viewing limited content. For full access, please sign in.

Question

Question

Invalid object name on Entry.TryGetEntryInfo method call

asked on July 13, 2016 Show version history

In the RepositoryAccess SDK I am calling ...

Entry.TryGetEntryInfo(parentFolder.FolderInfo, documentName, session);

This call is occassionally throwing an InvalidOperationException with a message of "Invalid object name".  What could cause this to happen?  The parentFolder.FolderInfo is valid and the folder does exist.  The session is valied.  The documentName does not exist so I would expect it to return null, not throw an exception.

 

0 0

Answer

SELECTED ANSWER
replied on July 13, 2016

This can happen if the document name contains a backslash or has a trailing space.

1 0
replied on July 13, 2016 Show version history

My document name had a trailing space!

0 0

Replies

replied on July 13, 2016

You are right. This function returns entryinfo object if found and NULL if not found.

It seems like you may be entering invalid character.

Please take a look at this and let me know if it helps.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.