Hi,
I've run into an issue with bulk product imports on one of our sites and would really appreciate any pointers — details below.
Environment: Dynamicweb 10.27.9
## Summary
Any bulk product import via the standard export/import wizard fails during
the "move data to main table" step with an internal ArgumentException about
a negative string length, even when the import only touches a single row and
a single, pre-existing, already-working field. The error surfaces while
building an index on the *EcomGroupRelations* temp table, not on the product
data being imported — which makes me suspect the group-relations staging
step that runs as part of every product import is hitting bad/oversized data
unrelated to the import content itself.
## Steps to reproduce
1. Export a product to Excel via Settings > Ecommerce > Products > Export
(Quick export).
2. Edit only the `Number` (match key) and `ReferenceNumber` columns for a
single existing product row.
3. Import the file back in with Import mode = "Update existing products".
4. Job fails.
This reproduces even with a single row and a field that already has other
values imported into it successfully via other jobs, so I don't think it's
about the specific row or field being updated.
## Error / log
2026-08-19 10:20:13.2332|DataIntegration|INFORMATION|Starting import to temporary table for EcomProducts.
2026-08-19 10:20:13.2332|DataIntegration|INFORMATION|Added 1 rows to temporary table for EcomProducts.
2026-08-19 10:20:13.2337|DataIntegration|INFORMATION|Finished import to temporary table for EcomProducts.
2026-08-19 10:20:13.2340|DataIntegration|INFORMATION|Starting update products information.
2026-08-19 10:20:13.2784|DataIntegration|INFORMATION|Update products information finished.
2026-08-19 10:20:13.4649|DataIntegration|ERROR|Error: failed to move data from temporary table [dbo.EcomProductsTempTableForBulkImport1] to main table [dbo.EcomProducts]. Exception: length ('-4') must be a non-negative value. (Parameter 'length') Actual value was -4. Sql query: CREATE UNIQUE NONCLUSTERED INDEX [DW_PK_EcomGroupRelations] ON [EcomGroupRelationsTempTableForBulkImport] ([GroupRelationsGroupId] ASC,[GroupRelationsParentId] ASC); Stack: at Dynamicweb.DataIntegration.Providers.EcomProvider.EcomDestinationWriter.MoveDataToMainTable(Mapping mapping, String tempTablePrefix, SqlTransaction sqlTransaction, Boolean updateOnly, Boolean insertOnly) at Dynamicweb.DataIntegration.Providers.EcomProvider.EcomDestinationWriter.MoveDataToMainTables(String shop, SqlTransaction sqlTransaction, Boolean updateOnly, Boolean insertOnly) at Dynamicweb.DataIntegration.Providers.EcomProvider.EcomProvider.RunJob(Job job)
## What I've already ruled out
- Not specific to any particular field being updated (reproduced with an
existing field, `ReferenceNumber`, not a new one).
- Not specific to row count (fails identically with 1 row or 24 rows).
- Not a data-formatting issue in the import file (tested with minimal
column sets, plain-text values, no special characters).
- The product temp-table import itself always completes successfully
("Update products information finished") — the failure happens strictly
in the later `MoveDataToMainTables` step, specifically while indexing
`EcomGroupRelationsTempTableForBulkImport`.
## Question
Since this happens on the `EcomGroupRelations` staging table regardless of
what's actually being imported, I'm wondering if it could be existing data in
`EcomGroupRelations` (e.g. a duplicate or oversized `[GroupId, ParentId]`
pair) tripping up the unique index build inside `EcomDestinationWriter`,
rather than anything about the import itself. Does this look familiar to
anyone, or is there a way to identify which row is causing the negative
length calculation?
Thanks in advance for any help — happy to provide more logs or
details if useful