Hi,
When I try saving a longchar to a clob field I get the following error:
Error reading socket, ret=10054, errno=2. (778)
** Incomplete write when writing to the server. (735)
Failure in large object operation, error = -1218 (16683)
Could not update large object segment during copy. (11322)
** Unable to update lbTxt Field. (142)
This is the assignment that generates the error:
ASSIGN
lbTxt.txtASCIIx = pcTextASCII
lbTxt.txtHTMLx = pcTextHTML
.
I have also tried using COPY-LOB:
MESSAGE "Before first copy-lob".
COPY-LOB pcTextASCII TO lbTxt.txtAsciix.
MESSAGE "Before second copy-lob".
COPY-LOB pcTextHTML TO lbTxt.txtHTMLx.
MESSAGE "After assign".
This is what I get now in the logs:
Before first copy-lob
Before second copy-lob
Error reading socket, ret=10054, errno=2. (778)
** Incomplete write when writing to the server. (735)
Failure in large object operation, error = -1218 (16683)
Could not update large object segment during copy. (11322)
More information: pcTextASCII is empty and I am running on 11.7.1.
I have been searching for an article for some time but I cannot find an anything about 16683 with error=-1218.
The code is being run from a PASOE.
It's located in a static method.
This would a short version of the method:
---------------------------------------------------------------------------------------
Parameters:
... AS CHARACTER
... AS CHARACTER,
... AS CHARACTER,
pcTextASCII AS LONGCHAR,
pcTextHTML AS LONGCHAR,
... AS CHARACTER
---------------------------------------------------------------------------------------
/* define variables */
DEFINE BUFFER lbTxt FOR txt.
/* some assignments to the variables */
DO FOR lbTxt TRANSACTION:
FIND lbTxt WHERE ... EXCLUSIVE-LOCK NO-ERROR.
IF NOT AVAILABLE lbTxt THEN
DO:
CREATE lbTxt.
/* assignment of lbTxt's character fields */
END.
ASSIGN
lbTxt.txtASCIIx = pcTextASCII
lbTxt.txtHTMLx = pcTextHTML
/* assignment of another character field */
.
/* execution doesn't reach the next statements */
END.
---------------------------------------------------------------------------------------
The longchar contains information from a text file, which has 2893 characters
Let me know if there is additional information I should provide!