Views:
Problem:  An AP or AR batch will not release.  The message is that one or more documents in the batch is out of balance.   AR or AP debug script results show that all documents in the batch are in fact balanced.

Cause:  Batch.nbrcycle is not zero.

Resolution:  Batch.nbrcycle is a counter for the number of documents out of balance in the batch.  Even if all documents in the batch are balanced, if nbrcycle is not zero, the release process will not try to release the batch.  It will simply report that one or more documents in the batch are out of balance.  Use SQL Server Management Studio to set the nbrcycle to 0.  Example:

Update batch set nbrcycle = 0 where module = ‘AP’ and batnbr = ‘012345’