From ac015f96cafac36a9391192a6e50f4689c6a0062 Mon Sep 17 00:00:00 2001 From: Dmitriy Benyuk Date: Thu, 24 Apr 2025 11:03:20 +0300 Subject: [PATCH] EcomProvider destination Groups error when using scripting --- ...Dynamicweb.DataIntegration.Providers.EcomProvider.csproj | 6 +++--- src/EcomDestinationWriter.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Dynamicweb.DataIntegration.Providers.EcomProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.EcomProvider.csproj index 8beb525..7c0faea 100644 --- a/src/Dynamicweb.DataIntegration.Providers.EcomProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.EcomProvider.csproj @@ -1,6 +1,6 @@  - 10.9.2 + 10.12.0 1.0.0.0 Ecom Provider Ecom Provider @@ -24,8 +24,8 @@ enable - - + + diff --git a/src/EcomDestinationWriter.cs b/src/EcomDestinationWriter.cs index 885e352..3d9cc61 100644 --- a/src/EcomDestinationWriter.cs +++ b/src/EcomDestinationWriter.cs @@ -4422,7 +4422,7 @@ private bool HasData(string tableName) private string? GetValue(ColumnMapping? columnMapping, Dictionary row) { - string? result = null; + string? result = null; if (columnMapping != null && (columnMapping.HasScriptWithValue || row.ContainsKey(columnMapping.SourceColumn.Name))) { switch (columnMapping.ScriptType) @@ -4431,10 +4431,10 @@ private bool HasData(string tableName) result = Converter.ToString(row[columnMapping.SourceColumn.Name]); break; case ScriptType.Append: - result = Converter.ToString(row[columnMapping.SourceColumn.Name]) + columnMapping.ScriptValue; + result = Converter.ToString(row[columnMapping.SourceColumn.Name]) + Converter.ToString(columnMapping.ScriptTypeProvider?.GetValue("")); break; case ScriptType.Prepend: - result = columnMapping.ScriptValue + Converter.ToString(row[columnMapping.SourceColumn.Name]); + result = Converter.ToString(columnMapping.ScriptTypeProvider?.GetValue("")) + Converter.ToString(row[columnMapping.SourceColumn.Name]); break; case ScriptType.Constant: result = columnMapping.GetScriptValue();