Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm finding that the first time I call findFileByFileID() with a valid URN it fails. If I then iterate through all the files in code or just in the UI Dataview browse to where the file is, the call then doesn't fail. Snippet of C++:
auto ptrFile = ptrApplication->data()->findFileById( oFileURNAttribute->value() );
The ID I'm using is in the form : 'urn:adsk.wipprod:dm.lineage:A09KFuSFRWevaFnZKMhA1Q'
Is this expected behaviour? The documentation doesn't say anything about it needing the file to be already discovered before the findFileById() method works. It is very reproducible.
Solved! Go to Solution.