cancel
Showing results for 
Search instead for 
Did you mean: 

EC to ERP Replication Error: Exception CX_HRPA_INVALID_FEATURE

David-Bann
Participant
0 Kudos

Hi there,

I am trying to set up replication between EC and SAP HCM. When testing the replication with the query tool for a single employee, I am getting the following error:

055(ECPAO_IN_PROCESSING) An exception with the type CX_HRPA_INVALID_FEATURE was raised, but was not handled locally or declared in a RAISING clause.

When triggering the request with program ECPAO_EE_ORG_REPL_QUERY, I have enabled payload logging and extended verbose logging.

I have checked ST22, and there are no short dumps. I have checked transactions SRT_UTIL_ADMIN, SRT_MONI and SLG1, and this error is shown in the XML and logs, but it does not give me any other clues.

Please let me know what else I can do, or where else I can look to try identify what is causing this error?

Many thanks

David

Accepted Solutions (1)

Accepted Solutions (1)

former_member78838
Discoverer

Hi David,

Try putting external break-point in method CL_HRPA_FEATURE=>GET_VALUE and check where it fails.

David-Bann
Participant
0 Kudos

Thanks Punit - I had already tried this, but forgot to set the user ID for the external break-point to the RFC user. So no break-point was ever reached. I had to change the user type of the RFC user to dialog instead of system, then in SE80, under Utilities->Settings->ABAP Editor->Debugging, set User to the RFC user ID instead of my ID.

Once that was done, I re-triggered the query and after a few seconds the debugger come up.

Thanks for the pointer.

Answers (2)

Answers (2)

David-Bann
Participant
0 Kudos

Hi Ilyas,

Here is the documentation I recorded at the time about the problem...

Error

An exception with the type CX_HRPA_INVALID_FEATURE was raised, but was not handled locally or declared in a RAISING clause.

Cause

Value mappings may be incorrect, a pick list value exists in EC but not in ERP, or the required data is not in EC. When a feature is called, the invalid or blank value is passed and the exception is thrown.

Troubleshooting / Resolution

  1. In SU01, change the user type of the RFC user (used for replication) to dialog.
  2. Go to transaction SE80, open class CL_HRPA_FEATURE, go to method GET_VALUE. Go to menu path Utilities->Settings->ABAP Workbench->Debugging, and change the User ID to the user ID used for replication, then save.
  3. Now set an external breakpoint where the exception is raised.
  4. Run program ECPAO_EE_ORG_REPL_QUERY for the problem employee number.
  5. An external debugging session will open after a few seconds.
  6. Review the data in the variables to identify invalid values – for example, if an employee subgroup is sent from EC which does not exist in ERP, then this will cause the problem. The same would apply for any value that the feature uses.
  7. Change the user type of the replication user back to System in SU01.

For example, feature PINCH requires a payroll area (pay group). If in EC the payroll area (pay group) is blank, then the feature will fail.

I hope this helps.

Regards,

David

Dimdidim
Explorer

Thank you very much David, you saved my day 🙂

0 Kudos

Dear David,

We have the same issue. Can you please let me know if the error was fixed and how?