Zeros in invalid dimension intersections
Hi all,
I'm perplexed with a case, when a method writes zeros to invalid intersections, and I can see them in a data grid. The method is like this:
Sub Consolidate()
If HS.Value.Member = "[Parent Total]" Then Call Cons_1
End Sub
Sub Cons_1()
Set objDataUnit = HS.OpenDataUnit("V#[Elimination].A{Accs.[Base]}")
lNumItems = objDataUnit.GetNumItems
For i = 0 to lNumItems-1
Call objDataUnit.GetItem(i, nmAcc, nmICP, nmC1, nmC2, nmC3, nmC4, dtData)
If nmC2 <> "xxx" Then Call HS.Con ("V#[Elimination].C1#" & HS.Custom1.UD1(nmC1) ,-1,"...")
Next
End Sub
Do you have any idea why this method gives 0 on V#[Elimination] for E#Entity, but this intersection is invalid because Elimination value should use nodes instead of entities? I output to log file that this procedure writes 0 to such intersection. And I see it in a grid.
Thank you in advance.
Hi Mary,
Regarding my example, it was a copy paste mistake.
I believe that the reason of the extra zeros is the string: HS.Custom1.UD1(nmC1). If I have understood correct your rule, my way of writing the rule would be similar to:
If HS.Custom1.UD1(nmC1) = "nmC1" and nmC2 = "xxx" Then
Call HS.Con ("V#[Elimination]" ,-1,"...")
End If
In other words, you must remove the UD1 from the Con command.
Regards
Thanos
Similar Messages
-
"Invalid cell intersection" error
Hi,
I'm a beginner in administering and using Hyperion Financial Management 11.1.1.3
I'm trying to enter an Intercompany transaction in HFM on the workspace but, after I'd specified the transaction ID and picked the members, I pressed the save button and I got the following error: "Invalid cell intersection".
I created the following rule file and loaded it but still the error arised:
HS.Account.IsICP("ShortTermPay") = TRUE
HS.Account.IsICP("ShortTermDebt") = TRUE
HS.Entity.IsICP("Stamford") = TRUE
HS.Entity.IsICP("Florida") = TRUE
Sub Transaction()
HS.SupportsTran "S#Actual.A#ShortTermPay"
HS.SupportsTran "S#Actual.A#ShortTermDebt"
End sub
I want to define an account as IC account and also an entity as ICP. Do you know how?
I loaded an ICTrans file which is a sample installed with Hyperion but the same error arised.
I'd appreciate any help.
Thank you and best regards,
Ahmed.Hi JTF,
Thank you sooooo much for your reply.
Really, you solved my issue.
I saved the two IC transactions I've created successfully but when I match them "Auto Match" by account, I faced the following error: "missing account and/or matching account"
Do you know what to do?
Thank you again.
Ahmed -
Test script logic file - Errror "Invalid Dimension Account"
Hi BPC Experts,
I am a new bee in BPC and have developed HCM applicaton in BPC 5.1. The Appset contains Finance, Rate & HCM applications.
I am working on HCM and wants to write a script logic file for HCM and it is giving an ERROR "Invalid Dimensin Account".
I have following dimensions in HCM Application:
account_hc --> type A
category_hc --> type C
company_hc --> type E
time_hc --> time t
costcenter_hc --> type u
datasrc_hc --> type d
employerole_hc --> type u
geography_hc --> type u
rptcurrency_hc --> type r.
I had defined Dimensions in system_cnstants file as mentioned below.
// application constants
*FUNCTION CATEGORYDIM =CATEGORY_HC
*FUNCTION TIMEDIM =TIME_HC
*FUNCTION CURRENCYDIM =RPTCURRENCY_HC
*FUNCTION ENTITYDIM =COMPANY_HC
*FUNCTION ACCOUNTDIM =ACCOUNT_HC
*FUNCTION INTCODIM =INTCO
*FUNCTION CATEGORYDIM =CATEGORY
*FUNCTION TIMEDIM =TIME
*FUNCTION CURRENCYDIM =RPTCURRENCY
*FUNCTION ENTITYDIM =ENTITY
*FUNCTION ACCOUNTDIM =ACCOUNT
// This part is needed when a RATE cube
// is associated to the application
// (FX = single or multi currency)
*FUNCTION THISAPP =HCM
*FUNCTION RATEAPP =RATE
*FUNCTION RATEENTITYDIM =RATESRC
*FUNCTION RATEACCOUNTDIM =RATE
*FUNCTION INPUTCURRENCYDIM =INPUTCURRENCY
*FUNCTION RATEENTITYMBR =RATEINPUT
*FUNCTION RATESRCCALCMBR =RATECALC
*FUNCTION AVGRATEID=AVG
*FUNCTION ENDRATEID=END
I tried to validate and save standard default script logic. But it gives me an error " NO match defined for lookup dimension Category"
So I could not use default logic file to write my script logic. Hence I have created HCM logic file. and Given the following script logic.
*XDIM_MEMBERSET ACCOUNT = XYZ_INC_RetPlan
*WHEN ACCOUNT
*IS XYZ_INC_RetPlan
*REC(FACTOR = 1.1, ACCOUNT)
*ENDWHEN
*COMMIT
While validat & save, I get an error "Invalid Dimension Account".
I do not understand why these errors occuring.
I have checked Category & Account dimensions checked. Every thing is ok. I have created Input schedules and they are working ok. It means the dimensions are fine.
Then why the error ?
Can you guys please guide me.
Appreciate your kind help.Eswara,
try to close down BPC for ExCEl in case your IS/Reports are trying to access the APPlication.And also any other BPC ADmin screens accessing the same Application/Dimension.
1)try to only do a "process " on the account dimension without including the processing for Applications...
2)then try to do a process on the application.
Now your script should be able to recognize Account dimension and validate fine..
hope this helps... -
Invalid Dimension SALESACCOUNT in Lookup rule
Hi all,
I craeted a New logic Sales_to_PL and provided the below script. But while validating it I get the message as
"Invalid Dimension SALESACCOUNT in Lookup rule"
Please advice.
// LOGIC FOR BEST PRACTICES - BP_SALES APPLICATION
*INCLUDE SYSTEM_CONSTANTS.lgl
// SEND THE RESULTS to THE PROFIT AND LOSS APPLICATION
*DESTINATION_APP=PROFIT_AND_LOSS
*SKIPDIM=PRODUCT
*RENAME_DIM SALESACCOUNT = Account
*XDIM_MEMBERSET Category <> ACTUAL
*XDIM_MEMBERSET PRODUCT = <ALL>
*WHEN SALESAccount.TRANSFER
*IS "Y"
*WHEN SALESAccount.PROFITLOSSACCT
*IS <> ""
*REC(EXPRESSION=%VALUE%,SALESACCOUNT=SALESACCOUNT.PROFITLOSSACCT,DataSrc="BP_SALESApp")
*ENDWHEN
*ENDWHEN
*COMMIT
// Calculate the FX in the P&L Application after Sales data is Transferred
*RUNLOGIC
*APP = BP_Profit_Loss
*LOGIC = FXTRANS
*ENDRUNLOGIC
Thanks
LAKAs my Dimension name is SalesAccount, I even tried changing the constantsllgl file in server and also the script with same SalesAccount instaed of SALESACCOUNT as shown below. Still it did not work.
// LOGIC FOR BEST PRACTICES - BP_SALES APPLICATION
*INCLUDE SYSTEM_CONSTANTS.lgl
// SEND THE RESULTS to THE PROFIT AND LOSS APPLICATION
*DESTINATION_APP=BP_Profit_Loss
*SKIPDIM=PRODUCT
*RENAME_DIM SalesAccount = Account
*XDIM_MEMBERSET Category <> ACTUAL
*XDIM_MEMBERSET PRODUCT = <ALL>
*WHEN SalesAccount.TRANSFER
*IS "Y"
*WHEN SalesAccount.PROFITLOSSACCT
*IS <> ""
*REC(EXPRESSION=%VALUE%,SalesAccount=SalesAccount.PROFITLOSSACCT,DataSrc="BP_SALESApp")
*ENDWHEN
*ENDWHEN
*COMMIT
// Calculate the FX in the P&L Application after Sales data is Transferred
*RUNLOGIC
*APP = BP_Profit_Loss
*LOGIC = FXTRANS
*ENDRUNLOGIC -
Invalid Dimension Entity in lookup
Hi All,
When try to validate the script logics from BPC Admin, I am getting the message "Invalid Dimension Entity in lookup".
Can you please let me how to fix this.
Thank you,
RajuWith the suggestions from this link -
ExecuteBaseLogic : Invalid Dimension:CATEGORY
"I have modified "Constants.lgl file" located into Webfolders\<appset>\AdminApp\<application name> if the categorydim is properly assigned to your category dimension" - I am not getting the above error more But I am getting another Error --
"Enforced *Destination cannot be empty" from ICElim.lgf and here is the code:
//=============================================
// Default Intercompany Eliminations
//=============================================
*INCLUDE SYSTEM_CONSTANTS.LGL
*SYSLIB ICELIMWITHCURR.LGL
// append custom elimination rules here
//=============================================
// Elimination logic for two organization(H1, H2)
//=============================================
INITIALIZE_ELIM()
ELIMINATE_ORG(H1)
ELIMINATE_ORG(H2)
*COMMIT -
ExecuteBaseLogic : Invalid Dimension:CATEGORY
Hello SAP Guru,
I have design input schedules using EVDRE() with Time dimension in column and Entity dimension in row. When I send data to database I am getting the following message
Book Name : Test_Comparasion2.xlsx
Application : ABS_FMCG_PLAN
Status : Success
Submitted Count : 1
Accept Count : 1
Rejected Coount : 0
-Error Message-
ExecuteBaseLOgic : Invalid Dimension:CATEGORY
Please let me know how to rectify the above error message.
Thanks.
With regards,
Anand KumarHi,
It looks like there is a problem with your category dimension. Please try to process the dimension again selecting your application and full process. You ave to check also into Constants.lgl file located into Webfolders\<appset>\AdminApp\<application name> if the cstegorydim is properly assigned to your category dimension.
You acn also have a look into the logic log file located into Webfolders\<appset>\<application name>\Private publications\<user name>\Temp Files, maybe you can find more details about your error.
However, the error is related to default logic (you can retry to validate and save it) and application structure(you can try to modify your application), not to evdre. You will receive the same error trying to send data even using other methods.
Best regards,
Mihaela -
ExecuteBaseLogic::Invalid dimension BUDGET in lookup
Hello there
Just a quick question.
I am doing a lookup to take the rates in the rate cube
I want the lookup to look at the category budget if my evdre is in budget and actual otherwise...
i did this but it is not working i get the error
ExecuteBaseLogic::Invalid dimension BUDGET in lookup
*LOOKUP RATE
*DIM LCCUR:INPUTCURRENCY=ENTITY.CURRENCY
*DIM TCCUR:INPUTCURRENCY=TRANSACTIONCURRENCY.ID
*DIM RATE="AVG"
*DIM RATEENTITY="GLOBAL"
*DIM CATEGORY=%SET%
*ENDLOOKUP
*WHEN TIME
*IS 2010.JAN
*REC(FACTOR=LOOKUP(TCCUR)*(1/LOOKUP(LCCUR)),RPTCURRENCY="LC",CATEGORY=%SET%)
*ENDWHEN
*COMMIT
What I am doing wrong?Marcel here is below my logic.
I also would like to tell you that the logics is working in a way that it is giving me results but with the ACTUAL rates not with the BUDGET rates...
Nic
*LOOKUP RATE
*DIM LCCUR:INPUTCURRENCY=ENTITY.CURRENCY
*DIM TCCUR:INPUTCURRENCY=TRANSACTIONCURRENCY.ID
*DIM RATE="AVG"
*DIM RATEENTITY="GLOBAL"
*ENDLOOKUP
*WHEN TIME
*IS 2010.JAN
*REC(FACTOR=LOOKUP(TCCUR)*(1/LOOKUP(LCCUR)),RPTCURRENCY="LC")
*ENDWHEN
*COMMIT -
Error: Invalid dimension member with special character / in BPC NW 7.5 SP7
Hi experts,
We are encountering the following problem in our Financial Planning application.
We are migrating our existing BPC solution from one server to another through backup and restore. The existing solution was on BPC NW 7.5 SP 5. The profit_centre dimension in the existing solutions has several member ids with special character '/' (forward slash). The dimension never threw an error when processed in the existing solution and there is planning transactional data against these member ids.
While the entire configration , appset , files were successfully restored through UJBR on the new system (BPC 7.5 SP7) through UJBR (backup and restore), the masterdata could not be restored only for this Profit_centre (masterdata for other dimensions were processed successfullu). All the member ids with / are rejected for this dimension. The same error is thrown if processed through the admin client from the member sheet.
Error: Dimension member PC_FF/WS/NT is an invalid member ID
Error in Admin module
Is there any setting which need to be made to allow / character in member ids? Any suggestion to get around this problem would be much appreciated.
Thanks
AbhimanHi Abhiman,
Yes, you need to maintain the transformation file to correct all dimension member IDs. Can you please refer to the following link with a similar issue:
conversion file formula not working
Hope this helps.
Rgds,
Poonam -
Error Invalid Dimension - RUNLOGIC
Hello,
I have one application A with account dimension called AAcc and an application B with account dimension called BAcc.
I run a logic from application A calling an B script logic, for example:
At application A:
*RUNLOGIC
*APP = B
*LOGIC = CALC_1
*ENDRUNLOGIC
When I run at the logic debugger, I receive the following error message:
u201CInvalid dimension: AAccu201D
I have to run Calc_1 at the default.lgf as an addition to other calculations I make in application A, but I have to use BAcc accounts for that.
I use BPC 7.0 MS.
Any suggestions?
Thanks in advance.
Best regards,
SueHi Kyle, Kranthi, nilanjan,
Thank you for your reply.
Please see what worked:
*RUNLOGIC
*APP = B
*DIMENSION AAcc =
*LOGIC = CALC_1
*ENDRUNLOGIC
Best regards,
Sue -
EXPRESSION= %VALUE% " Dimension intersections"
Hi all
I am on BPC7.5 SP04.
We have script which is written in MS version. I would like to convert it to 7.5. Please find the code below let me know if you have any thoughts.
1) In the Rec( Expression = %Value% < " numeric value or some dimension combination " ---works in 7.5
2) how to implement the boolean expression in 7.5 with a tuples
*bold*This is the code in MS VERSION*bold*
*XDIM_MEMBERSET CATEGORY=FORECAST
//*XDIM_MEMBERSET COSTCENTER=%COSTCENTER_SET%
*XDIM_MEMBERSET EMPCAT=SAL
*XDIM_MEMBERSET EMPTYPE=%EXEMPT%,NOPOSITION
*XDIM_MEMBERSET ENTITY=%ENTITY_SET%
//*XDIM_MEMBERSET RPTCURRENCY=LC
*XDIM_MEMBERSET H_ACCOUNT=TAXYTD,TAXFICAMAX,TAXFICAMIN
*XDIM_MEMBERSET TIME=%MONTHS%,MTH.NA
*WHEN SIGNEDDATA
*IS > GET(H_ACCOUNT="TAXFICAMAX",EMPTYPE="NOPOSITION",TIME="MTH.NA")
*REC(EXPRESSION=GET(H_ACCOUNT="TAXFICAMAX",EMPTYPE="NOPOSITION",TIME="MTH.NA"))
*IS < GET(H_ACCOUNT="TAXFICAMIN",EMPTYPE="NOPOSITION",TIME="MTH.NA")
*REC(EXPRESSION=GET(H_ACCOUNT="TAXFICAMIN",EMPTYPE="NOPOSITION",TIME="MTH.NA"))
*ENDWHEN
*COMMIT
*bold*This is the logic i wrote to convert into 7.5 - Please corrrect me if i am wrong *bold*
*XDIM_MEMBERSET CATEGORY=FORECAST
*XDIM_MEMBERSET COSTCENTER=100
*XDIM_MEMBERSET EMPCAT=SAL
*XDIM_MEMBERSET EMPTYPE=A1_GENMGR,NOPOSITION
*XDIM_MEMBERSET ENTITY=CORP
*XDIM_MEMBERSET RPTCURRENCY=LC
*XDIM_MEMBERSET H_ACCOUNT=TAXYTD,TAXFICAMAX,TAXFICAMIN
*XDIM_MEMBERSET TIME=2011.JAN,MTH.NA
*WHEN EMPTYPE
*IS A1_GENMGR
*REC(EXPRESSION=(%VALUE%<[H_ACCOUNT].[TAXFICAMAX],[EMPTYPE].[NOPOSITION],[TIME].[MTH.NA]),H_ACCOUNT="TAXFICAMAX",EMPTYPE="NOPOSITION",TIME="MTH.NA")
*REC(EXPRESSION=(%VALUE%>([H_ACCOUNT].[TAXFICAMIN],[EMPTYPE].[NOPOSITION],[TIME].[MTH.NA])),H_ACCOUNT="TAXFICAMIN",EMPTYPE="NOPOSITION",TIME="MTH.NA")
*ENDWHEN
*COMMITThank you for the information Gersh and Sheldon.
I the document was an intersting read. So here is the challange.
Yes I am Developing the code in NW.
so I tried to write the code using the Advance Programming Technique in the scriplogic Whitepaper.
I tried it as below:
bold<Code>
*XDIM_MEMBERSET CATEGORY=FORECAST
*XDIM_MEMBERSET COSTCENTER=%COSTCENTER_SET%
*XDIM_MEMBERSET EMPCAT=%EMPCAT_SET%
*XDIM_MEMBERSET EMPTYPE=<ALL>
*XDIM_MEMBERSET ENTITY=%ENTITY_SET%
*XDIM_MEMBERSET RPTCURRENCY=LC
*XDIM_MEMBERSET H_ACCOUNT=TAXYTD,SALARYFICAMIN,SALARYFICAMAX
*XDIM_MEMBERSET TIME=BAS(%TIME_SET%),MTH.NA
IF TAXYTD < MIN THRESHOLD, SET TAXYTD CALCULATED TO MIN & IF TAXYTD > MAX, SET TAXYTD CALCULATED TO MAX
*WHEN H_ACCOUNT
*IS TAXYTD
*REC(EXPRESSION=([H_ACCOUNT].[#TAXYTD])=([H_ACCOUNT].[TAXYTD])<([H_ACCOUNT].[SALARYFICAMIN],[TIME].[MTH.NA])?([H_ACCOUNT].[SALARYFICAMIN],[TIME].[MTH.NA]):(([H_ACCOUNT].[TAXYTD])>([H_ACCOUNT].[SALARYFICAMAX],[TIME].[MTH.NA])?([H_ACCOUNT].[SALARYFICAMAX],[TIME].[MTH.NA]):([H_ACCOUNT].[TAXYTD])),H_ACCOUNT="TAXYTD")
*ENDWHEN
*COMMIT
When i run it in the ujkt tester it gives me a message as boldUJK_VALIDATION_EXCEPTION:Unknown Dimension Name in Keyword: "([H_ACCOUNT].[TAXYTD:
I have doublechecked in the H_Account Dimension and I do see a memberset with the name TAXYTD.
Not sure where I am going wrong.
Tried breaking the code into two parts and see
*XDIM_MEMBERSET CATEGORY=FORECAST
//*XDIM_MEMBERSET COSTCENTER=100
*XDIM_MEMBERSET EMPCAT=SAL
//*XDIM_MEMBERSET EMPTYPE=A1_GENMGR,NOPOSITION
*XDIM_MEMBERSET ENTITY=CORP
*XDIM_MEMBERSET RPTCURRENCY=LC
*XDIM_MEMBERSET H_ACCOUNT=TAXYTD,TAXFICAMAX,TAXFICAMIN
*XDIM_MEMBERSET TIME=2011.JAN,MTH.NA
*WHEN H_ACCOUNT
*IS TAXYTD
[H_ACCOUNT].[TAXYTD]=IIF([H_ACCOUNT].[TAXYTD] >([H_ACCOUNT].[TAXFICAMAX],[TIME].[MTH.NA],[EMPTYPE].[NOPOSITION]),([H_ACCOUNT].[TAXFICAMAX],[TIME].[MTH.NA],[EMPTYPE].[NOPOSITION]),[H_ACCOUNT].[TAXYTD])
//*REC(EXPRESSION=IIF([H_ACCOUNT].[TAXYTD] >([H_ACCOUNT].[TAXFICAMAX],[TIME].[MTH.NA],[EMPTYPE].[NOPOSITION]),([H_ACCOUNT].[TAXFICAMAX],[TIME].[MTH.NA],[EMPTYPE].[NOPOSITION]),[H_ACCOUNT].[TAXYTD]))
*ENDWHEN
*COMMIT
*XDIM_MEMBERSET CATEGORY=FORECAST
//*XDIM_MEMBERSET COSTCENTER=100
*XDIM_MEMBERSET EMPCAT=SAL
//*XDIM_MEMBERSET EMPTYPE=A1_GENMGR,NOPOSITION
*XDIM_MEMBERSET ENTITY=CORP
*XDIM_MEMBERSET RPTCURRENCY=LC
*XDIM_MEMBERSET H_ACCOUNT=TAXYTD,TAXFICAMAX,TAXFICAMIN
*XDIM_MEMBERSET TIME=2011.JAN,MTH.NA
*WHEN H_ACCOUNT
*IS TAXYTD
[H_ACCOUNT].[TAXYTD]=IIF([H_ACCOUNT].[TAXYTD] < ([H_ACCOUNT].[TAXFICAMIN],[TIME].[MTH.NA],[EMPTYPE].[NOPOSITION]),([H_ACCOUNT].[TAXFICAMIN],[TIME].[MTH.NA],[EMPTYPE].[NOPOSITION]),[H_ACCOUNT].[TAXYTD])
*ENDWHEN
*COMMIT
Still did not work
Gives me the same error message as boldUJK_VALIDATION_EXCEPTION:Unknown Dimension Name in Keyword: "([H_ACCOUNT].[TAXYTD: Even though there is TAXYTD account in the H_Account Dimension
Edited by: Sayapilla on Apr 26, 2011 10:59 AM -
How to skip aggregated Datastrings before the Intersection Report launched.
Hi there,
We are facing a issue during our monthly upload process, that is causing us to switch all the time the "Enable Intersection Validation" trigger.
Example:
We have two different Import DataStrings that are imported (different Accounts). The aggregated value of both strings is equal to zero.
Account ICP Amount
ABC A -40
XYZ A 40
Actually both account are mapped to the same Target Account (example Asset_Cash), and the ICP information is mapped as well to the same Target ICP (T_A).
At the End FDM tries to upload agregated Value to
Account ICP Amount
Asset_Cash T_A 0
Now the Asset_Cash does not allow Intercompany, and even that the Amount is Zero, the Validation Report is not sucessful, and if i disable it, im getting the error during the Export, as the System is telling me that the Target intersection is not valid.
Now, the solution to delete during the Event Script of the creation of the DAT the zero lines is not the one i would choose, as i need the intersection validation report.
So that means i need to skip them after the mapping and aggregation, but before the intersection validation is done.
How can i solve this?
P.S.
I cant neither do it during the import, as the finance user is not used to change any import scripts.
thanks alot to all of youCiao SH,
Thank you for the quick support.
Well, i wished it could be that simple. :)
In my Example, the "A" ICP is an correct ICP Member, and needs to be mapped to T_A, as it can be used aswell for ICP Accounts.
I cant neither use conditional mapping, as the combination of ICP Custom Dimension and so on would be to complicated.
At the end, im looking to change in a manner the system, so that he would skip the aggregated zero datastring before the intersection validation report is run.
cheers and thanks again -
How to use dimension property in REC statement?
Hi,
In dimension ACCOUNT I have created additional property ZACC where I store "alternative" account numbers.
After I load actuals from BW to "regular" accounts I want to copy values to "alternative" accounts.
Regular accounts are hierarchy nodes and alternative are base members.
ACCOUNT dim values looks like that:
ID ZACC
A1 A.1
A2 A.2
A.1
A.2
etc.
I wrote code below for that but when I validate I get message:
UJK_VALIDATION_EXCEPTION:Invalid dimension "ACCOUNT].[ZACC" in model ZXC
*XDIM_MEMBERSET TIME=2012.01
*XDIM_MEMBERSET ZKEYFIGURE=ZBALANCE
*SELECT(%ACC%,"[ID]",ACCOUNT,"[ZACC]<>' '")
*FOR %AC%=%ACC%
*WHEN ACCOUNT
*IS BAS(%AC%)
*REC(ACCOUNT=[ACCOUNT].[ZACC])
*ENDWHEN
*NEXT
Can you suggest me how to fix my code?
Thanks,
Andrzej
Message was edited by: A KsikHi Andzej,
I will try to explain in details. If we are talking about target member override in REC like:
*REC(EXPRESSION=%VALUE%,SOMEDIM=TARGETMEMBER,...)
TARGETMEMBER can be:
1. Some fixed single member
2. Variable like %VAR%, but this %VAR% will get the value from FOR/NEXT loop (simply duplicating lines of code).
Something like:
*WHEN SOMEDIM
*FOR %VAR%=MEM1,MEM2,MEM3 //lines between FOR and NEXT are duplicated
*IS %VAR%
*REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIX%VAR%SUFFIX)
*NEXT
*ENDWHEN
Where PREFIX%VAR%SUFFIX - is the target containing fixed prefix or suffix and contents of %VAR%
The result of code processing this code will be evaluated to:
*WHEN SOMEDIM
*IS MEM1
*REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIXMEM1SUFFIX)
*ENDWHEN
*WHEN SOMEDIM
*IS MEM2
*REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIXMEM2SUFFIX)
*ENDWHEN
*WHEN SOMEDIM
*IS MEM3
*REC(EXPRESSION=%VALUE%,SOMEDIM=PREFIXMEM3SUFFIX)
*ENDWHEN
This code is VERY slow and ineffective!
In you case the code can be:
*FOR %AC%=%ACC% //list of nodes
//or *XDIM_MEMBERSET ACCOUNT=BAS(%AC%)
*WHEN ACCOUNT
*IS BAS(%AC%) //or * if XDIM
*REC(EXPRESSION=%VALUE%,ACCOUNT="PREFIX%AC%")
*ENDWHEN
*NEXT
but you will need special coding for target to support PREFIX
3. Member property containing correct member ID, like
SOMEDIM.SOMEPROPERTY
In this case the member property of the current record of WHEN/ENDWHEN loop will be used as a target.
Hope it's clear!
B.R. Vadim -
UOMs on Item (height/width unit1) invalid
Hi Everybody
I'm trying to duplicate an inventory item by saving the xml for the existing item and retrieving it back into a new object. My code seems to be working, EXCEPT for this message: [OITM.SHght1Unit] , 'The connected value '0' was not found in table Length Units'.
The saved XML has a value of zero, though, and so does the oItem object that generated the XML Zero is invalid in the OWGT table, but that IS the value in a retrieved item object. When I replace the zero with a 1 (for testing, that's obviously not the solution), that message goes away, but I get a similar message about OrdrIntrvl (OCYC), which also won't allow zeros, even though that's what's in the existing object.
Here's the code:
tempXML = System.IO.Path.GetTempFileName()
'retrieve template item object's xml into string
itemObjectXML = zTmpltItm.GetAsXML
'replace the template item code with the new one
itemObjectXML = Replace(itemObjectXML, String.Format(ItemCodeXML, zTmpltItm.ItemCode), _
String.Format(ItemCodeXML, zNewCode))
'replace the template item name with the new one
itemObjectXML = Replace(itemObjectXML, String.Format(ItemNameXML, zTmpltItm.ItemName), _
String.Format(ItemNameXML, zNewName))
'Desperate attempt to fix Hght1Unit error
itemObjectXML = Replace(itemObjectXML, String.Format(HeightXML, 1), _
String.Format(HeightXML, 1))
itemObjectXML = Replace(itemObjectXML, String.Format(HeightXML, 2), _
String.Format(HeightXML, 2))
'save the template to disk
sw = New System.IO.StreamWriter(tempXML, False)
sw.WriteLine(itemObjectXML)
sw.Close()
'retrieve the new item's xml into a new item object for adding to the DB
'zTmpltItm.SaveXML(tempXML)
oNewItem = oCompany.GetBusinessObjectFromXML(tempXML, 0)
retval = oNewItem.Add
If retval <> 0 Then
continue = False
Any Ideas? - Thanks
Problem solved by adding this line of code at the top:
oCompany.XmlExportType=et_ExportImportMode
Message was edited by:
John ChadwickSee text for solution. B1 support provided it
-
Carrying forward accounts with value as '0' (zero) for consolidation
Hi,
I have a query regarding carrying forward accounts with value as '0' (zero) for consolidation. Actually when there is any account having zero value then on calculating contribution the value is carried only to Parent Currency Total dimension. After proportion level the value for that account becomes null. Can anyone suggest if there is a way where i can carry the value 'zero' till value dimension "Contribution Total".
Thanks in advanceHi,
couldn't you do a rule that copies from PCT to proportion level ( either this level or one above that lets you have rule input) -
Migration Tool - Upsert Access Profile - Invalid input value
Folks,
I am migrating AccessProfiles and I'm trying to Upsert the Admin access profiles as it's a new deployment and I'm moving code from Staging to Production. I have successfully Upserted all new AccessProfiles but get this error for the Admin AccessProfiles:
Invalid input value 'CR' for 'CustObj1 Cmpltd Activity'(SBL-ODS-50843)
I already have the correct privileges, I have full access to the entity via Role Settings and I can even manually set the Permission for Custom Object 1 - Completed Activity as Create/Read. Anyone come across this? Is this a bug?
Thanks
Oli @ InnoveerHi,
Any ideas?
Invalid dimension error usually appears if there is no member or invalid chars etc in a member of the dimension.
The note 1661799 says , assigning a member in a data access profile and deleting that member causes this error. I checked this case, too.
Maybe you are looking for
-
Adobe Photoshop Version: 2014.0.0 20140508.r.58 2014/05/08:23:59:59 x64 Operating System: Mac OS 10.9.4 System architecture: Intel CPU Family:6, Model:60, Stepping:3 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading Physical
-
Implement get_file_name for web forms: SOME HELP PLS
Hi ppl, Anyone used the code in note 74140.1 as regards to the implementation of get_file_name for webforms? Because I got stuck. Till now I managed to complie the FDialog and FDialogPJC java source and the classes are stored in the /oracle_home/form
-
How to map printers for domain users?
That's exactly how I've done it. I have a print server, and I deploy the printer via Group Policy (User config > preferences > control panel settings > printers).
-
Proxy wsdl generation error - VB keywords are used
Hi. I am using NCo ver 2.0.1. I am developing a VB.NET application. I generate a proxy from visual studio .NET 2003 designer. I do this by drag'n dropping function from the function list to the proxy.wsdl designer. Some functions accept parameters wh
-
How do we raise an event to trigger process chain in BI
Hi Guru's, I am having Oracle tables as one of my source systems, I developed the code using DBConnect. Now i need to run my Process chain when ever table get data from downstream systems. how do we raise an event to trigger the process chain in BI W