Validation business rule
Hi,
I am trying to reconcile account 1 with accounts 2 to 8 with a validation business rule. When I define the rule, I have one line with account 1 and account 2 filled and another 6 lines with only account 2 filled. This creates an error on validating the rule.
How can I create such a validation rule?
Thanks,
Arnold
Instead of using a validation rule I have set this up as an account transformation rule which works just as well and doesn't generate any errors.
Similar Messages
-
Error while validating Business Rule (Error Cause: nativeGetNewTLA Rule)
Hi, I am receiving an error while validating business rules
An error occurred in: Rule:HypLive.Plan1.Product Interest
A validation error was received from the Planning server 'http://abc:8300/HyperionPlanning/servlet/HspAppManagerServlet?appname=HypLive'.
'Error:
Error Cause: nativeGetNewTLA Rule HypLive.Plan1.Product Interest'.Are you able to validate the rule in EAS (or Calc Manager)?
Normally nativeGetNewTLA Rule is followed by out of memory errors like java.lang.OutOfMemoryError,
Increase the heap size to 1024, re start Planning and try validating it again.
Cheers..!! -
Validation Business Rule Problem
Hi Community
I´m working with SAP BPC 7.0 NW SP09 Consolidation, the problem I have is when I execute the validation package, the result of the Validation Rule because the business rule don´t respect the number sign of the value calculated.
For example I try to confirm this formula ASSETS = LIABILITIES + EQUITY
ASSETS AST 1000
LIABILITIES LEQ 800
EQUITY LEQ 400
RESULT -200
BUSINESS RULE 200
I was investigating all the posible combinations of dimensions, and I found it could be possible that this error occurs when (Liabilities + Equity) > Asset.
Rule
VAL01 ASSETS=LIABILITIES
Rule Details
Validation Account Account 1 Flow 1 Sign 1 Account 2 Flow 2 Sign 2 REMARK
VAL01 ASSETS F_CLO 1 LIABILITIES F_CLO 1
ASSETS and LIABILITIES are configures as part of dimlist property, where Liabilities have all the equity accounts too.
Hope anyone help me with this problem
Thanks in advanceHello Ruben
If Account: VAL01 is 'AST' account than Validation Business Rule will give 200 as the result.For 'LEQ' result will be -200.
I think the business rule is working as expected.
Hope this help.
Regards
Venkatesh KPS -
Validation business rule on a cumulative basis with periodic data storage
Hi BPC Experts,
Is it possible to set up a validation business rule on a cumulative basis when we have periodic data storage type?
Appreciate your assistance with this.
Thanks.
MilaHi Mila
Please could you tell me how you solved the issue?
We have it the other way round, a YTD storage, but would like to validate accounts on a periodic basis.
Thanks for sharing your findings.
Melanie -
Validation Business rules..
Hi all,
Does the validation business rules work on parent/ calculated members of other dimension other than the account and the account flow..
im using the accounts
SOURCE..
ACCOUNT ACCOUNTFLOW OTHERDIM1
SR10313000 F_CLO NONE1
DESTINATION
ACCOUNT ACCOUNTFLOW OTHERDIM1
SA10411200 F102 PARENT
SA10411200 F103 PARENT
which PARENT has a CHILD1 AND CHILD2 children.....
Thanks..Hi,
I don't think business rules work on parent or calculated members( though I haven't tried it), as business rules are developed using SQL stored procedures, which use the data in relational data base( fact tables), not the analysis server and fact table only has values of base members..
if any one has tried this scenario, may be they could share more knowledge.
Kranthi -
Error in Validation Business Rule
Hello Experts,
I am trying to perform validation on Intercompany Account Receivable and Account Payable accounts. For the same I added the Validation business rule, but getting an error while trying to save and validate the business rule. The error is:
Error = "No Data to Validate"
I have data in these accounts that I am performing validation on. Also, I am able to save and validate the Validation Rules Table.
Experts, could you please provide suggestions regarding why I am getting this error and how to resolve it.
Thanks
RahulHello,
is this with the Product Hyperion Financial Management?
If yes, you might close the issue here and post it in the HFM group.
Regards,
Philip Hulsebosch -
SAP BPC 5.1 Validation Tolerance in Validation Business Rules
I am trying to use the the validation tolerance field in the validation business rules and I make it work
This is how i understand it:
For example, I am trying to create a control that check that net assets = equity in the balance sheet with a tolerance of 10.
I have set up the following validation rule header and detail:
Header: CTRL1 ;validation operand = ; validation tolerance 10; all other fields are blank
Details: CTRL1; account1=netassets;flow1=F_CLO;SIign1=1;account2=equity;flow2=F_CLO;sign2=1
After running the validation package:
If my netassets-equity=9--> i should see CTRL1=0
If my netassets-equity=-5--> i should see CTRL1=0
If my netassets-equity=15--> I should see CTRL1=15
Is my understanding correct? Has anyone been able to use the validation tolerance?
Regards
LenaIn addition to James comments, I just wanted to add a few additional notes:
1. The Demo application that was presented contains the applications that you described in your question. Historically, the consulting team would either use the ApShell or the demo as the foundation for developing a set of applications for the customer based on the design sessions held with the customer. BAsed on the customer requirements and design, often we start with ApShell and pull in components from the Demo that would support functionality requirements that may go beyond what Apshell has out of the box. Many of these components are covered in an Advanced Training for BPC, including the helpful and not so helpful components.
2. You can pull many of the Demo dimension files, logic scripts and rules from the Application Server file folders for use in an Application set design. Unfortunately, BPF's can not be transfered, since they are built in to an application and reside in tables in SQL. In addition, many BPF's need to be defined to meet a customers requirements, file names, location, users, and dimension structure.
3. Many of the dimensions utilize several supporting properties that may be added via the admin console to any dimension. The properties are a key ingrediaent to a well running application set, supporting reporting, script logic, and business rules.
4. The Performance dashboard is no longer an option that is included out-of -the-box, howvere it is just a shell that was adjustable to the application set designed for the customer. -
Validation - Business Rule or/and UJ_Validation
Hi experts,
I'm on BPC 7.5 NW, I'm facing problem to construct a simple validation where I need to compare the amount from one parent account against to other. Let's explain the business scenario and after the technical solutions.
Business Scenario
Compare the Total Assets is equal to the Total Liabilities. The Total Assets is represented by a parent account "1", the Total Liabilities is represented by a parent account "2". If it is different show a warning.
This is need to trigger, after the Actual Transactional Data Load + Journals.
Technical Solution
Application: Legal
Dimensions: Empresa (Entity), Conta (Account), Fonte (C_DataScr), Versao (C_Category), Groups, Intco, MesAno (Time), TipMov (Flow), CCusto (User Defined), CLucro (User Defined)
1 - Business Rule
Validation Definition
Validation Account Remark Validation Operand Other destination dimension Members Validation Tolerance
ZATIVO_X_PASSIVO Ativo x Passivo = CONTA=VALIDATIVPASS,INTCO=SPTOTAL,CLucro=ACTEDUMMY,CCusto=ACTENONE 0
Account 1 Flow 1 Sign 1 Account 2 Flow 2 Sign 2 Remark
1 TMTOTAL* 1 2 TMTOTAL* 1 Ativo x Passivo
*The TMTotal Flow is a parent from every data on the master data TipMov (flow)
Validation.lgf
*RUN_PROGRAM VALIDATION
CATEGORY = %VERSAO_SET%
CURRENCY = %GROUPS_SET%
TID_RA = %MESANO_SET%
OTHER = [ENTITY=%EMPRESA_SET%]//For More than one other scope parameters: OTHER = [ENTITY=%ENTITY_SET%;INTCO=%INTCO_SET%...]
*ENDRUN_PROGRAM
Result
When I run with this parameters I receive the message : "UJP_PROCESS_EXCEPTION:Data for category not found in application LEGAL"
2 - Validation with UJ_Validation
Assign the driver dimension to Legal - in case I used the CONTA (Account)
Rule Maintenance
Assigned Member: "1" and "2"
Use Logic Table
Dimension = Empresa (Entity)
Operator "="
Members = TECSA - This is a parent from every Entities.
Result
When I run with this parameters I receive the message : "UJP_PROCESS_EXCEPTION:Data for category not found in application LEGAL"
3 - Validation with UJ_Validation and BADI
Assign the driver dimension to Legal - in case I used the CONTA (Account)
Rule Maintenance
Assigned Member: "1" and "2"
Use BAdI Implementation
BADI_UJ_VALIDATION_RULE_LOGIC
Create a Enhancement ZATIVO_X_PASSIVO
Filter
Rule_Num = 1
APPSET_ID = ZTECSA
DIMENSION = CONTA
Class
METHOD if_uj_validation_rule_logic~do_validation_logic.
FIELD-SYMBOLS:
<field1> TYPE ANY,
<field2> TYPE ANY.
ASSIGN COMPONENT 'FIELD1' OF STRUCTURE is_data TO <field1>.
ASSIGN COMPONENT 'FIELD2' OF STRUCTURE is_data TO <field2>.
IF <field1> NE <field2>.
es_message-message = 'Error in Validation'.
es_message-recno = 1.
es_message-MSGTY = 'W'.
ENDIF.
ENDMETHOD.
And add this line to the script
*START_BADI_UJ_VALIDATION_RULE_LOGIC~DO_VALIDATION_LOGIC
QUERY = ON
WRITE = ON
*END_BADI
Result
Data Region:
[WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:CCUSTO WILL QUERY ON ALL BASE MEMBERS.
[WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:CLUCRO WILL QUERY ON ALL BASE MEMBERS.
[WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:CONTA WILL QUERY ON ALL BASE MEMBERS.
[WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:FONTE WILL QUERY ON ALL BASE MEMBERS.
[WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:INTCO WILL QUERY ON ALL BASE MEMBERS.
[WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:TIPMOV WILL QUERY ON ALL BASE MEMBERS.
[WARNING!] MEASURES IS NOT SPECIFIED!
So what could I make to maintain all my options to do what I need ?
I appreciate any help
Best Regards
Alexandre Mendoza CollepicoloHi,
Just to check, can you try and hardcode the category in the rules itself...just for a test to see if it is working.
You can have the category mentioned as CATEGORY=ACTUAL in the rules itself for Other source dimension members and other destination members. J
This is to check if the validation package runs successfully or not.
Thanks,
Sreeni -
Error validating business rules containing variable from another plan type.
We have created few business rules in in plan type "Plan1" which we are using variable from plan type "Capex". This is how we are using it.
"(@XREF(cpx,"Intangible Assets Finite, Gross","Unspecified","No Project","Information Technology (IT)","371064911-01"))"
But when we validate this rule it gives the following error
"An error occurred in: Rule:IFLJAN13.Plan1.B - Trail Balance - Capex
A validation error was received from the Planning server 'http://hptstorg:8300/HyperionPlanning/servlet/HspAppManagerServlet?appname=IFLJAN13'.
'Error:The member 'Unspecified' cannot be found.
The member 'Unspecified' cannot be found.
The member 'Intangible Assets' cannot be found.
The member 'Unspecified' cannot be found.
The member 'Unspecified' cannot be found. Rule IFLJAN13.Plan1.B - Trail Balance - Capex'."
We have checked the location aliases using EAS Console and they are correct.Could you pls. check if you can see your BR in the location for the cube where you are unable to validate the rule?! (EAS console --> Administration --> Locations --> (right click) open)
your user must be able to "validate or launch" the rule in this location (changeable with "Add Access Privileges") and the rule itself must be able to launch in this location (changeable with "Add rules").
Kind regards
André -
Error while validating Business rules in EAS
Hi,
Iam new to hyperion. I created business rule in EAS (using a user with businessrule admin role). when i tried to validate the same, it gives an error message like *"Unable to validate or run this business rule. Detail:Exception occurred. Please check your log file for details"*. So wats the actual problem.
Thanks in advance.Sounds like you have not added security to the rule. Before you assign security you must set the Location in the Location tab, this is the db you want to run the BR on (you can also use 'Allow all Locations')
Then you must goto security tab and assign users / groups to the BR, once you have done this the BR should validate and run.
J -
Error Validating Business Rule in Calculation Manager (@_AT) ?
I have migrated an 11.1.1.3 business rule and two macros (templates) into Calculation Manager 11.1.2.2. When I validate the script I get the following error. Has anybody seen this before or have any guidance? The script syntax checks ok.
"An error occurred in: Rule:FCO_3YrBud_DGAlloc Error:Error parsing formula for [FIX STATEMENT] (line 24): Expected [(] found [@_AT] after function name Rule FCO_3YrBud_DGAlloc "
Line 24 is the first FIX statement in the script show below:
SET UPDATECALC OFF; SET AGGMISSG OFF;
%Template(name:="FCOm_TargetSection",application:="FCO",plantype:="FCO",dtps:=("parm1":=([["Three Year Budget"]]),"parm2":=([["DGAllocation"]]),"parm3":=([[{FCOrtpYears}]]),"parm4":=([[Mar]])))
%Template(name:="FCOm_TargetAgg",application:="FCO",plantype:="FCO",dtps:=("parm1":=([["Three Year Budget"]]),"parm2":=([["DGAllocation"]]),"parm3":=([[{FCOrtpYears}]]),"parm4":=([[Mar]])))
First template:
SET UPDATECALC OFF; SET AGGMISSG OFF;
FCOm_TargetSection
parm1 = scenario
parm2 = version
parm3 = years
parm4 = periods
The purpose of this macro is to translate Target input to GBP and copy to Curr NA and aggreggated. Step1: Copy inputs to Total Section to I/P Total Section and No Project Step1: Copy inputs to Converted Currency - no need to translate as all inputs are in GBP Step2: Copy Input GBP values to Curr NA
FIX(([["Three Year Budget"]]),([["DGAllocation"]]),([["FY15"]]),([[Mar]]),@IDESCENDANTS("BH - T"), "Curr NA", "Baseline","Entered Currency","A - 6111","A - 6112","A - 6113","A - 65","A - 66","A - 620905")
DATACOPY "Total Section" TO "Input_Total Section";
DATACOPY "Total Section" TO "No Project";
ENDFIX
FIX(([["Three Year Budget"]]),([["DGAllocation"]]),([["FY15"]]),([[Mar]]),@IDESCENDANTS("BH - T"), "Curr NA","Total Section", "Input_Total Section", "No Project","Baseline","A - 6111","A - 6112","A - 6113","A - 65","A - 66","A - 620905")
DATACOPY "Entered Currency" TO "Converted Currency (GBP)";
ENDFIX
FIX(([["Three Year Budget"]]),([["DGAllocation"]]),([["FY15"]]),([[Mar]]),@IDESCENDANTS("BH - T"), "Total Section","Input_Total Section","No Project", "Baseline", "Entered Currency","Converted Currency (GBP)","A - 6111","A - 6112","A - 6113","A - 65","A - 66","A - 620905")
DATACOPY "Curr NA" TO "Input GBP";
ENDFIX
Second template:
FCOm_TargetAgg
parm1 = scenario
parm2 = version
parm3 = years
parm4 = periods
The purpose of this macro is to aggreggate Target data Step2: Aggregate data
FIX(([["Three Year Budget"]]),([["DGAllocation"]]),([["FY15"]]),([[Mar]]),"Baseline","Entered Currency","Converted Currency (GBP)")
CALC DIM("Account","BudgetHolder","Input Currency","SectionProjects");
ENDFIXActually
I have just been re thinking about your post. My comments above may not be correct for your situation. The Syntax above is correct if you are talking about the code "within" the template itself (So if you open the template and look at the code). But if the code you posted in your messages was from the script window of the rule (When in script mode) then your problem is something different potentially.
So the first thing is to make sure that in the template itself (template open) the DTPs are defined in the global range or member range as [Parm1],[Parm2] etc (Or fix, depending on how the template is shown) as I said in my first response above, the template only defines the DTP, not the members and should be enclosed in square brackets, like [Parm1}. That will make sure the DTP as defined in your template correctly. Then we need to look at how you are defining those DTPs in the rule itself. Normally this is a lot easier if your rule is in graphical view, as you just click on the template and your can enter the values. As you have your rule in Script mode you need to be very careful in how you define the DTP values. Each DTP 'type' has different syntax in script mode.
On looking at your script again I can see another problem potentially. When defining the values in the DTP's, the value needs enclosing with double square brackets, like so [["Three Year Budget"]]. In your script you also have parenthesis. Which isn't always correct. There are times having parenthesis and double brackets is correct, but that is only when your DTP is type "Members", and by default I think old business rule macros will be translated into templates with the DTP types of "Script"
So if you also amend your business section where the templates are defined to as below; (as you can see, no parenthesis around the DTP values).
SET UPDATECALC OFF; SET AGGMISSG OFF;
%Template(name:="FCOm_TargetSection",application:="FCO",plantype:="FCO",dtps:=("parm1":=[["Three Year Budget"]],"parm2":=[["DGAllocation"]],"parm3":=[[{FCOrtpYears}]],"parm4":=[[Mar]]))
%Template(name:="FCOm_TargetAgg",application:="FCO",plantype:="FCO",dtps:=("parm1":=[["Three Year Budget"]],"parm2":=[["DGAllocation"]],"parm3":=[[{FCOrtpYears}]],"parm4":=[[Mar]]))
The end game should be that when you open your rule and view in script mode and then select script tab down the bottom your templates should look as below, as you will see, all that should be shown in the script are the values substituted from the template definition, key point is that there are no brackets or Parenthesis. The script should show "pure" script. ( I have highlighted and underlined how those 4 DTPs should translate in the script view)
First template:
SET UPDATECALC OFF; SET AGGMISSG OFF;
FCOm_TargetSection
parm1 = scenario
parm2 = version
parm3 = years
parm4 = periods
The purpose of this macro is to translate Target input to GBP and copy to Curr NA and aggregated. Step1: Copy inputs to Total Section to I/P Total Section and No Project Step1: Copy inputs to Converted Currency - no need to translate as all inputs are in GBP Step2: Copy Input GBP values to Curr NA
FIX("Three Year Budget","DGAlocation",FY15,Mar,@IDESCENDANTS("BH - T"), "Curr NA", "Baseline","Entered Currency","A - 6111","A - 6112","A - 6113","A - 65","A - 66","A - 620905")
DATACOPY "Total Section" TO "Input_Total Section";
DATACOPY "Total Section" TO "No Project";
ENDFIX
FIX("Three Year Budget","DGAlocation",FY15,Mar,@IDESCENDANTS("BH - T"), "Curr NA","Total Section", "Input_Total Section", "No Project","Baseline","A - 6111","A - 6112","A - 6113","A - 65","A - 66","A - 620905")
DATACOPY "Entered Currency" TO "Converted Currency (GBP)";
ENDFIX
FIX("Three Year Budget","DGAlocation",FY15,Mar,@IDESCENDANTS("BH - T"), "Total Section","Input_Total Section","No Project", "Baseline", "Entered Currency","Converted Currency (GBP)","A - 6111","A - 6112","A - 6113","A - 65","A - 66","A - 620905")
DATACOPY "Curr NA" TO "Input GBP";
ENDFIX
Thanks
Anthony -
Business Rule Validation Error
Hello,
Please help me I'm finding the this error when I'm validating Business Rule in Admin Services.
"Unable to run or validate this rule (Demo2) against the following location: Essbase/Amit-pc/Sample/Basic for user Admin"
RahulHi,
Make sure you add the location in the locations tab of the business rule, then give the user access in the next tab along.
Cheers
John
http://john-goodwin.blogspot.com/ -
Dynamic validation of Business Rules
Who has a good thought/example about a principle of dynamically validating Business Rules without coding every time each BR?
I am thinking about a table where I can enter the expressions like:
- <p1> is not Null
- <p1> not in (select 'x' from <table>)
- <p1> < 2000
This logically, simple expressions should return a boolean expression (true or false).First, in a well designed data model, I'm not sure I see the need for data validation logic to change regularly. If a particular column cannot be NULL today, it would be rather unlikely that it would somehow need to be NULL tomorrow.
Second, I'm not sure I see what this approach buys you over the much simpler approach of adding and removing check constraints if the data model changes. Adding and removing a constraint is pretty trivial-- orders of magnitude less difficult than doing the analysis to determine what constraint needs to change and what impact that has downstream.
Third, I would suspect that if you need to encode these sorts of constrains in a table, your system will kill downstream systems with regularity. If p1 is NOT NULL today, but tomorrow it suddenly allows NULL values, a consumer application might well break (or worse, silently return incorrect results). Data changes should not be able to screw up downstream systems.
Fourth, if you did build such a system, you would have to build your own constraint validator, rather than being able to rely on Oracle's (unless you wrote code to create and drop Oracle constraints based on values in a table, but that seems rather convoluted). Given that Oracle's constraint validation engine is highly optimmized and highly accurate, a home grown engine isn't going to look particularly good in comparison.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Error while migrating business rules
While trying to use the export/import option in EAS to migrate business rules, we have run into an error.
The export itself is fine. When trying to import, it says this:(even though it lets me select the proper xml file for importing)
Error while migrating business rules.
Detail: The import file specified is not a valid business rules xml file. Import will be terminated.
Detail:Exception occured. Please check your log file for details.
I am pretty sure I used the inherent format specified for exporting the business rules.
Both the old and new systems are version 11.1.2.
The LCM method also failed for the business rules migration.
Any suggetions?
Thanks,
SujaniWhen you export them make sure you don't have "For Calc Mgr" checked, if you do then the import with fail.
Cheers
John
http://john-goodwin.blogspot.com/ -
Business rules for check current date and session user
MDS 2012
Hi All! How to make validation business rules:
1. date < GETDATE()
2. current session user is UserName(), where UserName() - system function like in MS Analysis Services
from Moscow with LoveThere is no way to create this with a Business Rule, you have to write a custom workflow or SQL nightly job or something to update your fields.
Ok people start screaming.
"solution" if you want to call it that. USE AT YOUR OWN RISK, try in dev first :)
1. Create an Attribute / Column in your Entity and call it Today or something.
2. Go to Business Rules and create a dummy rule where you are setting this attribute (unconditionally with no Condition)
Today equals 1/1/2000 or something.
3. Go to tblBRItem find this BR and etin ItemSQL from N'1/1/2000' to GETDATE()
now you have Todays Date field...
OK NEVER MIND, I've tried it and it works, the problem is that tblBRItems gets updated via a stored proc and will overwrite your entry.
One can modify the code there as well but I don't have time to play with it unfortunately, as at that time you have to pass some token in to identify some values as your own special commands ... Either way this becomes messy and not a way to go.
Maybe you are looking for
-
I have lost songs from my HD (iTunes shows them as missing and although the artist folder and album name are on teh HD the songs aren't) If I go into iTunes I can see I have bought them, and previously downloaded them, but I cannot 're-download them'
-
How can I tell if my iPad is about to overcharge?
How can I tell if my Ipad is about to overcharge? I can I avoid overcharging it? Thanks!
-
i am trying to hook up my apple tv 2 to my yamaha audio receiver via the HDMI jack so i can have the movies and audio play surround sound. has anyone done this and know how to get tv to find the source?
-
Document Info Record (MM) self populating in Quality Notification
Greetings All, I am trying to set a Document info Record in the material master such that when a quality notification is created; the DIR will appear in the Supporting Documents tab/Linked documents. Your attention into this matter is greatly apprec
-
What difference on ABAP language between 2004 version and before version
Hi everyone, Does there exist difference about ABAP language between 2004 version and before version? If it does, what's that? For example, what's new keywords? Which old key words can't be applied on 2004 platform any more? Any suggestion is highly