ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Error on Lengthy Custom Input Fields
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error on Lengthy Custom Input Fields

 Post Reply Post Reply
Author
Message
mattprice View Drop Down
Senior Member
Senior Member


Joined: 03-June-2007
Location: United Kingdom
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattprice Quote  Post ReplyReply Direct Link To This Post Topic: Error on Lengthy Custom Input Fields
    Posted: 10-March-2010 at 8:50am
My store is not live yet but I have been developing it since V3.  I have upgraded to V4 and I have hit an error which I am pretty sure I did not see in V3. 
 
My store will extensively use Text Area Custom Input Fields where the customer is likely to enter 20 or more lines of text.  I am hitting an error when a customer enters around 500 characters and trys to add the product to cart.   They get hit with the following error:-
 

Microsoft OLE DB Provider for SQL Server error '80040e57'

String or binary data would be truncated.

/order/pc/inc_SaveShoppingCart.asp, line 194

It is fine if the customer has only entered a few lines of text so it has something to do with field length.  I believe the inc_SaveSHoppingCart.asp is a new V4 file and has something to do with the new Saved Cart feature.
 
Can anyone see what might be going on here in V4 that wasnt happening in V3 (at least I dont think) ? 
 
 
Many Thanks
Matt
 


Edited by mattprice - 10-March-2010 at 8:51am
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 10-March-2010 at 2:28pm
Hi Matt,
 
inc_SaveShoppingCart.asp is indeed new with v4 along with a new table in the database, pcSavedCratArray. The problem is that the field storing this data is not large enough for your purposes.
 
I belive the field in this table that stores this data is SCArray4. You will want to change this field:
 
SQL 2000: make it an ntext field
SQL 2005: make it nvarchar(max)
 
Just need to get confirmation on whether this is the correct field (possibly could be SCArray21).
Back to Top
mattprice View Drop Down
Senior Member
Senior Member


Joined: 03-June-2007
Location: United Kingdom
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattprice Quote  Post ReplyReply Direct Link To This Post Posted: 10-March-2010 at 7:42pm
Fantastic Sean,  many thanks.  
 
ScArray21 was the correct field for Custom Input Data.  SCArray4 dealt with product options.
 
Matt 
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 10-March-2010 at 8:47pm
Glad that worked out for you. Was not easy to figure out which field was storing what exactly.
 
I'm totally a glass house throwing stones, but it would be nice if EI did make use of the comment fileds in the db to explain what's fields with abstract names like this are actually used for.
Back to Top
mattprice View Drop Down
Senior Member
Senior Member


Joined: 03-June-2007
Location: United Kingdom
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattprice Quote  Post ReplyReply Direct Link To This Post Posted: 11-March-2010 at 2:29am
There is a Wiki article http://wiki.earlyimpact.com/developers/cartcontent that deals with Cart Array Assignments.  I think these same numbers follow through for the new saved cart features. 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 1.613 seconds.