Consultor Eletrônico



Kbase P26815: ADM: Error "REPLACE/CONCAT may not result in data > 32000 bytes" saving a Window in the AppBuilder.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   29/12/2008
Status: Verified

SYMPTOM(s):

ADM: Error "REPLACE/CONCAT may not result in data > 32000 bytes" saving a Window in the AppBuilder.

REPLACE/CONCAT may not result in data > 32000 bytes

The AppBuilder generated adm-create-objects internal procedure is corrupted when saved using the AppBuilder.

FACT(s) (Environment):

Windows
Progress 9.x
OpenEdge 10.x

CAUSE:

The AppBuilder implements the Procedure Section Editor as a 4GL character variable with the VIEW-AS EDITOR option, therefor the size of any internal procedure developed using the AppBuilder's Procedure Section Editor is subject to the 4GL character variable size limitation of 31991 single byte characters.

The adm-create-objects internal procedure is automatically generated by the AppBuilder using such an editor widget. Like all large EDITOR widgets, it may be loaded with more than 32K of data, however, doing a save or any other operation where Progress needs to store this data in a CHARACTER variable generates the warning error and truncates the data involved to fit in the widget.

FIX:

For applications under development, refine the application design to make it compatible with the above internal procedure size limitation. For existing applications, do the following:

1. Before saving the application in the AppBuilder, copy the contents of the adm-create-objects internal procedure to a text file.
2. Open the application using the Progress Procedure Editor and replace the corrupted or truncated adm-create-objects procedure with its intact version copied in step 1.
3. Compile and run the application outside the AppBuilder.

4. This solution may be used with any AppBuilder generated internal procedure that exceeds the 31991 single byte character size limit.