9 Replies Latest reply: Jun 22, 2015 6:19 AM by ioannis giakoumakis RSS

    QVMC fail to save project after relaoad

    J K



      I have small project which is reloaded each 2 minutes in QVMC, Usually it works fine but sometimes it fails with following error from TaskLog:


      6/22/2015 08:27:18.4053882ErrorThe task "APP_EY/FAB_RealTime_LIVE.qvw" failed. Exception:

      QDSMain.Exceptions.DistributionFailedException: Distribute failed with errors to follow. ---> QDSMain.Exceptions.WritePermissionkException: Failed to get write permission for file: D:\BI\APP_EY\FAB_RealTime_LIVE.qvw ---> System.IO.IOException: The process cannot access the file 'D:\BI\APP_EY\FAB_RealTime_LIVE.qvw' because it is being used by another process.

         at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

         at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

         at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

         at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)

         at QDSMain.ReloadTask.CheckWritePermissionForFile(String fileName)

         --- End of inner exception stack trace ---

         at QDSMain.ReloadTask.CheckWritePermissionForFile(String fileName)

         at QDSMain.ReloadTask.Reload(String fileName, TaskResult taskResult, String sectionAccessUserName, String sectionAccessPassword, eReloadOptions reloadOption, String variableName, String variableValue, Boolean moniterCpuUsage)

         at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)

         --- End of inner exception stack trace ---

         at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)

         at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)


      I not sure what exactly cause the file to be locked but I think it can be caused by user who is trying to open it in web browser. So QV is fetching data from project but at the same time QMVC is trying to save it.


      The option for keeping the project in memory and reload with first user is switched on but probably first user is accessing it at this time.


      Not sure if this is really the right reason but can't find any other as nothing should be using this QVW file.



      Can anybody know if there is anything what can be done about this? I have also another 2 hours long reload and sometimes it happens also at this one. SO users needs to wait another 2 hours to get fresh data.



      Thanks for any help,