[ArgumentOutOfRangeException: The value specified will cause an overflow error in the database. Value length: 30. Column max. length: 10

Posts   
 
    
Sivag
User
Posts: 3
Joined: 21-Jan-2010
# Posted on: 21-Jan-2010 11:47:55   

LLBLGen Pro version + buildnr - 1.1

problem occuring at runtime - 1.0.20051.060112

Stack Trace : [ArgumentOutOfRangeException: The value specified will cause an overflow error in the database. Value length: 30. Column max. length: 10 Parameter name: XYZ] SD.LLBLGen.Pro.ORMSupportClasses.EntityBase.ValidateValue(IEntityField fieldToValidate, Object value, Int32 fieldIndex) +391 SD.LLBLGen.Pro.ORMSupportClasses.EntityBase.SetNewFieldValue(Int32 fieldIndex, Object value, Boolean checkForRefetch, Boolean fireChangeEvent) +135 SD.LLBLGen.Pro.ORMSupportClasses.EntityBase.SetNewFieldValue(Int32 fieldIndex, Object value) +15

Database : SQL Server 2000

My database has the field as varchar(30)

I dont know why i get this exception and how do i overcome it?

Note: I didn't generate the DB schema from LLBLgen designer as the actual development of this application is done from another company. Hence do i need to regnerate the schema with modified table column width using LLBLgen ? Please assist me.

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 21-Jan-2010 12:05:06   

Maybe the gnerated code is not in sync. with the database. Would you please try refreshing the catalog from the Designer, and regenerate the code.

Sivag
User
Posts: 3
Joined: 21-Jan-2010
# Posted on: 21-Jan-2010 12:43:02   

Thanks for your immediate reply. What if i don't have the designer? Is there any work around without using it?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39865
Joined: 17-Aug-2003
# Posted on: 21-Jan-2010 17:45:20   

Sivag wrote:

Thanks for your immediate reply. What if i don't have the designer? Is there any work around without using it?

You need a valid license to operate the designer. So either you ask the company who made the code for you to generate the code or you purchase a license yourself. Any license gives access to previous versions as well.

Frans Bouma | Lead developer LLBLGen Pro
Sivag
User
Posts: 3
Joined: 21-Jan-2010
# Posted on: 22-Jan-2010 05:37:46   

Thanks all. I have already requested license from the company who developed it.