cancel
Showing results for 
Search instead for 
Did you mean: 

OCS_API_GET_STACK_INFO FAILED with code 3 Key Syntax_Error:Syntax Error in Programe SAPLOCS_XML

Former Member
0 Kudos

Hello Team

We have a system SAP Netweaver EHP7 trying to upgrade the stack.But we get failed in PrepareInputXML_ASK.Below are the log file details.

-------------------------------------------------------------

SAPup broke during phase SELSTACKXML_ASK in module PREP_INPUT / Parameter input

Error Message: RFC error system ZXD nr 90 function 'OCS_API_GET_STACK_INFO' failed with code 3 key SYNTAX_ERROR: Syntax error in program SAPLOCS_XML

1 ETQ201 Entering upgrade-phase "PREP_INPUT/SELSTACKXML_ASK" ("20150422114919")

2 ETQ367 Connect variables are set for standard instance access

4 ETQ399 System-nr = 'xx', GwService = 'sapgwxx' Client = '000'

4 ETQ399 Environment variables:

4 ETQ399   dbs_syb_schema=SAPSR3

1 ETQ206 Executing pre-phase DB specific actions.

1 ETQ200 Executing actual phase 'PREP_INPUT/SELSTACKXML_ASK'.

1 ETQ399 Phase arguments:

2 ETQ399 Arg[0] = ''

2 ETQ399 Arg[1] = 'ASK;READBASIC;CHECK_INITIAL'

1 ETQ399 Read XML stack configuration.

4 ETQ399 Copy stack file '/mnt/images/DST/hr/SMSDXML_ZXD_20150310104543.796.old.xml' to '/mnt/images/Dst/SUM/abap/tmp/SMSDXML_ZXD_20150310104543.796.old.xml' temporarily to avoid access problems.

4 ETQ399 Reading stack content ...

4 ETQ399 ... reading stack configuration file "/mnt/images/DST/SUM/abap/tmp/SMSDXML_ZXD_20150310104543.796.old.xml"

1 ETQ359 RFC Login to: System="ZXD", AsHost="zxppprdci" Nr="xx", GwHost="zxpprdci", GwService="sapgwxx"

2 ETQ232 RFC Login succeeded

4 ETQ010 Date & Time: 20150422114919 

1 ETQ233 Calling function module "OCS_API_GET_STACK_INFO" by RFC

2 ETQ373 parameter "IV_STACK_GUID" = ""

2 ETQ373 parameter "IV_STACK_FILE" = "/mnt/images/Dst/SUM/abap/tmp/SMSDXML_DXT_20150310104543.796.old.xml"

1EETQ235 Call of function module "OCS_API_GET_STACK_INFO" by RFC failed (error-status "3")

2EETQ360 RFC of "OCS_API_GET_STACK_INFO" failed:

2EETQ361 code/exception  : 3

2EETQ362 key             : SYNTAX_ERROR

2EETQ399 Syntax error in program SAPLOCS_XML                             .

4 ETQ010 Date & Time: 20150422114919 

1EETQ399 Last error code set is: RFC error system DST nr xx function 'OCS_API_GET_STACK_INFO' failed with code 3 key SYNTAX_ERROR: Syntax error in program SAPLOCS_XML                             .

1EETQ204 Upgrade phase "SELSTACKXML_ASK" aborted with severe errors ("201504221678403")

Freshly installed systems DEV QA nd PRD.

We had generated the XML for Dev  and we finished the upgrade for Dev.Once Dev is finished We started the upgrade  with same xml we had upgraded the system for QA.As we had changed the SID HOSTNAME and instance no in the xml.Successfully finished the upgrade in QA.

We struck with PRD upgrade as we unable to move this phase.Kindly let us know your inputs on this. Please find the attached screenshot for reference.

Regards

Pankaj

Accepted Solutions (0)

Answers (2)

Answers (2)

manumohandas82
Active Contributor
0 Kudos

Hi ,

Not sure but ,

Can you verify whether you have made all the required changes in the  stack.xml file  . Is the instance number and SID changed correctly  .

A ) Error Message: RFC error system ZXD nr 90 function 'OCS_API_GET_STACK_INFO' failed with code 3


B) RFC error system DST nr xx function 'OCS_API_GET_STACK_INFO' failed with code 3 key SYNTAX_ERROR: Syntax error in program SAPLOCS_XML


Thanks ,

Manu

Former Member
0 Kudos

Hello Manu

Thanks for the reply.. SID is ZXD . Again i am defining the error clearly below.

1.Error Message: RFC error system ZXD nr 90 function 'OCS_API_GET_STACK_INFO' failed with code 3


RFC error system ZXD nr 90 function 'OCS_API_GET_STACK_INFO' failed with code 3 key SYNTAX_ERROR: Syntax error in program SAPLOCS_XML.



I had changed the SID hostname and instance no.But still we unable to move the the phase as  attached in screenshot earlier.


We are troubleshooting the issue will update you.If any inputs from  team will be helpfull.

Regards

Pankaj

former_member185954
Active Contributor
0 Kudos

Hello Pankaj,

Have you looked at the link I shared, they seem to have had the same issue and they managed to resolve it. 

Regards,

Siddhesh

manumohandas82
Active Contributor
0 Kudos

Hi Pankaj ,

In your first post i see the following error message ;

1EETQ399 Last error code set is: RFC error system DST nr xx function 'OCS_API_GET_STACK_INFO' failed with code 3 key SYNTAX_ERROR: Syntax error in program SAPLOCS_XML


What is this system DST ?


Also check the link suggested by Siddhesh , Post any Dumps in the system  ( check ST22 )


Thanks ,

Manu

former_member185954
Active Contributor
0 Kudos

Hello Sai,

Have you searched this error on SCN first ?

Regards,

Siddhesh

Former Member
0 Kudos

Indeed .... Search and you shall find 🙂