SAP Knowledge Base Article - Preview

1703960 - SAPSQL_ARRAY_INSERT_DUPREC dump when activating a DataSource

Symptom

  • A BW DataSource cannot be activated due to PSA related SAPSQL_ARRAY_INSERT_DUPREC / DBSQL_DUPLICATE_KEY_ERROR dump in method "_UPDATE_DIRECTORY_TABLES" of class CL_RSAR_PSA
  • Unable to activate a DataSource using the RSDS_DATASOURCE_ACTIVATE_ALL program.

Sample of dump:

Category               ABAP programming error
Runtime Errors         DBSQL_DUPLICATE_KEY_ERROR
Except.                CX_SY_OPEN_SQL_DB
ABAP: Program          CL_RSAR_PSA===================CP
Application Component  BW-WHM-DST

"DBSQL_DUPLICATE_KEY_ERROR" CX_SY_OPEN_SQL_DB                                                 
"CL_RSAR_PSA===================CP" bzw. CL_RSAR_PSA===================CM006                   
"_UPDATE_DIRECTORY_TABLES"

Source code:
|   79|  IF p_psa_exists EQ rs_c_false OR                                                          |
|   80|     i_new_version     EQ rs_c_true.                                                        |
|>>>>>|    INSERT rstsodsfield FROM TABLE l_t_odsfield.                                            |
|   82|  ELSE.                                                                                     |
|   83|    DELETE FROM rstsodsfield                                                                |
|   84|      WHERE odsname = l_s_odsfield-odsname                                                  |
|   85|      AND  version = l_s_odsfield-version.                                                  |
|   86|    MODIFY rstsodsfield FROM TABLE l_t_odsfield.                                            |
|   87|  ENDIF.                                                                                    |

Call stack:
|   14 METHOD       CL_RSAR_PSA===================CP    CL_RSAR_PSA===================CM006    81  |
|      CL_RSAR_PSA=>_UPDATE_DIRECTORY_TABLES                                                       |
|   13 METHOD       CL_RSAR_PSA===================CP    CL_RSAR_PSA===================CM00F   193  |
|      CL_RSAR_PSA=>AFTER_ACTIVATION                                                               |
|   12 METHOD       CL_RSBC_ERROR_HANDLER_TPL=====CP    CL_RSBC_ERROR_HANDLER_TPL=====CM00D   188  |
|      CL_RSBC_ERROR_HANDLER_TPL=>IF_RSBK_TPL_OPTIONAL~AFTER_ACTIVATION                            |
|   11 METHOD       CL_RSBK_DTP_V=================CP    CL_RSBK_DTP_V=================CM01P    10  |
|      CL_RSBK_DTP_V=>AFTER_ACTIVATION                                                             |
|   10 METHOD       CL_RSBK_DTP===================CP    CL_RSBK_DTP===================CM02O    13  |
|      CL_RSBK_DTP=>IF_RSO_TLOGO_MAINTAIN_INT~AFTER_ACTIVATION                                     |

Also, import of transport request can fail with errors:

Post-import method RS_AFTER_IMPORT started for * L, date and time: XXXXXXXXXXXXXX
An exception of type CX_SY_OPEN_SQL_DB was raised and terminated the program
Program CL_RSAR_PSA===================CP, include CL_RSAR_PSA===================CM006, line 81
Errors occurred during post-handling RS_AFTER_IMPORT for * L
RS_AFTER_IMPORT belongs to package RSO_TLOGO
The errors affect the following components:
   BW-WHM-MTD (Metadata (Repository))
Post-import method RS_AFTER_IMPORT completed for * L, date and time: XXXXXXXXXXXXXX
Post-import methods of change/transport request XXXXXXXXXX completed
     Start of subsequent processing ... XXXXXXXXXXXXXX
     End of subsequent processing... XXXXXXXXXXXXXX


Read more...

Environment

SAP Netweaver BW

Product

SAP Business Warehouse all versions ; SAP NetWeaver all versions

Keywords

SAPSQL_ARRAY_INSERT_DUPREC, CX_SY_OPEN_SQL_DB, CL_RSAR_PSA===================CP, CL_RSAR_PSA===================CM006 _UPDATE_DIRECTORY_TABLES, rstsodsfield , KBA , BW-WHM-DST-DS , DataSource , BW-WHM-DST-PSA , Persistent Staging Area , 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.