diff --git a/current/Import-FileContentToDB/Import-FileContentToDB.ps1 b/current/Import-FileContentToDB/Import-FileContentToDB.ps1 index 76a5b2c..e5997eb 100644 Binary files a/current/Import-FileContentToDB/Import-FileContentToDB.ps1 and b/current/Import-FileContentToDB/Import-FileContentToDB.ps1 differ diff --git a/current/Import-FileContentToDB/Import-FileContentToDB_History.txt b/current/Import-FileContentToDB/Import-FileContentToDB_History.txt index c02d06f..7870035 100644 --- a/current/Import-FileContentToDB/Import-FileContentToDB_History.txt +++ b/current/Import-FileContentToDB/Import-FileContentToDB_History.txt @@ -1,7 +1,15 @@ ------------------------------------------------------------------------------- +Version 2.2.0.0 - 14.10.2024 +NEW: - Multiple Replace cmds in PreparingFile +FIX: - Fixed XLSX and CSV import issues +CHG: - +REM: - + +------------------------------------------------------------------------------- + Version 2.1.0.0 - 11.10.2024 -NEW: - Parameter call ( +NEW: - Parameter call (-pProfileID) FIX: - Fixed CSV import issue, if inverted commas in data - other case CHG: - " will be removed bevor inserting data, Code improvement REM: - diff --git a/current/Import-FileContentToDB/Import-FileContentToDB_Settings.ini b/current/Import-FileContentToDB/Import-FileContentToDB_Settings.ini index 3c1af11..803b74b 100644 --- a/current/Import-FileContentToDB/Import-FileContentToDB_Settings.ini +++ b/current/Import-FileContentToDB/Import-FileContentToDB_Settings.ini @@ -152,8 +152,9 @@ DBConnString = "Data Source=S-ZLSDMS-DB1\;Initial Catalog=DD_ECM\;User Id=DD_ECM # PreparingFile = # #--------------------------------------------------------------------------------------------------# # First Parameter: # -# Set a replace command if necessary. # +# Set a replace command if necessary. You can set multiple Commands, by seperation them with ~|~ # # Example: Replace(~,~) # +# Example: Replace(~,~) ~|~ Replace(~,~) # #################################################################################################### #################################################################################################### @@ -233,11 +234,9 @@ FinalSQL = #FinalSQL = #Profile = CSVImport ; %CellValue% ; \\s-zls32\XAP\XAP-Daten\ZLS\ZLS_WASS\XAP_ZLS_WASS_P\ARC\*.csv ; utf7 ; 3 ; 4 ; 999999999 ; \^\,\^|\^ ; \\s-zls32\XAP\XAP-Daten\ZLS\ZLS_WASS\XAP_ZLS_WASS_P\ARC\DMS-Eingelesen ; \\s-zls32\XAP\XAP-Daten\ZLS\ZLS_WASS\XAP_ZLS_WASS_P\ARC\DMS-Fehler -#PreparingFile = Replace(@FOLDER,FT:^HKA-IMP^~,~HKA-IMP) +#PreparingFile = Replace(WertA~,~WertB) ~|~ Replace(@FOLDER,FT:^HKA-IMP^~,~HKA-IMP) #CheckSQL = #InitialSQL = #PreparingSQL = #MainLoopSQL = INSERT INTO [DD_ECM].[dbo].[TBCUST_XAP_DOC_EXPORT]([XAP_Beleg_ID],[XAP_Kunden_ID],[XAP_Kundenname],[XAP_Objekt_ID],[XAP_Objektbezeichnung],[XAP_Belegdatum],[XAP_Formular_ID],[XAP_Exportpfad],[ADDED_WHO],[ADDED_WHEN]) SELECT '%column1%','%column2%','%column3%','%column4%','%column5%','%column6%','%column7%','%column8%','Import-FileContentToDB',getdate() -#FinalSQL = - - +#FinalSQL = \ No newline at end of file