Kbase P66906: Dyn 2.1A01: Error 7319 at RunTime with SBO
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  30/12/2009 |
|
Status: Unverified
SYMPTOM(s):
ADD/SET-BUFFERS argument 1 was invalid or not found. (7319)
Dynamics 2.1A01
Error occurs only at runtime (ICFRuntime, with AppServer)
SBO containing an SDO that has two joined tables
FACT(s) (Environment):
Dynamics 2.1A
CAUSE:
Bug# OE00100734
FIX:
The following solution has been tested succefully in 2.1A01
Make the following change in adm2/query.p/createObjects (see ##WorkAround## begins/end):
[...]
DO iLoop = 1 TO NUM-ENTRIES(cBufferHandles):
hBuffer = WIDGET-HANDLE(ENTRY(iLoop,cBufferHandles)).
DELETE OBJECT hBuffer.
END.
DO iLoop = 1 TO NUM-ENTRIES(cTables):
ASSIGN
cTable = ENTRY(iLoop,cTables)
cPhysical = ENTRY(iLoop,cPhysicalTables).
hBuffer = DYNAMIC-FUNCTION('createBuffer':U IN TARGET-PROCEDURE,
ENTRY(NUM-ENTRIES(cTable,'.':U),cTable,'.':U),
cPhysical).
IF iLoop = 1 THEN
DO:
hQuery:SET-BUFFERS(hBuffer) NO-ERROR.
/* Static query */
IF ERROR-STATUS:GET-NUMBER(1) = 7317 THEN
DO:
DELETE OBJECT hBuffer.
LEAVE. /* Default current iterating .. */
END.
END.
ELSE DO:
/* ##WorkAround## begins */
/* Added NO-ERROR to work around 7319 */
hQuery:ADD-BUFFER(hBuffer) NO-ERROR.
/* ##WorkAround## end */
END.
END.
END.
[...]