bmcwilliams
23 hours agoNew Contributor
Problem With DM Sequence Parameter Resolution Order
Good afternoon,
I'm encountering an issue and hoping someone could share how they've worked around this in the past.
We have a task that runs over a finite number of Entities. Historically the underlying Business Rule was kicked off via DM Step with Entity: E#Top.Base. It's not exactly "Top" but something similar to hopefully capture all relevant Entities to this particular task. The runtime was always a consideration as it also runs for all remaining periods within our current year.
In an effort to reduce runtime we introduced a "Unique Entity" parameter. This is defined by a Business Rule that runs and queries a source table to determine only the Entities that this particular task needs to be run on. In practice this has greatly reduced runtime on the task. Runs more than 2x faster.
The problem:
The source table that populates the list of "unique entities" is also updated within the same Data Management Sequence. Something like:
1) Update source table
2) Run task described above
Because both Steps are within the same Sequence, the "Unique Entity" business rule is being executed before #1 Update source table happens. So any changes to the source table versus a previous run could cause an Entity to be missed.
I wish the Filter would get resolved when the Step is executed instead of when the Sequence is executed.
Hopefully that makes sense to everyone? The only workaround that I'm aware of is to kick off the 2nd Step at the end of the 1st step. This removes a lot of the visibility and, as part of our current process, Step 1 is sometimes executed on its own to preview Stage data before the full Cube posting takes place.
I appreciate anyone who can provide guidance on this matter.
Thanks,
Brandon