Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Failed to find instance @baseclass.ProcessInfo.MapFrom

SA-31270

Summary



User is on Pega 7.1.9 and reported the following error messages during execution of a SOAP Service.

 

Error Messages



Could not find a rule when appending a stream
com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find instance @baseclass.ProcessInfo.MapFrom of type Rule-Obj-XML.


Steps to Reproduce

  1. Use Service Wizard to generate the SOAP service rule, data mapping rule and service package.
  2. Use a custom service activity and then invoke the SOAP service.


Root Cause



An issue in the custom application code or rules is identified as root cause of the issue.

While genrating the SOAP service rule using service wizard "create and manage work" option was selected as service purpose.

Due to this reason one of the svcOuput element got referenced within the XML Stream rule.

Later on the Service rule was modified to use a custom service activity which was not creating the svcOutput page in clipboard due to which user was getting the error.

If one of the svc activities like svcGetWorkState, svcPerformFlowAction, svcAddWorkObject is not used as service activity in the SOAP Service then one can remove the reference to svcOutput element from the XML Stream rule used during parsing of service response.


Resolution



Perform the following local-change: 

Modify the XML Stream rule used for parsing the service response and remove the reference to svcOuput element.  

If one of the svc activities like svcGetWorkState, svcPerformFlowAction, svcAddWorkObject is not used as service activity in the SOAP service rule then the the XML Stream rule used during parsing of service response should not reference the svcOutput element.

Published December 14, 2016 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us