Essbase Calc to verify the existence of a Member?

I am writing a script of CACL to move data from a member in another.  For example: 10000_AA in 10000_BB.  The challenge is that not all AA accounts exist in the hierarchy of BB and vice versa.  So, I need to check the existence of 10000_AA before trying to move in 10000_BB.

An idea I had was to use @MATCH which returns the Member if it exists, or anything if it isn't.  But I need logic for an IF statement based on that and have not yet been able to get that.  I tried to create a CDF returns TRUE if the string is not null:

("LC")

IF (@CHECK_NULL_STRING_CDF (@Name (@match ("Account", "No_Account")))

...

)

The No_Account member is there to test and exists in outline.  The calc script editor will return the error: Error: 1200414 error optimizing the formula for [LK] (line 5): [1] argument cannot have size [0] function [@CHECK_NULL_STRING_CDF].  According to me, that the editor realizes that @MATCH could return a null value, and he dislikes the idea of pass NULL in the FDC.

Someone at - it a means to perform the verification in a calc script or to correct the mistake by passing the value in CDF?

I don't think that you need a CDF to accomplish, but it's a really interesting question!

Have you tried a combination of @COUNT and @MATCH (I do not know for sure that you can test the return of @COUNT, but I hope so...)?  @COUNT the number of values returned by @MATCH - if it's zero, etc.

Another alternative would be to circumvent the problem of 'existence test' total: create a @LIST of your @MATCH (first) and a "dummy" (second) member.  Then copy the data to @MEMBERAT 1st row in the list.  If @MATCH found a match, which is the Member that you wanted.  If there no data goes out to your dummy Member safe.

It is difficult to give specific suggestions really without understanding the larger context of the calc script, sizing, etc.

Tags: Business Intelligence

Similar Questions

  • Verify the existence of the file on the disk does not not (utl_file.fgetattr)

    Hello

    With the help of 11.2.0.3 and have the following code in an attempt to verify the existence of the file.

    Directory and file are certainly and user/schema was the allowance all the specfifed directory for them.

    Another thing to do?

    Wjen, run it says file does not exist - I tried uppare and tiny.

    declare

    v_file_exists BOOLEAN;

    v_file_length NUMBER;

    v_block_size NUMBER;

    Start

    -Create a process to load data to archive

    -A process necessary to run on a regular basis to query the datain.txt_finance_gl table. If an error is triggered which shows that the file is not found then it stops and expected to run next time.

    -If the data is returned, then the data can be queried and loaded into the table in the archive with the relevant number of sequence and datestamp.

    -The txt_load_control will be used to control and verify the transfer.

    -The next sequence in the txt_finance_gl_seq number is obtained as well as current datetime object and create a new entry in the control panel (edc_type will be "GL") and give a working state.

    -At the end of the load, the flat file will be renamed (pre-fixing on the old name, sequence number) and moved to the processed Finance folder.

    -The control panel can then be updated to show the run as it is complete.

    -First check to see if the file already exists on the disk in the box provided.

    UTL_FILE.fgetattr ('big_tab_data', 'testfile', v_file_exists, v_file_length, v_block_size);

    IF v_file_exists THEN

    dbms_output.put_line ("'File Exists");

    ON THE OTHER

    dbms_output.put_line ('file does not exist');

    END IF;

    end;

    user5716448 wrote:

    Location was just prove that the oracle schema user can see the directory and database files.

    create or replace directory BIP_TAB_DATA

    as ' / oracle/finance/export ";

    give all the BIP_TAB_DATA of archiving directory;

    declare

    v_file_exists BOOLEAN;

    v_file_length NUMBER;

    v_block_size NUMBER;

    Start

    UTL_FILE.fgetattr ("BIG_TAB_DATA", "samplefile", v_file_exists, v_file_length, v_block_size);

    IF v_file_exists THEN

    dbms_output.put_line ("'File Exists");

    ON THE OTHER

    dbms_output.put_line ('file does not exist');

    END IF;

    end;

    [BEEP] / finance/export-oracle $ sqlplus archive / pwd @por.sql

    SQL * more: Production release 11.2.0.3.0 the sea Mar 4 16:06:12 2015

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    18.

    PL/SQL procedure successfully completed.

    SQL > set serveroutput on

    SQL > /.

    File does not exist

    PL/SQL procedure successfully completed.

    SQL >

    [BEEP] / oracle/export/finance $ ls-l

    total 1192

    -rw-rw-rw-1 orabip s/n 152953 16 Feb 14:42 weekly sales (SAP) .txt

    -rw - r - r - 1 orabip s/n 49 Mar 04 13:44 afiedt.buf

    -rw-rw-rw-1 orabip s/n 172280 17 February 14:38 new weekly sales (SAP) .txt

    -rw - r - r - 1 orabip s/n 374 Mar 04 16:05 por

    -rw - r - r - 1 orabip s/n 374 Mar 04 16:07 por.sql

    -rw - r - r - 1 orabip s/n 0 Mar 04 16:04 samplefile

    -rw-rw-rw-1 orabip s/n 172280 17 February 14:38 sap_weekly_gl_data.txt

    -rw - r - r - 1 s/n 55 16 Feb 09:52 testfile.bad orabip

    -rw - r - r - 1 orabip s/n 13535 16 Feb 22:00 testfile.log

    -rw-rw-rw-1 orabip s/n 42-16 Feb 09:53 testfile.txt

    -rw-rw-rw-1 orabip s/n 62908 12 February 16:45 test.txt weekly sales

    [BEEP] / oracle/export/finance $

    These two are not even!

  • Verify the existence of the file

    What is the best way to verify that a file exists?

    I noticed there is no verification for this, as most people do?

    It is best to just run "if not exists" and zero exit with a code no?

    Example:

    If not exist them C:\windows\regedit.exe output/b 1

    Yes, there is no built-in function so it is best to use scripts of some form, be VBS and use the activity execution of windows script or use powershell and use powershell execute activity.

    I do this for a lot of things that are not already coded to the CPO and works very well.

  • Verify the Existence of the file in IdocScript

    Hello

    I like to check to determine whether a file exists in the content server - is it possible to accomplish with IdocScript? JavaScript calls are expensive, especially on mobile, and it would be much easier to do on the server side. I have the URL of the element and its content ID at my disposal.

    Thank you!

    Josh

    You can check this by calling the DOC_INFO_BY_NAME function using the script executeService("dDocName") idoc method. You can check StatusMessage or StautsCode to check if the service could not or not. If statuscode is no no service has failed.

    Thank you

    Vikram

  • Verify the existence of the form field

    Hello

    How to test, using JavaScript, if there is a specific field on a form or not?  I tried the following, but not enough work:

    If (xfa.layout.absPage (pg1.sfCap.sfCapLeft.Table2.Row2) == - 1).

    {

    }

    Note: For the form where I tried this, the Row2 is not at all

    Thank you!

    The function resolveNode (see http://help.adobe.com/en_US/livecycle/9.0/designerHelp/001395.html) can be used to retrieve the value of a specific node in a table row. You'll still need to determine the number of lines and iterate over instances of row of table in conjunction with resolveNode().

    Steve

  • REST API PHP: Check the existence of single room

    Y at - there a way that miss me in the api, or another way to check the existence of a single piece before calling

    AFCSAccount createRoom?   I see that there is a getRoomInfo method, but that seems to apply only to the rooms which are active (well at least I get nothing for inactive rooms, I could hurt).   I see also there is a listRooms method but when I have 10,000 rooms that will be a call quite unprofitable.

    So, I'm looking for a way to check if a room is available before calling createRoom.   Any advice would be appreciated.

    Thank you

    Eric

    Currently there is no way to verify the existence of a room (in fact, it is a way, but is not exposed).

    But considering that no matter what you do it will cost an HTTP request anyway, just always create the room and catch the error (the HTTP request returns a 403 error)

  • Call the Essbase Calc of custom Script FDMEE script

    Hi Experts,

    In my reuirement, I must run Essbase calc script to export the perticular accounts data and then import these data into FDMEE to load in another planning application.

    I know we can run the Application Esbase calc script fromTarget page and after load. but in my case, executing the script should happen prior to importation.

    Aanybody may suggest an example if I can call the script to calc Essbase to a custom event BefImport script or FDMEE script? an example of the syntax would be useful

    Thank you!

    Hello

    are what version of FDMEE you?

    You have an example document to support FDMEE sample scripts (Doc ID 1613836.1)

    You can have a MAXL command in your batch file to perform the extract

    Example 5

    An example script to calc to perform an Essbase excerpt and then load the file extracted with FDMEE.

    1. Create a batch (.bat) file that performs extract Essbase.
    2. Call the scriptimport BefImport event operating system batch file
      import of subprocesses
      Import shutil
      OS.chdir ("D:\temp\\BatchFiles")
      command = ' D:\temp\BatchFiles\helloworld.bat > helloworld.out '
      p = subprocess. Popen (Command)
      RETCODE = p.wait)
    3. Load using FDMEE HelloWorld.out

    The Jython script can be created in the BefImport Script.

    Then you can have a rule of data loading with a file in it name (Ex: Essbase_Extract_XXXX) where XXXX is that five-year period.

    Your jython script should create this file, so in the case of import, the data is imported

    Keep in mind that it is an output of feature 11.1.2.4 box so if you are in 11.1.2.3.x I wouldn't put a lot of effort in a complex solution

    I hope that this puts you on the right track

  • Essbase calc script: try to use @RELATIVE in a formula of the cross-dimensonal

    Hello. I am trying to use a @RELATIVE function in a cross within a FIX/ENDFIX and while checking the syntax allows me to do this, I get the error 'argument double' scalar of Essbase when I run the Calc.

    Here is the code block:

    DIFFICULTY ("FY13", "Budget", "Input", "AF: ~ NA ~","U: ~ NA ~", @RELATIVE("DEPT:ABC",0), "S:535200", "Jan": "Dec")


    VAR Var1;

    ("PR:ER1"

    Var1 = "ST:SE2"->"Budget"->"product"->"sub-account"->"P: ~ NA ~"-> "DEPT:12345" / 100; "."

    )


    ("PR:ER1"
    "Account: NA" = "account: NA '->"S:535200' + @RELATIVE("NET_INCOME",0)->"S:510020" * Var1;

    )

    ENDFIX




    The line where the error message I get is:
    "Account: NA" = "account: NA '->"S:535200' + @RELATIVE("NET_INCOME",0)->"S:510020" * Var1;




    What I basically want to do, is to say the Member account: NA S:535200 must be the sum of all accounts of level 0 net_income for S:510020, multiplied by the value stored in a variable.


    Thank you


    Tom

    Published by: user9513294 on November 15, 2012 11:28

    As you have discovered, you can't pass a list of members to a definition of the cross-Sun. One Member, that's all it takes.

    What I suspect you want to do, it is something like this:
    "Account: NA" = "account: NA"-> "S:535200" + @SUMRANGE ("S:510020", @RELATIVE ("NET INCOME", 0)) * Var1;

    However, I bet that the net is already calculated and this might work:
    "Account: NA" = "account: NA '-> 'S:535200' + 'NET PROFIT'-> 'S:510020' * Var1;

    And I bet that this reference to 535200 is not necessary either as you in a pickle, then how about this:
    "Account: NA" = "account: NA ' + 'NET INCOME'-> 'S:510020' * Var1;

    BTW, that ":" in the middle of your member names pretty much blew my mind - colon is used, in general, to designate ranges, as 'Jan': 'Dec', which is also valid as Jan: Dec. I'm surprised that there is a legal character.

    In addition, the precedence of the operators really works you like?

    Kind regards

    Cameron Lackpour

  • restrict the planning Admin see all Essbase calc scripts

    Hi - I have a few ppl who are administrators on planning, and they see all my calc scripts in Essbase. Is it possible to block to see? I have these calc scripts to run things they did not need to run.

    I use planning 3.5.1 Essbase 6.5


    Thank you
    Cindy

    Hi Cindy,.

    I guess that calc scripts you want to block from are planning to the Admin in the applications they are directors of the correct?

    The only way I can think to do is to put them in another directory on the server or on a share, you have access to and use them for Esscmd scripts run in a batch function.
    for example
    RUNCALC 3 C:\SERVER_DIR\mycalcs\calc

    Assuming the directory were on your essbase server and you plan this on your essbase server.

    This assumes that your Admins planning have not access to your Essbase server. Of course, if it were UNIX path to the script would be different.

    You may also only have the scripts on your local computer.

    Kind regards

    John A. Booth
    http://www.metavero.com

  • During the validation of the rules in the Calc Manager, facing the common error below

    Hi gurus,



    2011-12-20 20:14:14, 808 [ACTIVE] ExecuteThread FATAL: '0' for the queue: com.hyperion.plan 'weblogic.kernel.Default (self-adjusting).
    ning.calcmgr.HspCalcMgr - cannot run validateRule(). Failed to retrieve defined custom functions or macros from of the
    Essbase server. Ensure that Hyperion Essbase is running and the application.

    Yes calc Manager will be more than likely on the application server.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Forms and Essbase Calc Scripts

    I have several (not the rules of trade) calc scripts created in Essbase. When I create a form of some of these calc scripts will have the "members on data use" option grayed out while others are not. I can't see a difference in calc scripts.

    What I'm missing or where can I go to learn more, most of the documentation I find refer to the rules of the company and do not apply to calc scripts.

    Thank you.

    Note: When you try to publish the services shared through Essbase calc scripts I succeed with most and some, I get:

    com.essbase.eas.admin.defs.InteropCommands.PublishModel Failed: com.hyperion.interop.lib.OperationFailedException 9000: PUT failed for/Files/projects / [bbassiushy01] [FS] [hand]. Essbase/published/calculation Scripts/calc235.csc

    Edited by: J on July 11, 2011 09:32

    You should not be able to use members of the option form with calc scripts, it's for use with business rules where you can pass members of the form variables.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Essbase calc dense dimension creates not values

    I have a weird scenario

    On the accounts a dense dimension.

    If I type at the entrances to the calc calc works. The calc does not work if I load the data.

    I did a bunch of tests, for example if I load the data and run the calc it does not work. If I come and crush the same load number calc works. Again, this is not a dimension of sparse, I am writing to (so it isn't a problem of block to create).

    It is even on simple rules of BR as Acc1 * Acc2 = Acc3. I type in Acc1 it work. I charge Acc1 it does not work.

    Thoughts?

    Hmm, this sounds exactly like a problem of creation of block. But it is impossible, that all the members in the game are in the dimension of accounts. Once you have a cell in charge block, this block is created.

    What it looks like is a "smart" calc question That is, Essbase blocks clean and dirty and then only calcs those that are dirty. Is it possible that you use smart calc as a database property or that there is code that is set the status of the blocks (SET CLEARUPDATESTATUS AFTER or ONLY) to clean and you know it?

    Try this:
    UPDATECALC OFF SET;
    Acct3 = Acct1 * Acct2;

    Kind regards

    Cameron Lackpour

  • Essbase Calc Script using Exclude

    I use the 'EXCLUDE' command in a script (see below) essbase calc
    Fix (@relative("Entity",0), EXCLUDE (@MEMBER ("Canada") ENDEXCLUDE)),
    @RELATIVE ("Type", 0), @RELATIVE("Net Income",0), @RELATIVE("BALANCE SHEET",0),.
    @RELATIVE ("CASH FLOW STATEMENT", 0), & CURPER)
    CLEARDATA "GL";
    END FIX;

    I keep getting the following error:
    WARNING: parsing formula [statement of DIFFICULTY] (line 14) 1200315 error: invalid object type
    No idea what's wrong with my script? 14 of my script is the line starting with the declaration of FIX. Any advice would be greatly appreciated.

    EXCLUDE is a simillar to FIX calc command and can be used within FIX ().
    In your case, you can use function @remove as shown below:

    Fix (@Remove (@relative("Entity",0), @list ("Canada")), @RELATIVE ("fleet Type", 0), @RELATIVE("Net Income",0),)
    @RELATIVE ("FINANCIAL REPORT", 0), @RELATIVE ("CASH FLOW STATEMENT", 0), & CURPER)
    CLEARDATA "GL";
    END FIX;

  • Essbase user to calculate the business rule Planning

    Hi all

    Where can I change the user Essbase calc planning HBRs in 9.3.1?

    When users run HBRs in planning, the same user Essbase is always used. I thought that planning used the user specified in the data source configuration, but it doesn't seem to be the case.

    Thank you
    SEB

    Hi Seb,

    When a user runs a business rule in planning this specific user will contact HBR and the user essbase defined in the application data source will communicate with essbase.
    It should also propose that in hbrlaunch.log the user HBR and essbase user.

    Just to be sure I did a quick test and changed the essbase user in the data source, restarted the planning. logged on as a user and ran a business rule, the newspaper showed the essbase user, that I've changed in the data source.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • iPod Touch 5th generation "cannot verify the identity of the server.

    My school requires a log-in for which you have to go to in order to access the wifi. So first you log through settings, then you go to safari and search for a random page, and then the window should appear. However whenever I try to do, I still get the same message:

    "Safari cannot verify the identity of the server.

    Or something like that. Anywho, I tried to change my dates and times. I also tried to reset my network settings. My iPod is able to connect to anything but the school wifi, but all my friends who have iPhones and androids are able to connect and it begins to get really frustating. Please help me because I don't want to go to another 3 years without wifi at school.

    -Reset the device iOS. Nothing will be lost

    Device iOS Reset: Hold down the On / Off button and the Home button at the same time for to

    ten seconds, until the Apple logo appears.

    -Reset network settings

    Go to settings > general > Reset and tap reset network settings. You will have to join all the wifi networks

    All your preferences and settings are reset. Information (such as your contacts and calendars) and media (such as songs and videos) are not affected.

    -Restore from backup. See:

    iOS: how to save

    https://support.Apple.com/en-us/HT204184

    -Restore factory settings/new iOS device.

Maybe you are looking for

  • Hotmail account and face book account hacker

    My facebook account has only a single mail electronic id and my facebook account and my email all have two pirate summer I can't access my fb account and my hotmail account, I'm afraid the security threat

  • Limited or no connectivity

    After laptop cleaned and only Windows XP has been reloaded, Wi - Fi internet connections have little or no connection.  Cannot access any Web site.  Network configurations seem to be correct.

  • J9M24UA #ABA: updated memory HP 15 laptop computer

    Hey all,. I just got a F024wm 15 HP smart touch screen laptop. Model #J9M24UA #ABA, 8.1 for Windows 64-bit.    I want to know the maximum Ram I can use at the top of this tower. It has a 4 GB Samsung 1.333 Mhz chip in there now. It has two bays, but

  • Alienware Aurora R4 Windows 10 help

    Then, I woke up today to realize that Windows 10 mysteriously installed on my R4 Aurora without my consent, so whatever. In any case, so far, has been correct, but I have 1 question that I can't just understand how to fix after several hours of troub

  • Flag assigned in the MySQL database

    Hi all In the FMS database, how can we check if the server is running. This flag is attributed in the database which reflects the active State in console FMS?