Feeders - won't re-fire when hierarchy changes
Posted: Thu Mar 29, 2012 8:03 pm
Hi all,
I'm really struggling with this so I'll try to explain what's going on. We have two cube that are identical except for the "Job" name. Each level zero job in the destination cube is a consolidation in the source cube and has a suffix added to it. So job "TEST1" in the destination cube is called "TEST1_R2012" in the source cube.
We wrote rules to set the destination cube "TEST1" = source cube "TEST1_R2012" for specific accounts....and then wrote a feeder to point values for TEST1_R2012 => TEST1. It works fine so long as nothing changes in the job hierarchy. Assume "TEST1_R2012" and "TEST2_R2012" in the source cube each have one child. "TEST1a" and "TEST2a" respectively. If I move "TEST2a" into "TEST1_R2012"...the values change in the source cube but they aren't fed to the destination cube. To get them to feed...I have to re-save the rule file. Then it magically works again.
Clearly, moving jobs within the hierarchy (which changes the consolidation values) doesn't trigger the feeders to re-fire. We tried several things including pointing the feeder at a third cube which contains a "Parent" attribute for each of the source cube jobs. When the hierarchy changes, a process runs to change the parent and that change was expected to cause the feeders to re-fire. It didn't work either.
Here is one of the rules and the corresponding feeders we've tried. They all work...but don't re-fire when the hierarchy changes
Rule in the Destination cube (note:the 'CMN Tag' reference is adding the suffix mentioned above):
['IWAGA Link', 'Local', 'Currency K'] = N:
DB('IDS Cost IWA Approved FCST', !IDS Job | DB('}ElementAttributes_IDS Scenario', !IDS Scenario, 'CMN Tag'), 'TOTGA', !IDS Scenario, !CMN Data Source, !IDS Location, !IDS Time Period, !CMN Currency, 'Value (Thousands)');
Feeder (note:the second DB lookup is using the third cube to determine the Job name without the suffix) :
['TOTGA', 'Local', 'Value (Thousands)','IDS Scenario':{'Rolling Forecast'}]=>
DB('IDS Cost FCST', DB('IDS Job IWA Attributes', !IDS Scenario, !IDS Job IWA, 'Trimmed Job'), 'IWAGA Link', !IDS Scenario, !CMN Data Source, !IDS Location, !IDS Time Period, 'Local', 'Currency K');
Other Feeder attempts:
['TOTGA', 'Local', 'Value (Thousands)','IDS Scenario':{'Rolling Forecast'}]=>
DB('IDS Cost FCST', SUBST('IDS Job IWA', 1 , LONG(IDS Job IWA')-6), 'IWAGA Link', !IDS Scenario, !CMN Data Source, !IDS Location, !IDS Time Period, 'Local', 'Currency K');
['TOTGA', 'Local', 'Value (Thousands)','IDS Scenario':{'Rolling Forecast'}]=>
DB('IDS Cost FCST', SUBST(DB('IDS Job IWA Attributes', !IDS Scenario, !IDS Job IWA, 'Parent'), 1, LONG(DB('IDS Job IWA Attributes', !IDS Scenario, !IDS Job IWA, 'Parent'))-6), 'IWAGA Link', !IDS Scenario, !CMN Data Source, !IDS Location, !IDS Time Period, 'Local', 'Currency K');
All of these feeders work but none of them re-fire when the hierarchy changes or when the parent/trimmed parent changes in the third cube (IDS Job IWA Attributes). In all cases...the only way I can get the values to update following a hierarchy change is to re-save the source cube's rules file (the one with the feeders). This isn't a big deal in this particular cube because it's small...but we have the same problem with cubes that take over an hour to save the rules file.
My thought is that when we move the jobs in the hierarchy...the data changes on the consolidation jobs in the source cube...and that change should trigger the feeders...but it doesn't. Turning SKIPCHECK off works...so I know it's a feeder issue, I just don't know what else to try.
Any help would be appreciated!
Terry
I'm really struggling with this so I'll try to explain what's going on. We have two cube that are identical except for the "Job" name. Each level zero job in the destination cube is a consolidation in the source cube and has a suffix added to it. So job "TEST1" in the destination cube is called "TEST1_R2012" in the source cube.
We wrote rules to set the destination cube "TEST1" = source cube "TEST1_R2012" for specific accounts....and then wrote a feeder to point values for TEST1_R2012 => TEST1. It works fine so long as nothing changes in the job hierarchy. Assume "TEST1_R2012" and "TEST2_R2012" in the source cube each have one child. "TEST1a" and "TEST2a" respectively. If I move "TEST2a" into "TEST1_R2012"...the values change in the source cube but they aren't fed to the destination cube. To get them to feed...I have to re-save the rule file. Then it magically works again.
Clearly, moving jobs within the hierarchy (which changes the consolidation values) doesn't trigger the feeders to re-fire. We tried several things including pointing the feeder at a third cube which contains a "Parent" attribute for each of the source cube jobs. When the hierarchy changes, a process runs to change the parent and that change was expected to cause the feeders to re-fire. It didn't work either.
Here is one of the rules and the corresponding feeders we've tried. They all work...but don't re-fire when the hierarchy changes
Rule in the Destination cube (note:the 'CMN Tag' reference is adding the suffix mentioned above):
['IWAGA Link', 'Local', 'Currency K'] = N:
DB('IDS Cost IWA Approved FCST', !IDS Job | DB('}ElementAttributes_IDS Scenario', !IDS Scenario, 'CMN Tag'), 'TOTGA', !IDS Scenario, !CMN Data Source, !IDS Location, !IDS Time Period, !CMN Currency, 'Value (Thousands)');
Feeder (note:the second DB lookup is using the third cube to determine the Job name without the suffix) :
['TOTGA', 'Local', 'Value (Thousands)','IDS Scenario':{'Rolling Forecast'}]=>
DB('IDS Cost FCST', DB('IDS Job IWA Attributes', !IDS Scenario, !IDS Job IWA, 'Trimmed Job'), 'IWAGA Link', !IDS Scenario, !CMN Data Source, !IDS Location, !IDS Time Period, 'Local', 'Currency K');
Other Feeder attempts:
['TOTGA', 'Local', 'Value (Thousands)','IDS Scenario':{'Rolling Forecast'}]=>
DB('IDS Cost FCST', SUBST('IDS Job IWA', 1 , LONG(IDS Job IWA')-6), 'IWAGA Link', !IDS Scenario, !CMN Data Source, !IDS Location, !IDS Time Period, 'Local', 'Currency K');
['TOTGA', 'Local', 'Value (Thousands)','IDS Scenario':{'Rolling Forecast'}]=>
DB('IDS Cost FCST', SUBST(DB('IDS Job IWA Attributes', !IDS Scenario, !IDS Job IWA, 'Parent'), 1, LONG(DB('IDS Job IWA Attributes', !IDS Scenario, !IDS Job IWA, 'Parent'))-6), 'IWAGA Link', !IDS Scenario, !CMN Data Source, !IDS Location, !IDS Time Period, 'Local', 'Currency K');
All of these feeders work but none of them re-fire when the hierarchy changes or when the parent/trimmed parent changes in the third cube (IDS Job IWA Attributes). In all cases...the only way I can get the values to update following a hierarchy change is to re-save the source cube's rules file (the one with the feeders). This isn't a big deal in this particular cube because it's small...but we have the same problem with cubes that take over an hour to save the rules file.
My thought is that when we move the jobs in the hierarchy...the data changes on the consolidation jobs in the source cube...and that change should trigger the feeders...but it doesn't. Turning SKIPCHECK off works...so I know it's a feeder issue, I just don't know what else to try.
Any help would be appreciated!
Terry