File Upload does not return error, but it does not perform the task

File Upload does not return error, but it does not perform the task

When I try to upload a file to the server and save its name in a database using an Insert Transaction, all seems to work fine - no errors returned - but either the file is missing from the server, or it isn't saved into the database.
divider

Issue

When I try to upload a file to the server and save its name in a database using an Insert Transaction, all seems to work fine - no errors returned - but either the file is missing from the server, or it isn't saved into the database.

Reason

This happens because the insert transaction also contains the table primary key.

Solution

To solve this issue you must remove the primary key column from the insert transaction:

  1. From the Server Behaviors tab double-click the Insert transaction.
  2. In the Files tab select the primary key column and click the Minus(-) button.
Written by:  - 21 Feb, 2010