Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

DB length of the key of table ZZZ is too large (>788)

Former Member
0 Kudos
846

Hi Experts,

I am creating a custom table with 10 fields in which 5 fields are primary key fields with each field length 120 characters. I have created and saved the table but cannot activate it because of the following error:

DB length of the key of table ZZZ is too large (>788)

please help me to how do I create the custom table with the above credentials.

Thanks-

Ramesh.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos
223

maybe it's because the size is expressed in bytes, and each character is 2 bytes? 5 key fields of each 120 characters would be 1200 bytes. Could you try with 3 (720 bytes) and 4 (960 bytes) key fields to see when it works?

6 REPLIES 6

Former Member
0 Kudos
223

Can you paste here how you created your table?

Regards

Sandra_Rossi
Active Contributor
0 Kudos
224

maybe it's because the size is expressed in bytes, and each character is 2 bytes? 5 key fields of each 120 characters would be 1200 bytes. Could you try with 3 (720 bytes) and 4 (960 bytes) key fields to see when it works?

Former Member
0 Kudos
223

got the solution by myself

0 Kudos
223

Please help others by giving the solution or at least a little feedback, as per forum rules of engagement

Former Member
0 Kudos
223

Hi Ramesh,

I am in same situation "DB length of the key of table ZZZZZ is too large (>780)" . Can you please help me on how you resolved this.

Regards,

Krishna M.

wol
Active Participant
0 Kudos
223

Hello,

I would suggest not to have such big keys. Usually (and meaningful) one can build a technical key with a number range or guuid.

Is much lighter to handle by the db.

Regards,

Stefan