Error: General ODBC Error: [Microsoft][ODBC SQL Server Driver][SQL Server]Arithmetic overflow error converting varchar to data type numeric. Native error:8115 [Microsoft][ODBC SQL Server Driver][SQL Server]The cursor was not declared. Native error:16945

When a user attempts to create a new batch, the following error message occurs:

General ODBC Error: [Microsoft][ODBC SQL Server Driver][SQL Server]Arithmetic overflow error converting varchar to data type numeric.
Native error:8115
[Microsoft][ODBC SQL Server Driver][SQL Server]The cursor was not declared.
Native error:16945

This occurs for multiple users on multiple workstations.
This occurs for new Gift batches, new Constituent batches, and, if RE:Volunteer module is present, new Time Sheet batches.
This error may occur if The Raiser's Edge is unable to validate a new batch number when creating a new batch. When creating a new batch and its batch number, The Raiser's Edge checks the next available number against previous numbers. This error arises based upon previous batch numbers used, especially if punctuation like slashes or periods, have been used.

To resolve this:
  1. In The Raiser's Edge, go to Config and click on Business Rules.
  2. Under Business Rules, click on Batch options and press Change Number.
  3. In the new window, enter a much higher number as a starting number, such as from 1 to 1000. Click OK.
  4. Return to Batch and press New Gift Batch.
  5. If error still occurs, repeat steps 1 - 4. Increase the batch starting number, such as 1000 to 2000 or 1000 to 10000, until a number is found where the errors no longer occur.

Environment

 7.93.5782, patch 4 ; 7.92.5508, patch 11 ; 7.92.5508, patch 6

Was this article helpful?