SAP Knowledge Base Article - Public

2421411 - Error when submitting MDF object with workflow

Symptom

  • Customer gets popup javascript errors upon submitting MDF objects with workflow.
  • A second MDF workflow while there is already an in-flight workflow may result in a javascript error.

Environment

  • Bizx
  • Successfactors MDF Framework 

Reproducing the Issue

  1. Navigate  to Employee Profile. 
  2. Search for a user.
  3. Navigate to MDF Workflow Portlet.
  4. Click on the pencil icon beside the portlet and edit. 
  5. Fill in all fields and attachments. Values entered don't matter.
  6. Click save.  
  7. View the workflow partipants.  They are legitimate users.
  8. Click submit.  You will get the javascript popup.

Cause

  • There's a pending record with same externalCode in the database, so customer gets UK constraint violation exception.
  • In theory, an error message should display if there's any pending record with the same external code in database but due to the mismatch between records' internal ids, this is not achieved. 

Resolution

           1. Workaround for now is to cancel the related workflow of the existing pending record. 

          2. Temporary fix requires code change. Engineering will prioritize this in release 1705. (Schedule for Preview Data Centers: May 6, 2017 and for Production: June 3, 2017)

See Also

XAF-13371

Keywords

MDF workflow javascript error  pop-up , KBA , LOD-SF-MDF-WFL , MDF Workflows , Problem

Product

SAP SuccessFactors HCM Suite all versions