Technote Details :: I cannot download a file, as it says the primary key is incorrect

Issue

I have created a page using the Download file server behavior, and enhanced it with the limit option. However, when I try to use it I get an error message:

Error downloading file! Primary Key has no value!

Reason

This happens because the primary key for the files table or the many-to-many table storing the relation between users and files is incorrect. It is possible that the database structure has been updated, and the page has not.

Solution

To solve this problem you must make sure that the correct table column has been selected in the Download file server behavior interface. Check the database structure using the administration tool of choice, then double-click the server behavior in Dreamweaver and check that the column names match.


Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.