MS 2.9.4 SQL Timeout auf 120sec
This commit is contained in:
@@ -1015,13 +1015,11 @@ Public Class ClassNIWindream
|
||||
Return Nothing
|
||||
End Try
|
||||
End Function
|
||||
Public Function NEW_MOVE_FILE(targetpath As String, sourcepath As String, oMethod As String) As Boolean
|
||||
Public Function NEW_MOVE_FILE(targetpath As String, sourcepath As String, oMethod As String, pFileName As String) As Boolean
|
||||
Dim oWMFile As WINDREAMLib.WMObject
|
||||
Try
|
||||
If My.Settings.vLogErrorsonly = False Then
|
||||
_Logger.Info($"targetpath ({targetpath})")
|
||||
_Logger.Info($"sourcepath ({sourcepath})")
|
||||
End If
|
||||
_Logger.Debug($"targetpath ({targetpath})")
|
||||
_Logger.Debug($"sourcepath ({sourcepath})")
|
||||
|
||||
|
||||
Dim sw As New ClassStopwatch("NEW_MOVE_FILE")
|
||||
@@ -1035,11 +1033,18 @@ Public Class ClassNIWindream
|
||||
|
||||
sourcepath = sourcepath.Replace("\\windream\objects", "")
|
||||
sourcepath = sourcepath.Replace("W:\", "\")
|
||||
targetpath = targetpath.Replace("\\", "\")
|
||||
Const WMEntityDocument = 1
|
||||
Dim IndexwertAusWindream As Object = Nothing
|
||||
|
||||
_Logger.Debug($"NEW_MOVE_FILE getting WMObject for: {sourcepath}")
|
||||
oWMFile = oWMSession.GetWMObjectByPath(WMEntityDocument, sourcepath)
|
||||
Try
|
||||
oWMFile = oWMSession.GetWMObjectByPath(WMEntityDocument, sourcepath)
|
||||
Catch ex As Exception
|
||||
_Logger.Warn($"Error in NEW_MOVE_FILE - GetWMObjectByPath [{pFileName}] - Source[{sourcepath}]")
|
||||
Return False
|
||||
End Try
|
||||
|
||||
If oWMFile.lock Then
|
||||
oWMFile.aPath = targetpath
|
||||
oWMFile.Save()
|
||||
@@ -1055,6 +1060,7 @@ Public Class ClassNIWindream
|
||||
End If
|
||||
Catch ex As Exception
|
||||
_Logger.Error(ex)
|
||||
_Logger.Warn($"Error in NEW_MOVE_FILE pFileName [{pFileName}] - [{targetpath}]")
|
||||
If Not IsNothing(oWMFile) Then
|
||||
oWMFile.unlock()
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user