SAP Knowledge Base Article - Preview

2972659 - Reason for error "339: invalid number"

Symptom

"ERROR [SQL-339]" or "error 339" is shown frequently, in both ABAP dumps and HANA traces:

  • failed to encode cursor: ERROR [SQL-339] invalid number: not a valid number string 'true' at implicit type conversion
  • error 339 at OPC

Indexserver trace:

46229]{338408}[-1/-1] 2024-08-08 09:22:15.881768 e SQLSession       sm_codec_newdb.cc(08885) : failed to encode itab result sets: ERROR [SQL-339] invalid number: SQL Error
at ptime/query/plan_executor/dml/hex/qe_hex_search.cc:513
exception  1: no.71000339  (ptime/query/plan_executor/dml/hex/qe_hex_search.cc:513) TID: 46229
    SQL Error

 NO exception throw location recorded. Stack generation suppressed.

exception type information:
- 0: public ptime::SQLException@0x00007fff92d62d18 SI
   - 0: public ptime::SQLExceptionBase@0x00007fff92d61a80 SI
     - 0: public Diagnose::UserFacingExceptionBase@0x00007fff92d5ffd0 SI
       - 0: public ltt::exception@0x00007fff6a71f340

ST22 dump:

SQL-339_updated.jpg


"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."


Read more...

Environment

SAP HANA, platform edition

Product

SAP HANA, platform edition all versions ; SAP S/4HANA foundation 1709 on SAP NetWeaver Application Server for ABAP, version for SAP HANA

Keywords

"failed to encode cursor: ERROR [SQL-339] invalid number: not a valid number string 'true' at implicit type conversion", error 339 at OPC, SQLException 46229]{338408}[-1/-1] 2024-08-08 09:22:15.881768 e SQLSession       sm_codec_newdb.cc(08885) : failed to encode itab result sets: ERROR [SQL-339] invalid number: SQL Errorat ptime/query/plan_executor/dml/hex/qe_hex_search.cc:513exception  1: no.71000339  (ptime/query/plan_executor/dml/hex/qe_hex_search.cc:513) TID: 46229    SQL Error NO exception throw location recorded. Stack generation suppressed.exception type information:- 0: public ptime::SQLException@0x00007fff92d62d18 SI   - 0: public ptime::SQLExceptionBase@0x00007fff92d61a80 SI     - 0: public Diagnose::UserFacingExceptionBase@0x00007fff92d5ffd0 SI       - 0: public ltt::exception@0x00007fff6a71f340 , KBA , HAN-DB , SAP HANA Database , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.