Business Rule Issue in Planning

Hi All,
I am working on a business rule and I ve tried doing it many ways but still unable to achieve the desired results. Please find the BR below:-
FIX(@CHILDREN("Vendor Expenses")
,{Scenario},@Relative("Year",0),"No VendorCategory")
{UPKVendor}
IF (@ISUDA({UPKVendor},Master))
{UPKMasterVendor}= @MEMBER(@CONCATENATE("V",@NAME({UPKVendor})));
{ToVersion}->@IDescendants({UPKMasterVendor}) = {FromVersion}->@IDescendants({UPKMasterVendor})
ELSE
{ToVersion}->{UPKVendor}={FromVersion}->{UPKVendor};
ENDIF
ENDFIX
Assumptions :-
{UPKVendor} is a runtime prompt of type "Member" who's value is initiated from the web form (Vendor Dimension which is tagged with UDA's to identify the type of project)
{UPKMasterVendor} is a runtime prompt of type "Member" who's value is constructed by concatenating "V" to the {UPKVendor}
{ToVersion} & {FromVersion} are runtime prompt's as well and the user can select the values for these prompts as part of the business rule.
Desired Results:-
IF A VENDOR IS A "MASTER" Vendor, WHICH IS IDENTIFIED USING THE UDA
THEN COPY THE UPKMASTERVENDOR AND IT's DESCENDANTS FROM THE ONE VERSION (FROMVersion) to ANOTHER VERSION (TOVersion)
For some reason, the calc manager is not formulating @IDescandants({UPKMasterVendor})
{ToVersion}->@IDescendants({UPKMasterVendor}) = {FromVersion}->@IDescendants({UPKMasterVendor})
Any help is greatly appreciated.
Thanks,
Cz

Hi,
The issue here is that you are trying to assign a member string in a variable on runtime which is not quite possible in Calc Script language. As discussed here number of times and once more quite recently, Calc Script does not support object type (including string) assignment. You can only assign numeric values to members and variables alike. You should try something like @Match function or If condition to achieve what you are doing. Another issue in your script is that you use @Descendants in an equation. You should use @Descendants to restrict the boundaries of your calculation (IF(@ISMBR..., FIX etc) but not in equations.
Just to give an idea, have a look at below sample:
IF (@ISUDA({UPKVendor},Master))
IF(@ISMBR(@Descendants((@MEMBER(@CONCATENATE("V",@NAME({UPKVendor})))))
{ToVersion}= {FromVersion};
ENDIF
ENDIF
Cheers,
Alp

Similar Messages

  • Oracle EPM 11.1.1: Business Rules issue

    Hi All,
    I have installed Oracle EPM 11.1.1 and I have created a planning application. However when I logon to Analytical Administration console and try to create a business rule I am facing the following issue:
    1. When I try to select Planning Application out I get the following errors:
    Error connecting to Essbase server <Server name>/<Application Name>.
    Detail:Could not log in to Planning Server
    2. As a work around I have set the Essbase outline and the rule is getting validated from AAS. This rule has been attached to a form and should be executed when I do a submit. However the rule is not running from the form. I tried running the rule from Planning web and again I am getting an error.
    I checked the access rights for the Business Rule from shared services and the admin user (which I am using) has Provision and Administrator rights. Is it a configuration issue or is there something that I am missing here.
    Thanks in advance,
    Amol

    NewUser2 wrote:
    Try to add a description to the Business Rule. There is a bug associated with it and you can find out in the Planning Readme. We had the same issue and got resolved by adding a description to the BR. Hope this will work for you.But the problem is he can't even create a business rule so how can he add a description to something he can't create?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Business Rules issue

    Hi All,
    Please help me to resolve below issue.
    When my client logged in to EAS console ,she can execute Business rules successfully but after 30 mins again when she try to execute same Business rule she gets error message as
    *"You must be connected to database to execute a rule"*
    Please let me know what would be the issue and how to resolve this??
    Thanks in advance..
    Regards
    Vishal

    Hi Vishal,
    This error comes when Planning web and AAS Server and Client Machine are not of same patch.
    To check it:
    go to Help->About at the following locations:
    Planning Web
    Analytic Administration Services Server
    Analytic Administration Services Client Machine(s)
    If you have Planning 9.3.a.b.c then HBR version must be 9.3.a.b.c and also on AAS server and AAS client machines.
    Cheers...!!!

  • WebForms, Security, Business Rules restore in Planning

    Hello everybody,
    I am working on Hyperion System 9 (shared services, essbase, BI+, planning etc) with Oracle 10g relational repositories.
    I know Planning has 2 command line tools (FormDefUtil.cmd, ExportSecurity.cmd) that allow us to export Planning web data forms and security in txt file.
    My question is: If I don't have the exported files for web forms and security (because my client didn't know about the existence of the 2 tools above and so there is no backup of web form and security) is there another way to restore them?
    Could I use the database backups to restore web forms and security? We do make a backup every night of all Hyperion schemas .
    Same question for Business Rules. My client never made a backup of them (never exported them as .xml), can they be restored from the database's backup?
    If web forms, security, BR can be restored from database, what are the steps to be followed in order to perform such an operation?
    Thank you for you help!
    Daniela

    Hi,
    If there has been a backup of the relational database then you will be able to restore the database from a previous day over the current database.
    You need to stop planning first, restore database, start planning, log in to make sure everything is alright.
    That is the usual way to restore the planning elements.
    The EAS database will follow the same sort of concept.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Cannot see existing Business Rules in Hyperion Planning ?

    Hello,
    I'm working on Planning 9.3.1.2 :
    I've developped several Business Rules with the EAS console (theses HBR are attached to a project).
    But when I open the application in Hyperion Planning with my admin accounts. I can't see any Business Rules in the list of Business Rules, only Calc sCripts.
    Is anyone as an idea ?
    Thanks for your help.
    Best regards

    1. Make sure that you have used the planning outline and not the Essbase outline to develop the rules.
    2. Also access needs to be given to the rules for a location (even to admin - somtimes). Ensure that you have given the access rights correctly.
    Regards,
    Sayantan

  • How to undeploy business rules deployed in Planning

    I am unable to undeploy test business rules deployed on Production. Deleting from calculation manager leaves BR in planning.. is there in any other option??

    Try this http://docs.oracle.com/cd/E17236_01/epm.1112/cmgr_admin/ch07s03s01.html
    "To remove a business rule or ruleset from an application after you deploy the business rule or ruleset, make it ineligible for deployment by clearing the check box next to its name in the Deployment View. Then you can perform a full deployment of the application by right-clicking it and selecting Deploy."
    As you've already deleted rule from Calc manager try to create empty rules with the same name (if first full deployment wouldn't help)
    Edited by: vvipirailo on Jun 6, 2012 10:42 AM

  • Business Rule issue: Not connecting to Planning outline

    Hi,
    We have recently installed EPM 11.1.2. We created a planning application and we now want to create BRs for this application. However when I tried connecting to the outline it is not able to see the plantypes. I have followed the following steps to troubleshoot:
    1. Opened Planning application through web and then open EAS to create the BR. This doesn't resolve the issue.
    2. Restarted Planning, EAS and RMI services. This also doesn't work.
    Am I missing something here?
    Regards,
    Amol

    Hi Seb,
    Thanks for replying. I was creating the rules using Admin and it has necessary access rights. Following are the entries that I found in the HBR logs that seem to point to the cause.
    Exception occured: 25:1065:Invalid value admingroup for identity.
    2009-07-10 07:34:39,428 WARN http-10080-Processor1 com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving group by identity
    2009-07-10 07:34:47,146 WARN http-10080-Processor4 com.hyperion.hbr.plugin.planning.PlanningMetadataAppElement - Error retrieving Essbase dbs from server: <> app: {1
    I have also tried to reconfigure EAS but that also doesn't help
    Regards,
    Amol
    Edited by: AmolDatt on Jul 10, 2009 12:35 PM

  • Error in association of Business Rule to Planning

    My name is Jitendra from India. I am new to Hyperion planning 9.3.
    I am facing problem while attaching a business rule with the planning database (association step). It is showing "Unable to connect to Planning" . But same Business rule is attaching with the Essbase database.
    I have installed 9.3.1Shared Service,Essbase server,Client,cosole,planning (classic application not EPMA application). My planning engine is working fine.
    I am stuck at this point for last 2 days. I saw below guide lines in OTN forum by John.
    Can somebody guide me with this problem or tell me where I can find the doc id - 763345.1
    I saw below guide lines in OTN forum by John.
    "*Before logging into EAS, try logging into the planning application via the web first.*
    *Also make sure the RMI service is running.*
    *If you still have problems I recommend logging into My Oracle Support and having a read of doc id - 763345.1*
    *It goes through different options for resolving business rules issues*."
    Thanks
    Jitendra Padhiary

    Log into "My Oracle Support" - http://support.oracle.com/
    And search for Doc id - 763345.1
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Business Rule access issue

    Hi,
    I have newly set up few business rules in 9.3.1. I have two issues here.
    1. No users listed :In Access Privileges tab,when I click on 'Add' to assign access to a user on this BR, there is only one user i.e admin(Internal) and no other users listed. But in Groups, there are groups listed and I have assigned access to those groups on this BR.
    2. Users can not view BRs in planning web : Although I have assigned access to available groups, the users in those groups can not see this business rule in planning web.
    Note : Even though I login to planning web as admin, I can not see BRs.
    Any help would be greatly appreciated.
    Thanks
    Ashok

    If you have not already it is worth going through the following doc in Oracle Support - "Troubleshooting Hyperion Business Rules Issues [ID 763345.1]"
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Business rules from epma to planning

    Hi,
    In EPMA version 11.1.12 I am having an issue with business rules. I wrote and deployed a business rule from EPMA to planning and everything was fine, the rule ran on save in the data form.
    Now, I tried to run the rule a few days later and it won't run. I tried to remove and re-add the rule, but now its not visible. In planning, I can't see 'business rule security' in the administration drop down.
    I deployed the application and all the rules and everything is successful, but still nothing in planning. In another application the rules are there.
    How could a business rule disappear from planning and not show up again when it was deployed? Any help is appreciated. Thanks,
    Dq

    We sometimes see similar issues when the services are recycled in the wrong order. Perhaps a service failed or was restarted (after you had been successful in running the business rule from Planning)?
    - Jake

  • Business Rules not available in Planning

    I logged into EAS console and created a business rule against my planning outline. It validated properly and even runs properly from the EAS console (changes data as expected).
    But when I log into Planning to assign this rule to a form the business rule is not listed either under the TOOLS > Business rules menu option or under the Business Rules Tab in Form editor.
    What do I need to do to get this business rule into Planning?

    I am on 9.3.1.
    I have 2 servers, the essbase (hy01) and the planning (hy06). When logging into EAS I usually select the essbase server to log into (hy01). I created 1 business rule while logged into hy01 and it appeared when I logged into planning through workspace. I associated that BR with the outline hy06/AppName/DBname and used that as the location as well.
    After that business rule was a grand success if I log into hy01 when logging onto EAS and then try to expand the BR node I get a "Error logging in to Business Rules. The repository has not been configured or you are not authorized to use Business Rules."
    But I can log into EAS using hy06 and access the business rules just fine (including the original one). But every business rule I have created since then does not show up into planning.
    So, in retrospect, I guess my question might be why can't I use Business Rules when logging into EAS through the Essbase server (hy01) but have full functionality when logging in through planning server (hy06) except for being able to then see the business rules I create in Planning through Workspace?
    I am logged in as admin and no permissions have changed.

  • Business Rules are disappearing from forms in Hyperion Planning v 11.1.1.3

    We are using Calculation Manager to create business rules in a planning v 11.1.1.3 application using EPMA, web logic and SQL Server. We have had several instances where business rules that were attached to forms suddenly would disappear. The form still is aware that there is an attached rule, because the application and database name appears in the Business Rules section of the form. However, all of the business rules in the application are no longer visible (i.e. the rule names are blank). The only way we have found to correct the problem is to make a copy of the rules in Calculation Manager and then redeploy the rules and re-attach them to the forms. The old rules still show up with blank descriptions. This has happened at two different locations and seems to corresond with application deployment, although intermittent. Any help would be appreciated.
    Thanks...

    If I understand what you're saying, I had the same or similar thing happen to me recently with v11.1.1.3, only I'm using classic Business Rules. I don't know why the problem occurs, although I think the root cause is probably related to inter-server communications, not to the corruption or loss of metadata. It happened to me in the target environment when I exported the rules from one environment and imported them into another.
    When I encountered the problem, I opened and then saved (without changing anything) the business rule cluster I use for managing access rights. That resolved the problem, my guess is by giving the application servers enough of a kick in the pants to start talking to one another again.
    I don't know whether this helps any, but I just thought I'd let you know you're not the only one who has seen this problem.
    Regards.

  • Business rules do not appear in Planning

    Hi,
    I've created 4 business rules, and assigned myself with Modify privileges, and "Launch and validate" privileges.
    Outline has been assigned and the rules validate fine as well.
    When login to planning and view the business rules under that plan type, it does not show the rules.
    Can anyone help with understanding what this prolem is related to?
    Thanks,
    Anindyo

    I assume that you assigned the business rule to the application location? If not, go into the business rule edit mode and check the Location tab. Make sure the application location is added. If it does not seamlessly appear in Planning, then log out then back into the Planning application for the rules to synch with Planning.

  • Unable to view Business Rules in Planning application

    Hi All,
    After changing the password of hypadmin i am not able to view all the business rules in my planning application and EAs console business rules wizard also doesn't shown planning when i am trying to add location.
    Please suggest how to do password change in Hyperion 11.1.2.
    Regards,
    Vasu

    Hi,
    If it's admin id(configuration id), then you need to configure all the components which is registered with shared services after changing your password.
    For example, EAS configuration, only re-configure for -> Register with shared services.
    Like the same way we need to do for all components with new password & for planning apps, need to edit datasource with new password.
    Thanks.

  • Error to connecting business rules for Planning application outline

    Hi all,
    I recently migrated database schemas from uat to prod.i configured evrything successfully.when
    I loged into EAS console with user(other than admin)that user has all acces to create business rules,
    I tried to create new business rule to select planning application.
    I am getting this error" error connecting to essbase server<servername>:<appname>
    in error details "error connecting to pllanning server<servername>:<appname>"
    and "error loading objects from data source:java.sql.SQLException: [Hyperion][Oracle JDBC Driver]Object has been closed."
    Please anybody help on these
    regards
    vas

    hi john,
    we are using hyperion planning 9.3.1.1.11 version,
    we were new installatalled Production server and configured,but i did not test the business rules in production server,
    next my DBA exported Oracle Dabase Schemas from UAT server to Production sever those scema names are same in UAT and Production server,so my DBA droped The Schemas in production and replaced the UAT scemas in production server,
    After i manually configured the production server with Migrated scemas, in configuration i changed the server names with production sever and Database names while configuration ,Hyperion planning datasource names are same in UAT and Production ,i manually edited the server names and Database names, i configured to For EAS ,Shared Services,Planning
    Everything configured sucessfully,i am able to log on to application Planning url,and refreshed everything,
    But i am logon to EAS console, i tried to create the Business rule with associate Planning Application I am getting this error Connecting to essbase server<server name>:<appname>
    In error details "error connecting to pllanning server,servername>:<appname.
    and error loading objects from datasource:com.java.sqlexception;[hyperion][oracle jdbc driver]object has been close.
    please help on these
    thanking you
    srini

Maybe you are looking for

  • How to make report footer at bottom of a page

    Hi all, in my report footer section, I insert a sub report as summary for my main report, even I set  "print at bottom"  by section expert, the position of report footer is sometime at top when the current page is empty, and sometime at bottom when t

  • How to get the url of the document in quick parts?

    I have document library in which there is one content type with the document template uploaded. In the footer of the document, I want to show the URL of the document which is opened in word application. Is there any way to get the URL? I am not able

  • What is the best way to remove texture from a scanned textured photo paper?

    The Black and White photo I'm restoring has a texture that I'd like to get rid of. Anyone know how to get rid of it? I'm using Adobe Photoshop CC.

  • MX and 8

    hey can someone help - ive bought a book on flash_"how to wow with flash by c.smith" , seems cool but im trying to load the tutorial files into flash MX ....they seem to be flash 8 ...can i get around this ...its an fla file ...but MX says " unexpect

  • Cannot open Yahoo!, Lifehacker but others fine

    Using my Macbook, I can (as of yesterday) no longer load Yahoo! Lifehacker and a few other random websites while others function fine. The issues are not with the sites since I can access them from other computers. Any thoughts? This started after in