GetLatestFileByMasterId
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have used the JobProcessorApiSamle to create a job to create PDF and DWG files. This is working correctly if I used the command by selecting a file and click the right mouse button.
If I add the job with the lifecylce-event-editor, and I want to run the job when a file gets the released state, then i receive an error :"The given key was not present in the dictionary".
I think it has to do with a version conflict, because the properties of files are also updated by the standard jobs which are also running when i file gets the released state, and the file gets then a new id (i think).
In the jobhandler the following row gets the file:
"Dim file As Autodesk.Connectivity.WebServices.File = _
serviceManager.DocumentService.GetLatestFileByMasterId(fileMasterId)"
So I think it's received the latest version.
What could be wrong?
Regards,
Nico Blok.
