SAP Knowledge Base Article - Public

3255255 - Error Occurs On Save Of Work Permit Information Portlet

Symptom

On save of Work Permit Information portlet, one or more of the below errors occur:

  • Country cannot be empty. Make sure your administrator has enabled the field on UI and you've entered a value for it.
  • Document Type cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it.
  • Document number cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it.
  • Issue Date cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it.
  • You are trying to modify multiple records with same keys (user-id, document-type, country, document-number, issue-date). Please review the data and try again.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors Employee Central - Work Permit

Reproducing the Issue

  1. Navigate to an employee's profile.
  2. Edit Work Permit portlet
  3. Make changes -> Save
  4. One or more of the below errors occur:
    • "Country cannot be empty. Make sure your administrator has enabled the field on UI and you've entered a value for it."
    • "Document Type cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it."
    • "Document number cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it."
    • "Issue Date cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it."
    • "You are trying to modify multiple records with same keys (user-id, document-type, country, document-number, issue-date). Please review the data and try again."

Cause

These are standard validation errors, and below are the causes:

Cause 1

Below errors occurs due to business key fields (Country, Document Type, Document number, Issue Date) are not configured in Succession Data Model OR if these fields are empty in the work permit information portlet.

  • Country cannot be empty. Make sure your administrator has enabled the field on UI and you've entered a value for it.
  • Document Type cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it.
  • Document number cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it.
  • Issue Date cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it.

Cause 2

Below error occurs if there are multiple records in the Work Permit Information portlet with same values for the  business key fields Country, Document Type, Document number, Issue Date:

  • You are trying to modify multiple records with same keys (user-id, document-type, country, document-number, issue-date). Please review the data and try again.

Resolution

Resolving Cause 1:

  • Country, Document Type, Document number, Issue Date fields are Business Keys for Work Permit portlet. Therefore, these fields must be configured in workPermitInfo portlet from Admin Tools -> Manage Business Configuration (BCUI).

  • Once configured, all these 4 fields must have unique values filled in the employee's Work Permit portlet, for each record.
  • The errors will not be raised once the above steps are followed. To check if other users have empty business keys in Work Permit, run the check tool and correct the records for those users.

Resolving Cause 2:

  • Check the records in the employee's Work Permit Information portlet.
  • If there are multiple records with same values for Country, Document Type, Document number and Issue Date, then it is considered as a duplicate and should be deleted/corrected.
  • The errors will not be raised if there are no duplicates. To check if other users have have duplicate business keys existing in Work Permit portlet, run the check tool and correct the records for those users.

See Also

Additional Information for Work Permits

Keywords

Work permit, validation, 2H 2022, b2211, ECT-188275, Country cannot be empty. Make sure your administrator has enabled the field on UI and you've entered a value for it, Document Type cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it, Document number cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it, Issue Date cannot be empty. Make sure administrator has enabled the field on UI and you've entered a value for it, You are trying to modify multiple records with same keys (user-id, document-type, country, document-number, issue-date). Please review the data and try again, Enable Centralized Services for Work Permit to save changes on Editing UI, Enable Validations on the Work Permit Editing UI (Applicable only when the option "Enable Centralized Services for Work Permit to save changes on Editing UI" is disabled) , KBA , LOD-SF-EC-PER-WRK , Work Permit - Config, Rules, RBP, UI , Problem

Product

SAP SuccessFactors Employee Central 2205

Attachments

Pasted image.png
Pasted image.png
Pasted image.png