Rule error on dimension rebuild
Posted: Tue Dec 16, 2008 12:42 pm
Hi
I wonder if anyone has any suggestions of workarounds on an error we are getting when rebuilding a dimension?
We have an account dimension which has multiple hierarchies on it. 2 of the hierarchies come from Oracle and others are being created from manually maintained txt files. The account dimension is used in 6 cubes, 4 of which have rules linked to consolidated account elements.
Occasionally we need to rebuild the hierarchies on the dimension so we are trying to create a chore that can be run that wil refresh all hierarchies, the problem we are having is that the rebuild gives us error log files which say that there are errors with the rules - due to the elements that the rule refers to being deleted.
Ideally we would run the whole thing within one process but as the hierarchies are from different sources we do it in a number of processes. Firstly removing all consolidations, then rebuilding the oracle hierarchies and finally rebuilding the manual hierarchies. Once the consolidations have been blown away though we then get the errors on the rules
We're considering a number of options:
1. We maintain an attribute on the accounts dimension which tells us if the element is used in a rule, these elements are then changed to N elements rather than deleted at the first stage. The hierarchy rebuilds would then correct them but as the element isn't deleted we wouldn't get an error. The downside of this, is we have an additional attribute to maintain
2. We use the "RuleLoadFromFile" function to first load empty rule files into the 4 cubes and then at the end load the actual rules files back in. The downside of this is that we will need to remember to archive the original rux files via a batch file to prevent them being overwritten so that we can then reload them
I wondered if anyone had any other suggestions?
Many thanks
Sarah Horsted
I wonder if anyone has any suggestions of workarounds on an error we are getting when rebuilding a dimension?
We have an account dimension which has multiple hierarchies on it. 2 of the hierarchies come from Oracle and others are being created from manually maintained txt files. The account dimension is used in 6 cubes, 4 of which have rules linked to consolidated account elements.
Occasionally we need to rebuild the hierarchies on the dimension so we are trying to create a chore that can be run that wil refresh all hierarchies, the problem we are having is that the rebuild gives us error log files which say that there are errors with the rules - due to the elements that the rule refers to being deleted.
Ideally we would run the whole thing within one process but as the hierarchies are from different sources we do it in a number of processes. Firstly removing all consolidations, then rebuilding the oracle hierarchies and finally rebuilding the manual hierarchies. Once the consolidations have been blown away though we then get the errors on the rules
We're considering a number of options:
1. We maintain an attribute on the accounts dimension which tells us if the element is used in a rule, these elements are then changed to N elements rather than deleted at the first stage. The hierarchy rebuilds would then correct them but as the element isn't deleted we wouldn't get an error. The downside of this, is we have an additional attribute to maintain
2. We use the "RuleLoadFromFile" function to first load empty rule files into the 4 cubes and then at the end load the actual rules files back in. The downside of this is that we will need to remember to archive the original rux files via a batch file to prevent them being overwritten so that we can then reload them
I wondered if anyone had any other suggestions?
Many thanks
Sarah Horsted