Symptom
After importing the Datamodels pre-configured rule context get reset to yes
Environment
Employee Central - HRIS (Sync)
Employee Central - BCI (Manage Business Configuration)
Employee Central - RUL (Rule Context)
Reproducing the Issue
- Configure rule context in BCUI
- Export the Data models
- Import the Data models
- Rule contexts get reset and defaulted to yes. (wiping out all pre-configured context)
Cause
This is an expected behavior. Rule Context is not supported by data model so when you upload the data model rule context default to YES.
There is no rule config on the data model hence the rule context get reset upon synchronization
Resolution
This feature was designed to help improve system performance. i.e. prevent unnecessary triggering of rule
Workaround:
Before importing the data model
- Go to Import and Export Data
- Export and backup the "HRIS Element-Trigger Rules"
- Export and backup "Localized HRIS Element-Trigger Rules"
- (they will have all the current context settings)
- After importing the datamodel
- Re-import backed up rules as well (all the context value will be imported and set to what their value before importing datamodel)
Warning:
The import of rule context works best when import as ZIP.
Please attempt first on your test system to fully grasp the concept before performing in Production.
Please be aware of the followings errors:
- All the rule contexts cannot be set to?NO? for a trigger rule. Please correct the rule contexts for following rules:[SET_ANNUALIZED_SALARY_CHANGE_RULE, WFCompImport, Comp_Change_Only_ER, Default_PayComp, PAY01, SB_Comp_Change_Only_ER].
- HRIS Sync Mapping for field end-date: The standard element companyExitDate already has a hard-coded mapping to end-date. Please remove the HRIS sync mapping from end-date and try again.
- You are not allowed to enter the value for the field externalCode with the type Auto Number in the object ECElementRuleContextConfig to prevent data corruption. The value for this field type is always set by the system.
When faced with any of these errors,just follow the instructions above and successfully import the context.
See Also
2651822 - How to Export Business Rules in a System
2181998 - How to import MDF Object/Rule via ZIP file using Full Purge mode
Keywords
Rule Context, reset, Datamodel, HRIS, BCI, , KBA , LOD-SF-EC-BCI , Manage Business Configuration (BCUI) & Data Models (XML) , Problem