Create Document Validation Action Activity issue

Hello
I need your help please
I have a major issue while using the Action Center with the “Create Document Validation Action” activity. The following error is thrown:

“Create Document Validation Action: Argument must be positive (Parameter ‘textLength’)”

my ExtractionResults

ExtractionResult { BusinessRulesResults=RuleSetResult[0] { }, DocumentId=“invoice_pdf.pdf”, ExtractorPayloads=ExtractorPayload[1] { ExtractorPayload { Id=null, Payload="{"Result":{"ExtractionResult":{"DocumentId":"264ab1ad-ad54-f111-8fcb-00224880995f","ResultsVersion":0,"ResultsDocument":{"Bounds":{"StartPage":0,"PageCount":1,"TextStartIndex":0,"TextLength":1401,"PageRange":"1"},"Language":"fra","DocumentGroup":"","DocumentCategory":"","DocumentTypeId":"7c35394b-064e-f111-8ef3-00224884043d","DocumentTypeName":"Invoice","DocumentTypeDataVersion":0,"DataVersion":0,"DocumentTypeSource":"Automatic","DocumentTypeField":{"Components":,"Value":"Invoice","UnformattedValue":"","Reference":{"TextStartIndex":0,"TextLength":0,"Tokens":},"DerivedFields":,"Confidence":1.0,"OperatorConfirmed":false,"OcrConfidence":-1.0,"TextType":"Unknown"},"Fields":[{"FieldId":"invoicenumber","FieldName":"InvoiceNumber","FieldType":"Text","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"FAC-NOR-2026-000001","UnformattedValue":"FAC-NOR-2026-000001","Reference":{"TextStartIndex":9,"TextLength":19,"Tokens":[{"TextStartIndex":9,"TextLength":19,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[29.34,387.83,148.3,10.4]]}]},"DerivedFields":,"Confidence":0.9999717,"OperatorConfirmed":false,"OcrConfidence":0.5,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"suppliername","FieldName":"SupplierName","FieldType":"Text","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"GOODYEAR FRANCE","UnformattedValue":"GOODYEAR FRANCE","Reference":{"TextStartIndex":152,"TextLength":15,"Tokens":[{"TextStartIndex":152,"TextLength":8,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[85.62,62.68,39.74,5.33]]},{"TextStartIndex":161,"TextLength":6,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[85.35,105.36,28.01,5.6]]}]},"DerivedFields":,"Confidence":0.9999971,"OperatorConfirmed":false,"OcrConfidence":1.0,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"supplieraddress","FieldName":"SupplierAddress","FieldType":"Text","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"17 PLACE DES REFLETS, 92400","UnformattedValue":"17 PLACE DES REFLETS, 92400","Reference":{"TextStartIndex":251,"TextLength":27,"Tokens":[{"TextStartIndex":251,"TextLength":2,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[96.82,62.95,6.94,5.07]]},{"TextStartIndex":254,"TextLength":5,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[96.56,72.55,22.14,5.6]]},{"TextStartIndex":260,"TextLength":3,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[96.56,97.36,13.87,5.6]]},{"TextStartIndex":264,"TextLength":8,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[96.56,113.89,32.27,6.4]]},{"TextStartIndex":273,"TextLength":5,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[96.82,148.84,19.2,5.33]]}]},"DerivedFields":,"Confidence":0.99991894,"OperatorConfirmed":false,"OcrConfidence":1.0,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"suppliersiret","FieldName":"SupplierSIRET","FieldType":"Text","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"33013940300621","UnformattedValue":"33013940300621","Reference":{"TextStartIndex":457,"TextLength":14,"Tokens":[{"TextStartIndex":457,"TextLength":14,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[119.5,89.09,52.81,5.33]]}]},"DerivedFields":,"Confidence":0.99999034,"OperatorConfirmed":false,"OcrConfidence":0.79999995,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"suppliervatnumber","FieldName":"SupplierVATNumber","FieldType":"Text","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"FRA-1%1111194M","UnformattedValue":"FRA-1%1111194M","Reference":{"TextStartIndex":557,"TextLength":14,"Tokens":[{"TextStartIndex":557,"TextLength":14,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[130.96,92.02,51.48,4.8]]}]},"DerivedFields":,"Confidence":0.9999347,"OperatorConfirmed":false,"OcrConfidence":0.19999999,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"invoicedate","FieldName":"InvoiceDate","FieldType":"Date","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"2026-03-17","UnformattedValue":"17/03/2026","Reference":{"TextStartIndex":41,"TextLength":10,"Tokens":[{"TextStartIndex":41,"TextLength":10,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[51.48,104.56,34.14,5.07]]}]},"DerivedFields":[{"FieldId":"Year","Value":"2026"},{"FieldId":"Month","Value":"3"},{"FieldId":"Day","Value":"17"}],"Confidence":0.9999869,"OperatorConfirmed":false,"OcrConfidence":0.5,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"duedate","FieldName":"DueDate","FieldType":"Date","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"2026-05-16","UnformattedValue":"16/05/2026","Reference":{"TextStartIndex":431,"TextLength":10,"Tokens":[{"TextStartIndex":431,"TextLength":10,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[108.03,449.97,34.14,5.6]]}]},"DerivedFields":[{"FieldId":"Year","Value":"2026"},{"FieldId":"Month","Value":"5"},{"FieldId":"Day","Value":"16"}],"Confidence":0.99999845,"OperatorConfirmed":false,"OcrConfidence":0.9,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"totalttc","FieldName":"TotalTTC","FieldType":"Number","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"98677.13","UnformattedValue":"98 677,13 €","Reference":{"TextStartIndex":1123,"TextLength":11,"Tokens":[{"TextStartIndex":1123,"TextLength":2,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[395.56,480.38,10.4,6.94]]},{"TextStartIndex":1126,"TextLength":6,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[395.56,494.25,29.87,8.54]]},{"TextStartIndex":1133,"TextLength":1,"Page":0,"PageWidth":595.0,"PageHeight":841.0,"Boxes":[[395.56,527.59,5.07,6.94]]}]},"DerivedFields":[{"FieldId":"Value","Value":"98677.13"}],"Confidence":0.99980557,"OperatorConfirmed":false,"OcrConfidence":0.7,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"items","FieldName":"items","FieldType":"Table","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":[{"FieldId":"items.Header","FieldName":"Header","FieldType":"Internal","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":[{"FieldId":"description","FieldName":"Description","FieldType":"Text","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"description","UnformattedValue":"","Reference":{"TextStartIndex":0,"TextLength":0,"Tokens":},"DerivedFields":,"Confidence":-1.0,"OperatorConfirmed":false,"OcrConfidence":-1.0,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"quantity","FieldName":"Quantity","FieldType":"Number","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"quantity","UnformattedValue":"","Reference":{"TextStartIndex":0,"TextLength":0,"Tokens":},"DerivedFields":,"Confidence":-1.0,"OperatorConfirmed":false,"OcrConfidence":-1.0,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"pu_ht","FieldName":"PU_HT","FieldType":"Number","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"pu_ht","UnformattedValue":"","Reference":{"TextStartIndex":0,"TextLength":0,"Tokens":},"DerivedFields":,"Confidence":-1.0,"OperatorConfirmed":false,"OcrConfidence":-1.0,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"tva","FieldName":"TVA","FieldType":"Text","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"tva","UnformattedValue":"","Reference":{"TextStartIndex":0,"TextLength":0,"Tokens":},"DerivedFields":,"Confidence":-1.0,"OperatorConfirmed":false,"OcrConfidence":-1.0,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""}],"Value":"","UnformattedValue":"","Reference":{"TextStartIndex":0,"TextLength":0,"Tokens":},"DerivedFields":,"Confidence":-1.0,"OperatorConfirmed":false,"OcrConfidence":-1.0,"TextType":"Unknown"}],"DataVersion":0,"OperatorConfirmed":false,"ValidatorNotes":""},{"FieldId":"items.Body","FieldName":"Body","FieldType":"Internal","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":[{"FieldId":"description","FieldName":"Description","FieldType":"Text","IsMissing":false,"DataSource":"Automatic","Values":[{"Components":,"Value":"Capteur ABS…

I have table in my extrcationResults

Thanks in advance

Hi @Bouchra_EZZAGMOUNY
Welcome to community,

Can you give a try by updating the DU packages and related to this activity.

This is mostly failing due extractionresults, ensure that extraction is happening properly.

Happy Automation,
YK

Hi @Bouchra_EZZAGMOUNY

This error occurs because some fields in your ExtractionResults have invalid OCR references, especially where TextLength = 0. The Create Document Validation Action expects valid positive text lengths, and when it encounters empty or incorrect references (common in table headers or missing fields), it throws this error. To fix it, clean or validate the ExtractionResults before passing it, or re-run OCR/extraction to ensure proper text mapping.