Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > BizForms: Rename/Capitalize Column Name View modes: 
User avatar
Member
Member
ctaleck IPAGlobal - 7/27/2010 3:41:26 PM
   
BizForms: Rename/Capitalize Column Name
I have found that when you rename a column name by changing the capitalization, an error is produced when you try to insert data into that column. I'm guessing MSSQL does not see the capitalization as being different and leaves it as is.

Kentico v5.0.3733
MSSQL2008

Steps to reproduce:
1. Create a test BizForm
2. On the Fields tab, create a new field called "name" and Save
3. On the Fields tab, using the Advanced mode edit the field to be "Name" and Save
4. On the Form tab, create a custom form and insert the field code
Name: $$input:Name$$

5. On the Data tab, try to insert data
6. An error is produced:

An error occurred when saving data: [DataConnection.ExecuteQuery]: Query: INSERT INTO custom_test ([FormInserted], [FormUpdated], [name], [question1] ) VALUES ( @FormInserted, @FormUpdated, @name, @question1); SELECT SCOPE_IDENTITY() AS [testID] : caused exception: Cannot insert the value NULL into column 'name', table 'IPAGlobalCMS.dbo.custom_test'; column does not allow nulls. INSERT fails. The statement has been terminated.

A workaround is to delete the field and then create a new one instead of renaming it.

User avatar
Kentico Developer
Kentico Developer
Kentico_IvanaT - 7/28/2010 7:55:02 AM
   
RE:BizForms: Rename/Capitalize Column Name
Hi

Thank you for letting us know about this issue. Regrettably, this is a bug in the 5.0 version. I'm very sorry for this inconvenience.

This is known issue and was fixed in v5.5. You can download this version here.

Thank you again for detailed description of this issue.

Best Regards,

Ivana Tomanickova