Ruled cell not released for write
-
- Regular Participant
- Posts: 194
- Joined: Thu May 30, 2013 1:41 pm
- OLAP Product: Cognos
- Version: Planning Analytics 2.0.7
- Excel Version: 2010
Ruled cell not released for write
Hi, I have the following:
1. Cube has rule calculation for only "Active Version"
2. Active Version is attribute in Version dimension
3. Cube subject to Year End Process ("YEpro")
4. YEpro calls for 2 processes: a. "Export" and b. "Import"
5. Export includes rule calculated data
6. Between Export and Import, YEpro updates attribute in Version dimension to next Version
Problem:
Despite the exported file includes calculated data, the Import process could not write the calculated data back to cells of the previous Active Version as if the cells are blocked due to rule. However, the attribute should have already been updated to release the cells for write back.
I did a manual change in the Version dimension to change attribute "Active Version" and I can see the cells in the cube of the previous "Active Version" is released for write back.
My conclusion at this point is: the release won't happen until all processes are completed. If I need to write back completely then I need to separate the write back process from the Year End Process series.
Any advice is appreciated, thanks for reading.
Kenneth
1. Cube has rule calculation for only "Active Version"
2. Active Version is attribute in Version dimension
3. Cube subject to Year End Process ("YEpro")
4. YEpro calls for 2 processes: a. "Export" and b. "Import"
5. Export includes rule calculated data
6. Between Export and Import, YEpro updates attribute in Version dimension to next Version
Problem:
Despite the exported file includes calculated data, the Import process could not write the calculated data back to cells of the previous Active Version as if the cells are blocked due to rule. However, the attribute should have already been updated to release the cells for write back.
I did a manual change in the Version dimension to change attribute "Active Version" and I can see the cells in the cube of the previous "Active Version" is released for write back.
My conclusion at this point is: the release won't happen until all processes are completed. If I need to write back completely then I need to separate the write back process from the Year End Process series.
Any advice is appreciated, thanks for reading.
Kenneth
-
- MVP
- Posts: 2832
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: Ruled cell not released for write
If this "Active Version" you are referring to is an alias then you may need to separate the export and the import processes and update the alias in between the two. I have had similar issues in the past with using an alias in this manner and that is what I had to do.
-
- Regular Participant
- Posts: 194
- Joined: Thu May 30, 2013 1:41 pm
- OLAP Product: Cognos
- Version: Planning Analytics 2.0.7
- Excel Version: 2010
Re: Ruled cell not released for write
Thanks for the reply.
Actually the way the attribute working is just a "Y" under the attribute "Active" in the "Version" dimension.
If my situation is the same as yours then can we say that update due to attribute only "really" happens when the process series is completely finished?
Kenneth
Actually the way the attribute working is just a "Y" under the attribute "Active" in the "Version" dimension.
If my situation is the same as yours then can we say that update due to attribute only "really" happens when the process series is completely finished?
Kenneth
tomok wrote: ↑Thu Feb 20, 2020 3:43 pm If this "Active Version" you are referring to is an alias then you may need to separate the export and the import processes and update the alias in between the two. I have had similar issues in the past with using an alias in this manner and that is what I had to do.
-
- MVP
- Posts: 2832
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: Ruled cell not released for write
Well, that's not exactly how it works because just setting some attribute on an element is not going to control whether or not you can write to it without some special code in the rules for that cube that act on that attribute. What I was referring to was the practice of assigning an alias to a version and use the value "Active Version". This way you can hard-code the value "Active Version" in processes and reports and never have to change them as they will then always act on whichever version you have designated as the "Active Version". For your specific instance it would appear that the change in the flag value is not being committed until the main process finishes so your rule is still acting on the old flag value.
-
- Regular Participant
- Posts: 194
- Joined: Thu May 30, 2013 1:41 pm
- OLAP Product: Cognos
- Version: Planning Analytics 2.0.7
- Excel Version: 2010
Re: Ruled cell not released for write
Got it.
In my case I'll probably separate the processes and test.
Thanks for your input.
Kenneth
In my case I'll probably separate the processes and test.
Thanks for your input.
Kenneth
tomok wrote: ↑Thu Feb 20, 2020 4:16 pmWell, that's not exactly how it works because just setting some attribute on an element is not going to control whether or not you can write to it without some special code in the rules for that cube that act on that attribute. What I was referring to was the practice of assigning an alias to a version and use the value "Active Version". This way you can hard-code the value "Active Version" in processes and reports and never have to change them as they will then always act on whichever version you have designated as the "Active Version". For your specific instance it would appear that the change in the flag value is not being committed until the main process finishes so your rule is still acting on the old flag value.
- PavoGa
- MVP
- Posts: 617
- Joined: Thu Apr 18, 2013 6:59 pm
- OLAP Product: TM1
- Version: 10.2.2 FP7, PA2.0.9.1
- Excel Version: 2013 PAW
- Location: Charleston, Tennessee
Re: Ruled cell not released for write
What I think is happening is that attribute change is uncommitted data within the YEPro transaction and therefore when the Import process runs, the rules are still seeing the Active Flag as "Y" on the previous version. The attribute change is not committed until YEpro completes.
You can test this rather easily by executing CubeSaveData('}ElementAttributes_Version') right after the change to the attribute. Alternatively, have an intermediate process that sets the attribute value. Using ExecuteProcess may do the trick, but also RunProcess followed by SLEEP() would guarantee the commit.
You can test this rather easily by executing CubeSaveData('}ElementAttributes_Version') right after the change to the attribute. Alternatively, have an intermediate process that sets the attribute value. Using ExecuteProcess may do the trick, but also RunProcess followed by SLEEP() would guarantee the commit.
Ty
Cleveland, TN
Cleveland, TN
-
- Regular Participant
- Posts: 350
- Joined: Sat Jun 08, 2019 9:55 am
- OLAP Product: Planning Analytics
- Version: Planning Analytics 2.0
- Excel Version: Excel 2016
Re: Ruled cell not released for write
Hi,
I tried this but in just a single process. So the Version had flag Y against attribute ActiveVer and the cells were rule based.
In the process, I refer to a cube view that references the Active version.
On the Prolog I update the attribute to make ActiveVer = n and then on the data tab I cellput the values to the measure that had a rule which references the ActiveVer attribute.
At first it didn't work because I was referring to the active version (via some mdx) in the view that is the datasource for the process. As soon as I hard coded the version in the view and removed the mdx the process ran and updated the previously rule based cells.
Not sure if that gives any insight or not!
Maren
I tried this but in just a single process. So the Version had flag Y against attribute ActiveVer and the cells were rule based.
In the process, I refer to a cube view that references the Active version.
On the Prolog I update the attribute to make ActiveVer = n and then on the data tab I cellput the values to the measure that had a rule which references the ActiveVer attribute.
At first it didn't work because I was referring to the active version (via some mdx) in the view that is the datasource for the process. As soon as I hard coded the version in the view and removed the mdx the process ran and updated the previously rule based cells.
Not sure if that gives any insight or not!
Maren
- PavoGa
- MVP
- Posts: 617
- Joined: Thu Apr 18, 2013 6:59 pm
- OLAP Product: TM1
- Version: 10.2.2 FP7, PA2.0.9.1
- Excel Version: 2013 PAW
- Location: Charleston, Tennessee
Re: Ruled cell not released for write
To correct my earlier statement, because it may be partially incorrect: the update to the version is not committed for the Import process because the attribute update and Import are all within the Prolog procedure. You may be able to resolve your problem by simply moving the import to the Epilog. One, if not all, of the these suggestions should work.
Ty
Cleveland, TN
Cleveland, TN
-
- Regular Participant
- Posts: 194
- Joined: Thu May 30, 2013 1:41 pm
- OLAP Product: Cognos
- Version: Planning Analytics 2.0.7
- Excel Version: 2010
Re: Ruled cell not released for write
I tried implementing the suggested solution.
Just moving the load process to Epilog won't work.
CubeSaveData must be added after attribute update.
Thanks to all.
Kenneth
Just moving the load process to Epilog won't work.
CubeSaveData must be added after attribute update.
Thanks to all.
Kenneth
-
- Community Contributor
- Posts: 324
- Joined: Mon Jul 02, 2012 9:39 pm
- OLAP Product: TM1
- Version: PAL 2.0.8
- Excel Version: 2016
- Location: Sydney, Australia
Re: Ruled cell not released for write
Try updating attribute with RunProcess, so it commits entirely outside of the processing chain.
- No, it only matters if you want to serialize changes to the disk. It does not come into equation when you are committing data.CubeSaveData must be added after attribute update.
-
- Regular Participant
- Posts: 194
- Joined: Thu May 30, 2013 1:41 pm
- OLAP Product: Cognos
- Version: Planning Analytics 2.0.7
- Excel Version: 2010
Re: Ruled cell not released for write
Probably. But for simplicity I'd rather not create another process to do the job.
Thanks!
Thanks!
EvgenyT wrote: ↑Thu Feb 20, 2020 9:47 pm Try updating attribute with RunProcess, so it commits entirely outside of the processing chain.- No, it only matters if you want to serialize changes to the disk. It does not come into equation when you are committing data.CubeSaveData must be added after attribute update.