Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random column length error
Message
 
À
03/04/2008 10:09:21
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01307843
Message ID:
01308152
Vues:
11
Bill,

>Vs2005 MM 2.4
>Getting this error randomly when saving a bo in production, never in testing. How can I troubleshoot this ? I have checked the field length and it is correct. The field is defined like this:
>
>
><mm:mmTextBox ID="txtCellPhone" runat="server" BindingSource="Orders" BindingSourceMember="CellPhone"	AccessLevel="Full" ControlID="00000000-0000-0000-0000-000000000000" IsPostBack="False" SecuritySetup="True" Width="90%" DisplayFormat="" UserFieldName="">
></mm:mmTextBox>
>
><ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="txtCellPhone" Mask="(999)999-9999" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" ClearMaskOnLostFocus="False">
></ajaxToolkit:MaskedEditExtender>
>
>
>Other similar fields give the same error randomly.
>Error and call stack:
>

>Message:Cannot set column 'CellPhone'. The value violates the MaxLength limit of this column.
>Source:System.Data
>Date:4/2/2008 6:53:32 PM
>Stack: at System.Data.DataColumn.CheckMaxLength(DataRow dr)
> at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)
> at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException)
> at System.Data.DataTable.SetNewRecord(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean fireEvent)
> at System.Data.DataRow.EndEdit()
> at System.Data.DataRow.set_Item(DataColumn column, Object value)
> at System.Data.DataRow.set_Item(String columnName, Object value)
> at OakLeaf.MM.Main.Web.UI.WebControls.mmTextBox.BindBack(DataSet ds, String tableName, String fieldName)
> at OakLeaf.MM.Main.Web.UI.mmWebBindingStrategySimple.BindData(ImmWebBindingSimple mmControl, mmBusinessObject bizObj, Boolean bindBack, mmBusinessStateChangeEventArgs e)

This IS an odd error--not sure why you're getting it. I recommend setting a breakpoint in mmTextBox.BindBack() to see what value is being written back.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform