diff --git a/app/TaskFlow/frmValidator.vb b/app/TaskFlow/frmValidator.vb index f9770a2..a3e41eb 100644 --- a/app/TaskFlow/frmValidator.vb +++ b/app/TaskFlow/frmValidator.vb @@ -3929,14 +3929,14 @@ Public Class frmValidator If COPY_WMFILE_2TEMP = True Then ' Optionen konfigurieren Dim options As New DocumentPathHandler.DocumentPathOptions With { - .EnableMapping = True, - .WMSuffix = WMSUFFIX, - .SpecificDrive = If(Len(MAP_SHARE_DRIVE) = 1, MAP_SHARE_DRIVE, ""), - .DriveBlacklist = MAP_BLACKLIST, - .CopyToTemp = True, - .TempFolder = TEMP_DOCUMENT_FOLDER, - .UnmapAfterCopy = True - } + .EnableMapping = True, + .WMSuffix = WMSUFFIX, + .SpecificDrive = If(Len(MAP_SHARE_DRIVE) = 1, MAP_SHARE_DRIVE, ""), + .DriveBlacklist = MAP_BLACKLIST, + .CopyToTemp = True, + .TempFolder = TEMP_DOCUMENT_FOLDER, + .UnmapAfterCopy = True + } ' Verarbeiten Dim result = _documentPathHandler.ProcessDocumentPath(oFilePath_from_DB, options) @@ -3949,6 +3949,7 @@ Public Class frmValidator DocPathWindows = result.FinalPath WMDocPathWindows = oFilePath_from_DB MyValidationLogger.Info($"✓ Dokument verarbeitet: [{Path.GetFileName(result.FinalPath)}]") + Else MyValidationLogger.Warn($"⚠️ Dokumentpfad-Verarbeitung fehlgeschlagen: {result.ErrorMessage}") MyValidationLogger.Warn($"⚠️ Fallback auf Originalpfad: [{oFilePath_from_DB}]") @@ -3962,6 +3963,7 @@ Public Class frmValidator Return False End If End If + CURRENT_DOC_PATH = WMDocPathWindows Else DocPathWindows = oFilePath_from_DB MyValidationLogger.Info($"📄 Verwende Originalpfad: [{oFilePath_from_DB}]") diff --git a/app/TaskFlow/logtaskflow.txt b/app/TaskFlow/logtaskflow.txt index 5f28270..51bf023 100644 --- a/app/TaskFlow/logtaskflow.txt +++ b/app/TaskFlow/logtaskflow.txt @@ -1 +1,28 @@ - \ No newline at end of file +12:55:29.6893|Map_Drive|DEBUG >> MapDriveAutomatic -> 🔍 Suche automatisch freien Laufwerksbuchstaben... +12:55:29.6893|Map_Drive|DEBUG >> MapDriveAutomatic -> Blacklist: [] +12:55:29.6893|Map_Drive|DEBUG >> MapDriveAutomatic -> Netzwerkpfad: [\\W2K19SRV391\Windream] +12:55:29.6893|Map_Drive|INFO >> MapNetworkDrive -> Kein Laufwerksbuchstabe angegeben - suche nächsten freien Buchstaben... +12:55:29.6893|Map_Drive|DEBUG >> GetNextFreeDriveLetter -> Nächster freier Laufwerksbuchstabe gefunden: Z: +12:55:29.6893|Map_Drive|INFO >> MapNetworkDrive -> Automatisch gewählter Laufwerksbuchstabe: Z: +12:55:29.6943|Map_Drive|DEBUG >> MapNetworkDrive -> ✓ Laufwerk Z: existiert noch nicht - kein Disconnect nötig +12:55:29.6943|Map_Drive|DEBUG >> DisconnectNetworkDrive -> ℹ️ Laufwerk Z: existiert nicht - Disconnect übersprungen +12:55:29.6943|Map_Drive|DEBUG >> MapNetworkDriveInternal -> ✓ Laufwerk Z: erfolgreich gemappt +12:55:29.6943|Map_Drive|INFO >> MapNetworkDrive -> ✓ Netzlaufwerk Z: erfolgreich gemappt zu \\W2K19SRV391\Windream +12:55:29.6943|Map_Drive|DEBUG >> MapDriveAutomatic -> ✓ Automatisch gewähltes Laufwerk: Z: +12:55:29.6943|DocumentPathHandler|DEBUG >> TryMapNetworkDrive -> 📄 Original: [\\W2K19SRV391\Windream\wisag - Geschäftsprozesse\BusinessApplication01\File\Handelsrechnung [380]\3102\2026\06\16\7122184_5009151415.Pdf] +12:55:29.6943|DocumentPathHandler|DEBUG >> TryMapNetworkDrive -> 📄 Gemappt: [Z:\wisag - Geschäftsprozesse\BusinessApplication01\File\Handelsrechnung [380]\3102\2026\06\16\7122184_5009151415.Pdf] +12:55:29.6943|DocumentPathHandler|INFO >> ProcessDocumentPath -> ✓ Laufwerk gemappt: Z: +12:55:29.7093|DocumentPathHandler|DEBUG >> ProcessDocumentPath -> 📂 Starte Temp-Kopie für: [Z:\wisag - Geschäftsprozesse\BusinessApplication01\File\Handelsrechnung [380]\3102\2026\06\16\7122184_5009151415.Pdf] +12:55:29.7093|DocumentPathHandler|DEBUG >> EnsureTempFolder -> 📂 Überprüfe Temp-Ordner: [] +12:55:29.7093|DocumentPathHandler|DEBUG >> EnsureTempFolder -> ⚠️ Temp-Ordner nicht konfiguriert, verwende TEMP_DOCUMENT_FOLDER aus AppSettings +12:55:29.7093|DocumentPathHandler|INFO >> CopyToTempFolder -> [TempCopy] Effektiver Temp-Ordner: [C:\Users\dschipper\AppData\Local\Temp\17\Documents] +12:55:29.7093|DocumentPathHandler|DEBUG >> CopyToTempFolder -> [TempCopy] InputTemp=[], GlobalTemp=[C:\Users\dschipper\AppData\Local\Temp\17\Documents] +12:55:29.7093|DocumentPathHandler|DEBUG >> CopyToTempFolder -> 📄 Kopiere nach Temp: +12:55:29.7093|DocumentPathHandler|DEBUG >> CopyToTempFolder -> Von: [Z:\wisag - Geschäftsprozesse\BusinessApplication01\File\Handelsrechnung [380]\3102\2026\06\16\7122184_5009151415.Pdf] +12:55:29.7093|DocumentPathHandler|DEBUG >> CopyToTempFolder -> Nach: [C:\Users\dschipper\AppData\Local\Temp\17\Documents\7122184_5009151415_20260617_125529_711.Pdf] +12:55:29.7503|DocumentPathHandler|INFO >> ProcessDocumentPath -> ✓ Datei in Temp kopiert: [7122184_5009151415_20260617_125529_711.Pdf] +12:55:29.7593|Map_Drive|DEBUG >> DisconnectNetworkDrive -> ✓ Netzlaufwerk Z: erfolgreich getrennt +12:55:29.7593|DocumentPathHandler|INFO >> UnmapDrive -> 🔌 Laufwerk Z: getrennt +12:55:29.7593|frmValidator|INFO >> GetDocPathWindows -> ✓ Dokument verarbeitet: [7122184_5009151415_20260617_125529_711.Pdf] +12:55:29.7593|frmValidator|INFO >> GetDocPathWindows -> GetWMDocPathWindows CURRENT_DOC_PATH: +12:55:29.7593|frmValidator|INFO >> Load_Next_Document -> [PERF LND] Nach GetDocPathWindows: 147,0072ms \ No newline at end of file