Symptom
When calling createMembers or updateMembers on a public dimension via script in SAP Analytics Cloud (SAC) Planning, the operation takes significantly longer than expected — potentially up to ~10 seconds or more — impacting the user experience and planning processes.
This is more likely to occur when the model is large or complex, for example:
- The model contains many dimensions
- The public dimension has a large number of members or master data records
- The model has multiple configurations enabled, such as:
- Data Locking
- Validation Rules
- DAC (Data Access Control)
Environment
SAP Analytics Cloud
Reproducing the Issue
- Create a planning model in SAP Analytics Cloud with the following configuration:
- Add a public dimension with a large number of members and properties
- Enable Data Locking, Validation Rules, and/or DAC on the model
- Define one or more validation rules that involve the public dimension
- Create a planning story with a script that calls
updateMembersorcreateMemberson the public dimension using the above model. - Execute the script and measure the runtime of the
updateMembers/createMemberscall (e.g. by logging the timestamp before and after the call in the script console). - Observe that the operation takes significantly longer than expected — potentially ~10 seconds or more — depending on the complexity of the model and the number of validation rules and configurations enabled.
- To confirm the impact of validation rules specifically:
- Deactivate all validation rules on the model.
- Re-run the script and measure the runtime again.
- Observe that the runtime improves but may still be several seconds due to other model configurations (e.g. Data Locking, DAC).
- To confirm the impact of other model configurations:
- Repeat the test using a clean empty model that contains only the public dimension with no rules or additional configurations.
- Observe that the runtime improves significantly — typically ~2s.
Cause
When createMembers or updateMembers is called on a public dimension, SAC triggers a series of operations across all models that contain the affected public dimension. The performance of this operation is impacted by the following factors:
1. Validation Rule Updates
SAC triggers a validation rule update for all models that contain the affected public dimension. This update happens in two ways:
-
Synchronous update: Validation rules on the model used to call the function are updated synchronously, meaning their processing time is directly included in the total duration of the createMembers / updateMembers operation.
-
Asynchronous update: Validation rules on other models sharing the same public dimension are updated asynchronously via background jobs and do not contribute to the blocking time.
Therefore, the more validation rules exist on the model used to call createMembers / updateMembers, the longer the operation will take.
2. Other Model Configurations
Beyond validation rules, other model configurations also contribute to the time cost of createMembers / updateMembers. When a public dimension master data update is triggered, SAC needs to process and react to this change across all models that contain the dimension. Configurations such as Data Locking, DAC (Data Access Control), and other model-level settings may trigger additional event handlers or background processing for each affected model. The more models that share the public dimension and the more configurations that are enabled on those models, the greater the overall performance impact.
Resolution
To significantly improve the performance of createMembers / updateMembers, it is recommended to use a dedicated empty model that contains only the target public dimension and has no validation rules or other settings defined on it. By calling createMembers / updateMembers through this empty model instead of the original model, the synchronous validation rule update overhead is avoided entirely.
This approach ensures that:
- All active validation rules on other models that involve the public dimension are still updated correctly in an asynchronous manner.
- The createMembers / updateMembers operation completes significantly faster — typically 800–1,400 ms compared to 6+ seconds when rules are present on the original model.
Steps to implement the workaround:
- Create a new empty model in SAC and add the target public dimension to it. Do not define any validation rules on this model.
- In your planning story script, replace the model reference in your createMembers / updateMembers calls with the new empty model.
- Verify that the public dimension data is updated correctly and that all existing validation rules on the original model continue to function as expected.
Note: This is the recommended best practice for updating public dimension master data via script in SAC Planning, especially when the public dimension is used in validation rules across one or more models.
Keywords
updateMembers slow, createMembers slow, public dimension performance, validation rules latency, planning script, scripting performance, dimension properties, master data update delay, relationship listener, cube events, runtime degradation, asynchronous rule update, profiling trace, SAC, SAP Analytics Cloud, Planning, createMembers, updateMembers, public dimension, validation rule, performance, slow, script, master data, planning script, best practice, empty model, synchronous, asynchronous , KBA , LOD-ANA-ML-MDM , Master Data Management , LOD-ANA-PL-VAL , Planning Validation , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Problem
SAP Knowledge Base Article - Public