cancel
Showing results for 
Search instead for 
Did you mean: 

Document found by IdRef but not found by PathRef

Erwan_Fouillat
Champ in-the-making
Champ in-the-making

We have an random error, when we search an document by path (CoreSession.exists(new PathRef("'the path")) we have an Document Not Found Exception. But the document was found by ID (CoreSession.exists(new IdRef("'the id")) or by query (SELECT * FROM "type of Document), the document exist and the path is correct. Same think with the api play ground.

An idea for the error?

3 REPLIES 3

mathias_lin
Star Contributor
Star Contributor

Are there special characters in the file name? Cause I experienced similar problem (see https

Florent_Guillau
World-Class Innovator
World-Class Innovator

Obviously this works internally in Nuxeo, which uses this all over the place. So you'll have to provide a concrete example of a failure for us to diagnose anything.

Erwan_Fouillat
Champ in-the-making
Champ in-the-making

Thanks for your responds.

The problem come from the user workspace, which was duplicated. Same name, same path.

After, for an search by path, on time nuxeo search in a workspace, ohter time in the other.

The duplicate workspaces are created at the first connexion of an new user in our HMI. Two simultaneous webservice calls created a workpace (as it does not yet exist) in two different CoreSession.