A while ago after a components update I get this message in my application Error calling TryCommit in CommitRecordAction: Invalid column name 'default_delivery_to_country. How can I solve this? The indicated field is expected in “sales_price_list” table. Thanks in advance.
I have investigated this further in Expression Debugger: The datamodel says that the field is present in table “salespricelists”. When I evaluate it I get the indicated error. That the field is not known in sql. Should the field be added or should it be removed? And how can I do that?
As you can see, in my application they are the same.
This error is rare but can happen in two cases:
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
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:
Go to Deployment
Send a maintenance package to your application
Go to the installer
Start the maintenance flow “developer mode”
Access your application using: default.aspx?updatedb=yes
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.