ConnectWise 'CreateBatch' returned an error: Length cannot be less than zero. Parameter name: length

Error: ConnectWise 'CreateBatch' returned an error: Length cannot be less than zero. Parameter name: length


This error specifically relates to the creation of the Batch in ConnectWise.

This is a common error where a reserved character is used in a Unposted Record, which results in an error when attempting to create the batch in ConnectWise.

Refer to the ConnectWise "Unposted Records" tab for the record that you are attempting to post and look for one of the following reserved characters in the RecordID.


CharacterError Resulting
| (Pipe)
# (Hash / Pound)
Used by ConnectWise to delimit (separate) each record to be batched. When a | appears in the batch results, ConnectWise will incorrectly think that the next record is to be batched without first providing all the batch details:

Resolution:

Invoice: 
Set the invoice to GL Reload and remove the offending character from the invoice number.

Purchases: Open the items being batched with the reserved character and remove the character. 

Adjustments: Adjustments cannot be amended, therefore the item will need to be manually batched and a reversing transaction created (and manually batched). A new IV.ADJ can then be created without the offending batch ID.



P
Paul is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.