Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid key length
Message
From
12/09/2006 10:25:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01153006
Message ID:
01153027
Views:
27
Naomi,

Look for a trimmed string that has not been padded out to a uniform length.

I have encountered this in a poorly formed SQL WHERE clause (SELECT ... WHERE ALLTRIM(MyField) = . After a period of time the data grew and Rushmore deemed that another index be created, promptly choking on the mix of key lengths and throwing an invalid key length error.


Jim Fisher




>>>Hi everybody,
>>>
>>>We're having some strange errors. I've checked the error log and found that biz object post save hook method failed with Invalid Key Length message. I've checked help on this error, but it's still not clear to me what may have cause this problem. AFAIK all our indexes are created with machine collating sequence.
>>>
>>>Do you have experience with this problem and can you give some advices?
>>>
>>>Thanks in advance.
>>
>>From HELP:
>>
>>Maximum # of bytes per index key in a non-compact index - 100
>>Maximum # of bytes per index key in a compact index - 240
>>
>>If the collating sequence is set to MACHINE, each character uses one byte. If the collating sequence is not set to MACHINE, each character uses two bytes. If the indexed field supports null values, one additional byte is used in the index key. Note that non-machine indexes are always compact
>>

>>
>>So check what is the expression of that index and if it exceed the limitation
>
>The only problem is that I don't know which table produced the error and which index. Do you know how can I trap this info?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform