How can I wait for a media file to become available before running an Update command?

Former Member
Former Member

I am getting the following error message when I try to Update a media file right after it is created. How can I check or wait for the file to become available before calling the Update command? 

System.IO.IOException: The process cannot access the file '\\?\C:\Pl\filestorage\telligent.evolution.components.attachments\13\01\00\00\00\00\01\15\Pl-0454.jpg' because it is being used by another process.





Edited
[edited by: IbrahimK at 12:29 PM (GMT 0) on Tue, Mar 30 2021]
Parents
No Data
Reply
  • Debugging custom code and 3rd party components is out of scope for support here, but, I will note a few things to consider:

    1. Disable the metadata calls and try the completion script with no calls and then try each call individually to see if it is an issue with a specific call.
    2. Looking at your custom code, I would recommend using stream instead of ever trying to recreate a local file path -- that path generation logic is not supported and could change.
Children