Skip to Content

EC to ERP Replication Error: Exception CX_HRPA_INVALID_FEATURE

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    May 03 at 08:53 AM

    Hi David,

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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • Nov 01 at 08:29 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 01 at 06:51 AM

    Dear David,

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

    Add comment
    10|10000 characters needed characters exceeded