Error in RunLogicAgainstSelection:Subscript out of range

Dear experts,
I'm writing a cross application *RUNALLOCATION from application InvCost.
While validating the logic I ot this error saying
"error in RunLogicAgainstSelection: Subscript out of range" and here's the code
*RUNALLOCATION
*FACTOR=1/TOTAL
*APP               WHAT=FINANCE;          WHERE=INVCOST;          TOTAL=<<<
*DIM TIME          WHAT=%TIME_SET%;     WHERE=<<<;          TOTAL=<<<
*DIM DATASRC          WHAT=TEMP;          WHERE=INPUT;          TOTAL=INPUT
*DIM LOB          WHAT=00000;          WHERE=;               TOTAL=
*DIM COSTCENTER          WHAT=122;          WHERE=;               TOTAL=
*DIM MACCT          WHAT=5601;          WHERE=;               TOTAL=
*DIM FACTORY          WHAT=0000F;          WHERE=[L_f]="7";     TOTAL=EACH([L_f]="7")
*DIM INTFAC          WHAT=;               WHERE=NONINTFAC;     TOTAL=EACH(BASE(ALLINTFAC))
*DIM INVACCT          WHAT=;               WHERE=FUC_L;          TOTAL=FFACTOR
*DIM PARNO          WHAT=;               WHERE=NONPARTNO;     TOTAL=EACH([INVTYPE]="L")
*DIM SACCT          WHAT=00;          WHERE=;               TOTAL=
*DIM CATEGORY          WHAT=ACTUAL;          WHERE=<<<;          TOTAL=<<<
*DIM RPTCURRENCY     WHAT=LC;          WHERE=<<<;          TOTAL=<<<
*ENDALLOCATION
From WHAT there's only one value and devid by TOTAL then put into all base members of WHERE.
Factory part is a little tricky cause I'm not sure if it'll give me only base members for the given condition.
Any helpful comments are welcome. Thanks a million...
,Jim Hsu

Hi Jim,
I think you need to use the "USING" clause, as in this simple example. This is where you define the allocation driver.
*RUN_ALLOCATION
*FACTOR USING/TOTAL
*DIM Product What=NoProduct; Where=[ProductLevel]="5"; USING=<<<; TOTAL=<<<
*DIM Account What=MarketingExpense; Where=<<<; Using=Revenue; Total=<<<
*ENDALLOCATION

Similar Messages

  • FOR/NEXT loop produces Error in ProcessSQL: Subscript out of range

    Hi all,
    The 2nd FOR/NEXT loop in the following code produces Subscript ouf of Range error:
    *LOOKUP RATEAPP
    *DIM MODEL:RATEENTITYDIM= DRIVEDIM.DRIVER_ENTITY
    *DIM MODEL:RATEACCOUNTDIM= DRIVEDIM.DRIVER
    *DIM MODEL:INPUTCURRENCYDIM = "EUR"
    *ENDLOOKUP
    // Select lookup and normal members by group
    *SELECT(%DRIVERSA%, ID, DRIVEDIM, "[GROUP] = 'A' AND [DRIVER] <> ''")
    *SELECT(%MANUALSA%,ID,DRIVEDIM, "[GROUP] = 'A' AND [SOURCE] = 'MAN'")
    *XDIM_MEMBERSET DRIVEDIM= %MANUALSA%, "U_TEMP"
    *WHEN ACCOUNTDIM.ACCTYPE
    *IS *
         *REC(EXPRESSION=1, NOADD, DRIVEDIM="U_TEMP")
    *ENDWHEN
    *GO
    // this is ok
    *FOR %MANSET% = %MANUALSA%
         *WHEN DRIVEDIM
         *IS %MANSET%
         *WHEN %VALUE%
         *IS <> 0
                   *REC(FACTOR=GET(DRIVEDIM="AD.TEMP"),DRIVEDIM="AD.TEMP")
         *ENDWHEN
         *ENDWHEN
    *GO
    *NEXT
    *XDIM_MEMBERSET DRIVEDIM= %DRIVERSA%, "U_TEMP"
    // this is not OK
    *FOR %DRIVSET% = %DRIVERSA%
         *WHEN DRIVEDIM
         *IS %DRIVSET%
              *WHEN %VALUE%
              *IS <> 0
                   *REC(FACTOR= GET(DRIVEDIM="U_TEMP") * LOOKUP(MODEL),DRIVEDIM="U_TEMP") //  * LOOKUP(MODEL)
              *ENDWHEN
         *ENDWHEN
    *GO
    *NEXT
    If I remove the FOR/NEXT loop, this runs fine. The error occurs everywhere - in logic debugger, in DB, in ExecuteBaseLogic if included in Default logic. The REC statement inside the loop can be anything, even as simple REC(FACTOR=1,DRIVEDIM="U_TEMP"), so the problem is in the loop, not anything else. It validates nicely and the compiled logic looks just as expected.
    This error could occur sometimes if the membersets are too large. However, in this example, the number of members is rather limited. In the debugger is is possible to limit the data region to single specific intersection and the DRIVEDIM membersets combined is exacly 15.
    Could it be possible that the error is caused by member ID-s like AD.1.AVGWAGEGROWTH (length=18)? Is there anything else that can cause  trouble?
    Any ideas appreciated.
    Thanks
    Madis
    Edited by: Madis Udam on Mar 24, 2011 11:06 AM

    I don't think you should have"." dot's in you ID's.
    think about it, in your code you have ACCOUNTDIM.ACCTYPE, which represents the account type of the dimension.
    If you have an id "AD.1.AVGWAGEGROWTH"; wouldn't it think that you are trying the get a value of some member?
    That's just a guess, we established that we wouldn't use any special characters on our id's
    It's working so far
    Try changing the line
    *IS %DRIVSET%
    to
    *IS "%DRIVSET%"
    Edited by: Leandro Cardoso Feliciano on Mar 28, 2011 10:45 PM

  • Vector subscript out of range

    I read a file into a 2 dimensional vector named matrix  and I want  to check the frequency of the item inside the matrix, but when debugging it gives me the error message: vector subscript out of range. Can someone help? 
    #include <assert.h>
    #include <string>
    #include <map>
    #include <sstream>
    #include <vector>
    #include <fstream>
    #include <iostream>
    #include "main_loadDB.h"
    using namespace std; 
    typedef map<string, int> attri_value;
    void buildFirstItemset(matrix_file m){
    matrix_file temp=m;
    int lmc=temp[0].size();
    int lmr=temp.size();
    int msize=lmc*lmr;
    attri_value attri_map;
    for (int i=0;i<lmr;i++){
    cout<<"i:"<<i<<" ";
    for(int j=0;j<lmc;j++){
    string tm=temp[i][j];
    ++attri_map[tm];
    // here is the error
    cout<<endl;
    #endif
    Any help appreciated!

    Hi DBM_Q,
    Since this issue is related to the VC++, to help you resolve this issue as soon as possible, I suggest you post this issue to the VC++ Forum for dedicated support:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=vcgeneral
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • BIP Desktop Install Problem:  Run-time error '9' Subscript out of range

    Hi All,
    I am trying to get my BIP Desktop to work. I have notice previous threads regarding the internet explorer security patches affecting BIP Desktop and my problem is similar. Here is my problem:
    1. I installed BIP Desktop 5.7.146.
    2. I start Template Builder for Word Language by selecting Start>Programs>Oracle BI Publisher Desktop.
    3. A dialog box prompts for UI Language and I select English
    In the midst of the Template Builder for Word Language attempting to initiate/change the user interface language to English, it throws the following error:
    Run-time error '9' Subscript out of range
    Here are some details regarding my PC:
    XP sp2, MSXML6, jre1.5.0_15
    Also, my CPU performance hits it maximum while I am doing this
    Any thoughts on how to correct this?
    Thanks,
    Patrick

    Patrick,
    Were you able to find a solution to this problem?
    One of my colleagues is having the same issue.
    Regards,
    Srini

  • Submit:Validating members::Subscript Out of Range  Error

    Hi,
       When I enter data in an Input Schedule and click "Send and Refresh Schedule" button, I receive an error message.
    Submitted Records : 4
    Accepted Records : 0
    Rejected Records : 0
    Submit:Validating members::Subscript out of Range Submit:Validating members::Subscript out of Range Submit:Validating members::Subscript out of Range Submit:Validating members::Subscript out of Range
    "Then the list of records not sent."
    No records are sent to the database.
    Why does this error occur?

    Hi Karthik, Just wondering if there are too many digits(i mean too many decimals in the numbers) in the sheet.
    regards
    shyam

  • Error merging WHAT with WHERE:Subscript out of range

    I'm trying to run allocation script to post data from one App to another but get the error:
    error merging WHAT with WHERE:Subscript out of range.
    *RUNALLOCATION
    *FACTOR 1
    *DIM APP        WHAT=PNL;  WHERE=OPEX;               
    *DIM CATEGORY      WHAT=BUDGET;          WHERE=<<<;     
    *DIM ACCOUNT       WHAT=80855.0000.ECOMM;                     
    *DIM ACCT_OPEX                         WHERE=80855.0000;    
    *DIM ENTITY        WHAT=100.00001;                                  
    *DIM COSTCTR                          WHERE=00001;                               
    *DIM BRAND                            WHERE=100; 
    *DIM CHANNEL                          WHERE=ECOM; 
    *ENDALLOCATION

    Hi Agnes,
    Please try the below:
    *RUNALLOCATION
    *FACTOR 1
       *DIM APP WHAT=PNL; WHERE=OPEX;
       *DIM CATEGORY WHAT=BUDGET; WHERE=<<<;
       *DIM ACCOUNT WHAT=80855.0000.ECOMM; WHERE=<<<;
       *DIM ACCT_OPEX WHAT=>>>; WHERE=80855.0000;
       *DIM ENTITY WHAT=100.00001; WHERE=<<<;
       *DIM COSTCTR WHAT=>>>; WHERE=00001;
       *DIM BRAND WHAT=>>>; WHERE=100;
       *DIM CHANNEL WHAT=>>>; WHERE=ECOM;
    *ENDALLOCATION
    The idea is to have have both the keywords in the statement - WHAT and WHERE
    Hope this helps.

  • Run-time error '9': subscript out of range when starting Multisim/Utilboard v10

    Hi all!
    After having installed and registred NI Circuit Design Suite 10 (Single user licenses) on
    XP-SP2 and Windows2000-SP4 computer, I get the following error message when
    I try to start either Multisim10 or Utilboard10 (Full edition versions)
    "Run-time error '9':
    Subscript out of range
    The problem appears both with standard users as well as with the Administrator user.
    As I click on "OK", the program proceeds as usual and seems (?) to work fine.
    The problem does not appear if I do not register the copy of NI Circuit Design Suite 10
    and I run it as evaluation instead.
    Paolo Celani
    Attachments:
    error.jpg ‏29 KB

    Hi !
    We have german version of Window XP and 2000 (the folder where Multisim was installed is C:\Programme\ etc etc).
    The very same dialog box appears written in german (see attachment) in one of our computers, maybe because
    German was chosen as Standard language in Multisim during settings (I do not quite remember but I can find out).
    Thanks for helping me !
    Best regards
    Paolo Celani
    Attachments:
    error_de.JPG ‏33 KB

  • Run-time error 9   subscript out of range in WAD open

    Hi All,
    When i open the WAD, I am getting the following error msg
    Run-time error 9
    Subscript out of range
    and it is killing the logon and screen.
    It is not happening to all the WAD, only for few of them,
    please give me the tips.
    Thanks
    Billy

    Thanks for the answer.
    I resolved it by replacing librfc.dll. There is a sap note to explain this issue.
    the reason for the problem is..
    If the web template has a bigger one then this problem is occurs.
    Thanks
    Billy

  • Run tme Error 9: Subscript out of range

    Hi Folks,
    When ever i am trying to execute the report from favourites folder in BW 3.5 version it's giving the runtime error 9: Subscript out of range error.when i click on debug option it enters into Visual basic code.
    Please  help to me how to over come this situation.
    Thanks for your help
    Regards,
    Nag

    Hello Nag,
    We created a Wiki with all informations to troubleshoot this issue.
    Please, check the link below:
    > http://wiki.sdn.sap.com/wiki/display/BI/RRMX
    Also, I strongly recommend you to update your front end tools to latest patch available:
    http://service.sap.com/swdc
    > Support Packages and Patches
    > Browse our Download Catalog
      > SAP Frontend Components
    > SAP GUI FOR WINDOWS
    > SAP GUI FOR WINDOWS 7.20 CORE
    > Win32
    _ > * gui720_10_2-10007878.exe
       |  > BI ADDON FOR SAP GUI
       |  > BI 7.0 ADDON FOR SAP GUI 7.20
       |_ > * bi720sp06_600-20006596.exe
       |
       |  > BI ADDON FOR SAP GUI
       |  > BW 3.5 ADDON FOR SAP GUI 7.20
       |  > Win32
       |_ > * bw350gui720_8-20006857.exe
    Best Regards,
    Edward John
    SDN Moderator

  • ActiveWorkbook.Connections(Connection).OLEDBConnection - Subscript out of range error

    With ActiveWorkbook.Connections(Connection).OLEDBConnection  ' This statement is giving me a script out of range error                                      
                                                                        ' when used inside
    the function shown below.
    Sub getData(qArray() As String, Connection As String, ActSheet As String)
    'Updates the data from the Database. qArray is the SQL query in an array, connection defines which connection to use and ActSheet defines in which sheet to place the data
    Sheets(ActSheet).Select
        Range("A1").Select
            With ActiveWorkbook.Connections(Connection).OLEDBConnection
            .CommandText = qArray
            .BackgroundQuery = False ' Hvis true opdateres ikke før script er kørt færdig
            .CommandType = xlCmdSql
            .Connection = "OLEDB;Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=RDWEB;Data Source=dk0149sql.niladv.org;"
            .RefreshOnFileOpen = False
            .SavePassword = False
            .SourceConnectionFile = ""
            .SourceDataFile = ""
            .ServerCredentialsMethod = xlCredentialsMethodIntegrated
            .AlwaysUseConnectionFile = False
        End With
        ActiveWorkbook.Connections(Connection).Refresh
    End Sub
    I am getting a subscript out of range when I use the above statement inside the  getData function shown below.
    The data is getting into the qArray as seen the Locals Window after it errors
    How do I eliminate this error? 

    It seems that Connection has some bad value. Have you investigated what that may be?
    The code looks puzzling to me - it never seems to be running the query. Then again, this is a forum for SQL Server, and not for programming Excel. And it's probably in a forum of the latter type should have posted your question.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Subscript out of range

    hi
    thisis the script i am using to allocate gross invoice percentage for month and total them
    to show in another row
    *SELECT (%ENTITY%, "[ID]", "ENTITY", "[ID]='%ENTITY_SET%'")
    *XDIM_MEMBERSET CATEGORY=ACT
    *XDIM_MEMBERSET RPTCURRENCY1=LC
    *XDIM_MEMBERSET DATASRC=TOTAL
    //*XDIM_MEMBERSET TIME=2010.INP
    *RUNALLOCATION
    *NAME=GISALESALLOCPLN%
    *FACTOR=USING/TOTAL
    *DIM APP WHAT=PLANNING;WHERE=PLANNING;USING=PLANNING;TOTAL=PLANNING
    *DIM ACCOUNTP WHAT=%GISALES%;WHERE=%GISALES%;USING=%GISALES%;TOTAL=%GISALES%
    *DIM ENTITY WHAT=%ENTITY%;WHERE=%ENTITY%;USING=%ENTITY%;TOTAL=%ENTITY%
    *DIM TIME WHAT=2010.INP;WHERE=2010.INP;USING=2010.INP;TOTAL=2010.INP
    *DIM CATEGORY WHAT=ACT;WHERE=ACT;USING=ACT;TOTAL=ACT
    *DIM RPTCURRENCY1 WHAT=LC;WHERE=LC;USING=LC;TOTAL=LC
    *ENDALLOCATION
    and it error outs saying
    "error in range selection: subscription out of range"
    while i debug
    please advice
    thanks

    If you are selecting multiple entities, please use
    *SELECT (%ENTITY%, "ID", "ENTITY", "ID in ('%ENTITY_SET%')")
    instead of the first line of the script.
    If you want to specify the application, please use
    *APP  WHAT=PLANNING;WHERE=PLANNING;USING=PLANNING;TOTAL=PLANNING
    The syntax you have used wont work.
    *APP is an optional parameter. Please use it only if its necessary.
    Karthik

  • Failed to Finish Transition(Subscript out of Range)

    We are receiving this error message during playback intermittently: Failed to Finish Transition(Subscript out of Range).
    Does anyone what causes this and how to resolve it?

    Can you give more details about what the script is doing when you get this error? Looks like an application generated message, the script is not inputting correct parameter values required on that page, maybe.
    Message was edited by: mpalivela

  • Validating members:Subscript out of range

    Hi there.
    I have a logic that runs the validations but when i run it it says:
    "ExecuteBaseLogic::
    1 errors writing data
    Validating members:Subscript out of range"
    I looked at the logs and it is not really helpfull
    Could someone guide me where to look for the problem please?
    Thanks
    Nic

    Here is the logic i was talking about:
    *Include System_Constants.lgl
    //Send intercompany totals to Finance
    *Xdim_memberset RptCurrency=LC
    *Destination_App=Finance
    *Skip_dim= Intco
    *Rename_Dim ICAccount=Account
    *Add_Dim AcctDetail=No_F
    //*Add_Dim DataSrc=input
    *When TIME
    *IS %TIME_SET%
    *WHEN ICaccount.ACCTYPE
    *IS "LEQ"
    *REC(Factor=-1)
    *ENDWHEN
    *WHEN ICaccount.ACCTYPE
    *IS "AST"
    *REC(Factor=1)
    *ENDWHEN
    *ENDWHEN
    *Commit
    As you see it it pretty simple, but i am missing smtg.
    When I de-comment the "DataSrc=input" line, then i dont get any errors: neither at the validation nor when i send data.
    But the totals are not sent. Just the last updated amount in my interco is sent to finance...
    Nic

  • BAT Import "Subscript out of range"

    I'm attempting to import phones and users with the BAT version 5.0(2) and CCM 4.0. The file is validated fine, but when I do the insert, the browser returns the error dialog:
    Error Number: -2146828279
    Description: Subscript out of range
    The users then appear to be imported, but not the devices. Looking up the error on google indicates that it's a VBA scripting problem. I tried firefox, but it doesn't seem to work at all.
    Thanks for any suggestions,
    Mark

    The core issue for me was that ANY data the Callmanager didn't like would result in that error - two problems I had were not putting leading zeros on the number of lines (it requires 2 digits), and trying to use commas in the description (even enclosed in quotes which the documentation says will work, it doesn't). I did have to load the new device pack for 7911 support when I did this install, but I only had 4 7911's so I did them manually, and no 7912's.
    Good Luck,
    Mark

  • Receiving Error "A Number Is Out of Range" in Acrobat 8.1.2 and 7.0

    I create mapbooks for the county I work at using ESRI's ArcMap ArcEditor. Once the book is done I convert it to PDF so that officers, fire fighters, etc. can open it on their laptops. Recently I started receiving the error "A Number is Out of Range" when I finish combining the PDF files into a binder. The error persists anytime I change pages and I have to click OK several times before it goes away. This becomes a problem for emergency management when their trying to search a road, plus it is also very annoying. Does anyone know how to get around this? It didn't use to do this. I thought maybe it was the fonts I was using, so I changed most of them to Arial and Times New Roman, yet it still persists, but seems slightly better. I cannot find anything on Adobes website about A Number is Out of Range. Also, I am using Acrobat Professional 8.1.2 and have also tried Professional 7.0. I'm running Windows XP. I have also tried reverting back to old versions of ArcMap and also the mapbook software MapLogic, but nothing helps. Any help would greatly be appreciated.

    I'm getting this error also, and I don't think it's a font issue. Here's my situation.
    I created a 144-page manual in Adobe FrameMaker 8.0 using the same template and fonts that I have used in several other large manuals. I saved the manual as a PDF using Acrobat 3D 8.0, and is get the mind-numbingly vague error "A number is out of range." I didn't get this error in previous versions of this manual, nor do I get this error with the other manuals on which I am currently working. I had inserted some EPS technical drawings, so I opened all of them in Illustrator CS3 and Created Outlines for any text that appeared in the illustrations.
    After two days of replacing all of the fonts, optomizing PDFs, and distilling, distilling, and distilling again, I was not able to get rid of this message using Acrobat. I finally pulled out my MacBook Pro, opened the PDF manual using Preview, saved the PDF under a different name (no need to apply a Quartz filter), and (abracadabra!) the vague error message is gone!
    Fonts may be one cause of the annoyingly vague "A number is out of range" error, but they are not the only one. And with such informative error messages as that, I doubt I'll ever know what is really wrong with my PDF.
    Cheers!
    Michael Opsteegh

Maybe you are looking for

  • Fatal error while executing BDC in background for PFCG transaction

    Hello, I have requirement where I have to create or modify roles in PFCG transaction. I used BDC to do this. While executing in foreground it works fine but in background mode it is giving me runtime error as "Control Framework: Fatal error - GUI can

  • ACE server initiating traffic issue

    Hello I'm trying to establish a session between one of my real servers behind the ace and some external network without any NAT. According to the documentation I should only configure correct ACL on both the client and server vlan and it should works

  • Need UDF code

    Hi All, Source File Eno     ename 10     AA 20     BB 10     AA 30     CC My requirement is need to identify the duplicate records at the mapping level. Condition as below. If eno and ename > 2 then status = "X" else Status = " " Please provide me th

  • Automatic html code generated in {module_case} output

    Does anyone know a work around for the automatic spacing and carriage return that BC system generates when the {module_case} is displayed?  I have BC form that is transferring this data from BC to a third party site and the extra code being generated

  • Mail Udate? Import Messages?  Mail is all messed up!

    Today I logged into my Mac and tried to read my mail like I always do at 8am, and I was prompted by a screen saying similar to "Welcome to Mac Mail in Tiger, Mail needs to import your messages before you may use mail. Click Okay to continue" Not like