Error Try Commit in CommitRecordAction

Hi Reza, when you get this error, it typically happens when your database has not been updated.

If this is the case, you usually have a warning in your login-screen, about here:

You could also check if the database version matches the application version.

the revision of the codebase is here:

Whereas you can find the database revision in the Expression debugger using:

{versioninfo, revision}

As you can see, in my application they are the same.

This error is rare but can happen in two cases:

  1. When you use the database copy tool, and copy the database from a different revision. For example, when you copy the Production database in revision 10 to Acceptance on revision 11, this occurs
  2. When you installation failed on the update script, but you still manage to log in.

In case (1), you should manually run updatedb. This goes as follows:

  1. Go to Deployment
  2. Send a maintenance package to your application
  3. Go to the installer
  4. Start the maintenance flow “developer mode”
  5. Access your application using: default.aspx?updatedb=yes
  6. Finish the maintenance package

In case of (2), find out why the update script failed. Abort and revert the installation, fix the update script and deploy again.

2 Likes