cancel
Showing results for 
Search instead for 
Did you mean: 

CPIC Error when extracting data from SAP via .net connector

Former Member
0 Kudos

We have a .net console app that runs at specified intervals to extract data from SAP and store in sql server.  This console app is multi threaded.  We just upgraded our SAP system to a newer version.  The same console app ran fine before this.  We get one of 3 errors randomly.  These all seem related to the same issue.

We are using the latest connector.

Message: Connection with convid [94662212] is closed, but
cancel was not possible. CPIC layer returns (25) LOCATION CPIC (TCP/IP) on
local host with Unicode ERROR program state check for conversation 94662212
TIME Fri Jul 05 19:59:07 2013 RELEASE 720 COMPONENT CPIC (TCP/IP) with Unicode
VERSION 3 RC 471 MODULE r3cpic.c LINE 16897 DETAIL called function SAP_CMCANCEL
in state without timeouts=0 COUNTER 9

OR

Message: ERROR internal error TIME Fri Jul 05 19:59:07
2013 RELEASE 720 COMPONENT NI (network interface) VERSION 40 RC -1 DETAIL
NiErrSet COUNTER 2

OR

Message: Connection with convid [33898496] was canceled

Any help would be greatly appreciated!

Accepted Solutions (0)

Answers (1)

Answers (1)

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Brendan,

you're right 2 of the messages are related to the same situation, 1 and 3: They tell that the .NET session context, in which a function module invocation took place, has ended (recognized by NCo runtime via ISessionProvider events/IsSessionAlive()) and hence the long-running function module execution in the backend was canceled. Actually, this should not be influenced directly by a backend upgrade. However, if the function module logic has changed in a way that it e.g. now takes twice the time, it is more likely to happen. Check your implementation for ISessionProvider and/or its timeout configurations for sessions.

Best regards,

Markus