posted on March 6, 2018 Show version history

Imagine I have the following directory structure.

accounts/
    shortcuts
        account_123 (this is a shortcut)


stage_1/
    account_123 (this is the target)
        doc_1

 

If I am trying to locate doc_1 by name and use the following method 

var entry = Entry.TryGetEntryInfo("/accounts/shortcuts/account_123/doc_1", Session);

Most of the time the entry comes back correctly, however sometimes the entry will come back NULL even though it exists. 

I am having to use the following code in order to work around this issue.

EntryInfo entry = null;
while(entry == null){
   entry = Entry.TryGetEntryInfo("/accounts/shortcuts/account_123/doc_1", Session);
}

Usually on the second attempt it works without issue. I have been able to replicate this on multiple versions of the SDK and can replicate this issue on multiple repositories.

 

I assume this is not expected behavior and the workaround is troublesome when wanting to getOrCreate entries.

Also, this behavior is the same regardless of using TryGetEntryInfo and Document.GetDocumentInfo.

 

1 0