User Tools

Site Tools


faq:pvsw-errors:status_22

Parent article: pvsw-errors

Status 22

The data buffer parameter is too short

Description (From the Pervasive Help File)

The data buffer parameter specified by the application was not large enough to accommodate either the minimum length of the record for an Insert or Update operation, or the entire record length for a Get or Step operation. Also, the data buffer may not be large enough to accommodate the length of data required for operations such as Create, Create Index, Stat, Get By Percentage, Find Percentage, or Version. For Get or Step operations, the MicroKernel returns as much data as it can and this status code, indicating that it cannot return the entire record. For an Insert operation, the MicroKernel does not insert the record if the data buffer is shorter than the fixed-length portion of the record. For an Update operation, if the data buffer is too short to contain the fixed-length portion of a record, the MicroKernel does not update the record. For the Create, Stat, and Create Index operations, the data buffer is not long enough to contain all the file specifications, the key specifications, and (if specified) the Alternate Collating Sequence (ACS) definition. For the Get by Percentage or Find Percentage operation, the data buffer length is less than 4 bytes. For the Version operation, the data buffer length is less than 5 bytes. The data buffer parameter is too short when access table with more than 60 field using ActiveX. Download the latest ActiveX controls from the Pervasive web site (http://www.pervasive.com/developerzone/access_methods/activex.asp) A corrupt file may be indicated if the file allows variable-length records and you receive this status code on a Get or Step operation. In such a corrupt file, you can receive Status Code 54 when you use Get or Step operations to read other records. Recover the file according to the instructions in Pervasive.SQL User's Guide.

Additional Information

This normally happens when someone installs an older version of System Five like 5.30.x.x and tries to open the data, but the other machines are running 5.32.x.x or above.

What is a data buffer parameter?

The data buffer parameter is like the assigned length of the record that will be needed (buffered) when Pervasive loads the record. If the record takes up more that its alloted space this error would occur. This might happen if the newer version of the file has longer records, but the program is still trying to access it like it was the old file.

faq/pvsw-errors/status_22.txt · Last modified: 2013/11/27 14:07 (10 years ago) by cliff