SAP Knowledge Base Article - Preview

2213855 - OCS Python error: The scale field of the CS_DATAFMT structure has an illegal value of -2562.', 5 - SAP SDK

Symptom

  • A numeric column invovled in bulk operations fails
  • When using a numeric (as opposed to decimal) field on ASE and using python bulk operations to load data, a failure will occur:

Traceback (most recent call last):
File "blktypes_num.py", line 105, in <module>
blk.rowxfer([s, i, f, d, n, ti, da, ts, b])
sybpydb.ProgrammingError: ('blk_bind(): blk layer: user error: The scale field of the CS_DATAFMT structure has an illegal value of -2562.', 5)


Read more...

Environment

  • SAP Sybase Software Developers Kit (SDK) 15.7 SP130
  • SAP Sybase Software Developers Kit (SDK) 16.0
  • SAP Adaptive Server Enterprise (ASE) 15.7
  • SAP Adaptive Server Enterprise (ASE) 16.0
  • python 3.1
  • Windows / Linux

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0 ; Sybase Software Developer Kit 15.7

Keywords

772750, CR772750, blktypes.py, blk.rowxfer, TDS , KBA , BC-SYB-SDK , SDK , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Bug Filed

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.