SAP Knowledge Base Article - Preview

3025030 - Python getlobdata for text/image receives error ct_get_data 'This routine can be called only if fetchable results are available to be read.' - SDK for SAP ASE

Symptom

  • Would like to use fetchall instead of fetchone.  
  • However, only fetchone can be used to get text/image currently
  • Getlobdata to retrieve image and text receives the following error when using fetchall:
    sybpydb.ProgrammingError: ('ct_get_data(): user api layer: external error: This routine can be called only if fetchable results are available to be read.', 158)


Read more...

Environment

  • SAP Sybase Software Developer Kit (SDK) 15.7
  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0
  • Adaptive Server Enterprise extension module for Python
  • Python

Product

SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0

Keywords

CR#824212, CR# 824212, CR824212 , KBA , BC-SYB-SDK , SDK , Product Enhancement

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.