diff --git a/src/Apps/W1/EDocument/App/src/Helpers/EDocumentImportHelper.Codeunit.al b/src/Apps/W1/EDocument/App/src/Helpers/EDocumentImportHelper.Codeunit.al index 8d72d2c034..bfe18bcc38 100644 --- a/src/Apps/W1/EDocument/App/src/Helpers/EDocumentImportHelper.Codeunit.al +++ b/src/Apps/W1/EDocument/App/src/Helpers/EDocumentImportHelper.Codeunit.al @@ -138,6 +138,9 @@ codeunit 6109 "E-Document Import Helper" if GTIN = '' then exit(false); + if StrLen(GTIN) > MaxStrLen(Item.GTIN) then + exit(false); + Item.SetRange(GTIN, GTIN); if not Item.FindFirst() then exit(false);