Technote Details :: I get an error incrementing the download counter field
Issue
When trying to download a file from a page configured using a download limit I get an error message:
Error incrementing the field!
Reason
This happens because the value in the table column storing the download limit could not be incremented. This has several possible causes:
- The table column you specified in the user interface has been changed and cannot be matched by the code, when trying to run the SQL query to increment it.
- The column has a NULL value or a value that is not numeric.
- The column type is not numeric.
Solution
There are several solutions to this problem:
- Edit the Download file server behavior on the site page in Dreamweaver and check if the selected field is correct.
- Open the database table in the administration application and check out the column type and initial value. Make sure you have an integer type field with a numeric value as default.