Error: Value too big, Maximum character allowed is 140

I’m uploading 100 customer details in item. While mapping the customer’s the error is coming " Value too big for customer Code, Max character allowed is 140" . The ‘customer_code’ in item is a data field where the sum of all the character of customer name from the customer details table should be less then 140.

How can i increase the maximum character allowed in customer code to 500 or more?

Welcome to community Amalusare,

i wonder why your customer using code so long, code suppose to be easy to remember. a guide at below link to item codification.
https://docs.erpnext.com/docs/user/manual/en/stock/articles/item-codification

you can try to change value at Stock > Item > Menu > Customize find customer_code line and change Length at there to 500.

Thank You for your valuable time.