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

Similar Messages

  • 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

  • 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.

  • I want to load 500 data points in binary, using Power Basic for DOS. IBRDI will not compile in Power Basic. ILRDI will compile, but I can not get it to work. I get a run time error"subscript out of range"

    According to NI manual for DOS IL functions return the value of ibsta, which is an integer. So what is the problem, or is Power Basic 3.1 a special case. If so what is the solution

    The subscript error I get does obviously relate to the array, but I know in advance how much data will be transfered, 500 data points of a trace and I have DIM the array just prior to the transfer code, in the same subroutine. Also I have attemped to make the transfer a for next loop and it I get the same error at the start of the loop? The has to be another cause of this problem.

  • For Next loop in allocations

    Request help in writing a allocation logic code.
    The current runs for 2600 Projects and 12000 customers. This causes memory issue and the code is aborted when run.
    Please suggest if this code can be run in a For/Next loop for each project..
    *XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
    *XDIM_MEMBERSET TIME = %TIME_SET%
    *WHEN ACCOUNT
    *IS "A1100001"
    *REC(EXPRESSION = ([ACCOUNT].[A1100001])*((%VALUE%)),ACCOUNT = "A3100001")
    *ENDWHEN
    *XDIM_MEMBERSET TIME = %TIME_SET%
    *XDIM_MEMBERSET ACCOUNT = BAS(MET-SAL.3.1)
    *XDIM_MEMBERSET P_PROJECT = BAS(AllProjects)
    *XDIM_ADDMEMBERSET P_PROJECT = NO_PROJECT
    *XDIM_MEMBERSET P_DEPARTMENT = ESG_Input
    *XDIM_MEMBERSET P_ENTITY = TTEU_INP
    *XDIM_MEMBERSET P_CUSTOMER = No_Customer
    *XDIM_ADDMEMBERSET P_CUSTOMER = BAS(AllCustomers)
    *XDIM_MEMBERSET P_ANALYSIS = BAS(AllAnalysis)
    *XDIM_ADDMEMBERSET P_ANALYSIS = NO_ANALYSIS
    *RUNALLOCATION
    *FACTOR = 1
    *DIM ACCOUNT WHAT = BAS(MET-SAL.3.1) ; WHERE = <<<;USING = <<<;TOTAL = <<<
    *DIM P_PROJECT WHAT = NO_PROJECT ;WHERE = <<< ;USING = <<<;TOTAL = <<< 
    *DIM P_DEPARTMENT WHAT = ESG_Input ;WHERE = <<< ;USING = <<<;TOTAL = <<< 
    *DIM P_ENTITY WHAT = TTEU_INP ;WHERE = <<< ;USING = <<<;TOTAL = <<< 
    *DIM P_ANALYSIS WHAT = NO_ANALYSIS ;WHERE = BAS(AllAnalysis) ;USING = <<<;TOTAL = <<< 
    *DIM P_CUSTOMER WHAT = No_Customer ;WHERE = BAS(AllCustomers) ;USING = <<<;TOTAL = <<<
    *ENDALLOCATION
    next

    I realized that while checking and have removed the section for recording expression.. and now only focusing to correct the Allocation logic. Based on your advice I have added the FOR/NEXT as below.
    The code is now only running for EDCTM-0007 but fails to generate any records for EDCTM-0014.
    *XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
    *XDIM_MEMBERSET TIME = %TIME_SET%
    *XDIM_MEMBERSET ACCOUNT AS %SAL% = BAS(MET-SAL.3.1)
    //*XDIM_MEMBERSET P_PROJECT = BAS(AllProjects)
    *XDIM_MEMBERSET P_PROJECT AS %PRJ% = EDCTM-0007, EDCTM-0014
    *XDIM_ADDMEMBERSET P_PROJECT = NO_PROJECT
    *XDIM_MEMBERSET P_DEPARTMENT = BAS(AllDepartments)
    *XDIM_MEMBERSET P_ENTITY = BAS(AllEntities)
    *XDIM_MEMBERSET P_CUSTOMER = BAS(AllCustomers)
    *XDIM_MEMBERSET P_ANALYSIS = BAS(AllAnalysis)
    *XDIM_MEMBERSET RPTCURRENCY = INR, CAD, EUR, GBP, KRW, MXN, SGD, THB, USD
    *FOR %PRJ% = EDCTM-0007, EDCTM-0014
    *RUNALLOCATION
    *FACTOR = 1
    *DIM ACCOUNT WHAT = %SAL%; WHERE = <<<; USING = <<<; TOTAL = <<<
    *DIM P_DEPARTMENT WHAT = ED_Input; WHERE = ED16; USING = <<<; TOTAL = <<<
    *DIM P_ENTITY WHAT = PUN_C; WHERE = <<<; USING = <<<; TOTAL = <<<
    *DIM P_CUSTOMER WHAT = No_Customer; WHERE = C100700; USING = <<<; TOTAL = <<<
    *DIM P_PROJECT WHAT = NO_PROJECT; WHERE = %PRJ%; USING = <<<; TOTAL = <<<
    *DIM P_ANALYSIS WHAT = NO_ANALYSIS; WHERE = TM_S; USING = <<<; TOTAL = <<<
    *ENDALLOCATION
    *COMMIT
    *NEXT
    log..
       FILE:\ROOT\WEBFOLDERS\ENVIRONMENTSHELL1\ADMINAPP\Planning_TTL\CP_RAVINNINE.LGF
    USER:RAVINDRA.S
    APPSET:ENVIRONMENTSHELL1
    APPLICATION:Planning_TTL
    FACTOR:1
    ALLOCATION DATA REGION:
    CATEGORY:Budget,
    P_PROJECT:NO_PROJECT,
    P_DEPARTMENT:Admin_Entity,Admin_Group,BRT_Entity,CEO_Entity,CEO_Group,COO_Entity,COO_Group,CSR_Entity,CSR_Group,ED01,ED02,ED03,ED04,ED05,ED06,ED07,ED08,ED09,ED10,ED11,ED12,ED13,ED14,ED15,ED16,ED_Input,ESG01,ESG02,ESG03,ESG04,ESG05,ESG06,ESG07,ESG08,ESG09,ESG10,ESG_Input,Finance_Entity,Finance_Group,GDO_Entity,HR_Entity,HR_Group,IT_Ent_Apps_Entity,IT_Ent_Apps_Group,IT_Ops_Infra_Entity,IT_Ops_Infra_Group,Legal_Entity,Legal_Group,Mktg_Entity,Mktg_Group,NO_DEPT,OSM_Entity,OSM_Group,PL01,PL02,PL03,PL04,PL05,PL06,PL07,PL08,PL09,PLM_P_Input,PLM_P_Services_Input,PLM_S_Input,PP01,PP02,PP03,PP04,PP05,Products_Autodesk,Products_Dassault,Products_IBM,Products_IKS,Products_MSC,Products_Others,Products_UGS,Quality_Entity,Quality_Group,VP01,VPD01,VPD_Input,
    P_ENTITY:BLO_C,BLO_Input,BLO_NC,BLR_C,BLR_Input,BLR_NC,BOM_C,BOM_Input,BOM_NC,BRG_C,BRG_Input,BRG_NC,BRZ_C,BRZ_Input,BRZ_NC,CAN,DEL_C,DEL_Input,DEL_NC,GER,GIP,HNJ_C,HNJ_Input,HNJ_NC,JSE_C,JSE_Input,JSE_NC,JSR_C,JSR_Input,JSR_NC,LKQ_C,LKQ_Input,LKQ_NC,MEX,NLD,PNQ_C,PNQ_Input,PNQ_NC,PUD_C,PUD_Input,PUD_NC,PUN_C,PUN_Input,PUN_NC,SAS,SIG,SKR,THD,THE,TTCN_INP,TTEU_INP,TTL_INP,TTMX_INP,TTPL_INP,TTTH_INP,TTUS_INP,UKG_Input,UKG_J,UKG_N,USA,
    P_CUSTOMER:C000001,C000002,C000003,C000004,C000005,C000006,C000007,C000008,C000009,C000010,C000011,C000012,C000013,C000014,C000015,C000016,C000017,C000018,C000019,C000020,C000021,C000022,C000023,C000024,C000025,C000026,C000027,C000028,C000029,C000030,C000031,C000032,C000033,C000034,C000035,C000036,C000037,C000038,C000039,C000040,C000041,C000042,C000043,C000044,C000045,C000046,C000047,C000048,C000049,C000050,C000051,C000052,C000053,C000054,C000055,C000056,C000057,C000058,C000059,C000060,C000061,C000062,C000063,C000064,C000065,C000066,C000067,C000068,C000069,C000070,C000071,C000072,C000073,C000074,C000075,C000076,C000077,C000078,C000079,C000080,C000081,C000082,C000083,C000084,C000085,C000086,C000087,C000088,C000089,C000090,C000091,C000092,C000093,C000094,C000095,C000096,C000097,C000098,C000099,C000100,C000101,C000102,C000103,C000104,C000105,C000106,C000107,C000108,C000109,C000110,C000111,C000112,C000113,C000114,C000115,C000116,C000117,C000118,C000119,C000120,C000121,C000122,C000123,C000124,C000125,C000126,C000127,C000128,C000129,C000130,C000131,C000132,C000133,C000134,C000135,C000136,C000137,C000138,C000139,C000140,C000141,C000142,C000143,C000144,C000145,C000146,C000147,C000148,C000149,C000150,C000151,C000152,C000153,C000154,C000155,C000156,C000157,C000158,C000159,C000160,C000161,C000162,C000163,C000164,C000165,C000166,C000167,C000168,C000169,C000170,C000171,C000172,C000173,C000174,C000175,C000176,C000177,C000178,C000179,C000180,C000181,C000182,C000183,C000184,C000185,C000186,C000187,C000188,C000189,C000190,C000191,C000192,C000193,C000194,C000195,C000196,C000197,C000198,C000199,C000200,C000201,C000202,C000203,C000204,C000205,C000206,C000207,C000208,C000209,C000210,C000211,C000212,C000213,C000214,C000215,C000216,C000217,C000218,C000219,C000220,C000221,C000222,C000223,C000224,C000225,C000226,C000227,C000228,C000229,C000230,C000231,C000232,C000233,C000234,C000235,C000236,C000237,C000238,C000239,C000240,C000241,C000242,C000243,C000244,C000245,C000246,C000247,C000248,C000249,C000250,C000251,C000252,C000253,C000254,C0002
    P_ANALYSIS:FB_M,FB_S,NO_ANALYSIS,TM_M,TM_S,
    RPTCURRENCY:CAD,EUR,GBP,INR,KRW,MXN,SGD,THB,USD,
    ACCOUNT:WHAT:MET-SAL.1.1,MET-SAL.5.1, MET-SAL.1.2,MET-SAL.5.2, MET-SAL.1.3,MET-SAL.5.3, MET-SAL.1.4,MET-SAL.5.4, MET-SAL.1.5,MET-SAL.5.5, MET-SAL.1.6,MET-SAL.5.6, MET-SAL.1.7,MET-SAL.5.7, MET-SAL.1.8,MET-SAL.5.8,WHERE:<<<,USING:<<<,TOTAL:<<<
    P_DEPARTMENT:WHAT:ED_Input,WHERE:ED16,USING:<<<,TOTAL:<<<
    P_ENTITY:WHAT:PUN_C,WHERE:<<<,USING:<<<,TOTAL:<<<
    P_CUSTOMER:WHAT:No_Customer,WHERE:C100700,USING:<<<,TOTAL:<<<
    P_PROJECT:WHAT:NO_PROJECT,WHERE:EDCTM-0007,USING:<<<,TOTAL:<<<
    P_ANALYSIS:WHAT:NO_ANALYSIS,WHERE:TM_S,USING:<<<,TOTAL:<<<
    --Read WHAT region
    [P_DEPARTMENT] =ED_Input
    [P_CUSTOMER] =No_Customer
    [P_PROJECT] =NO_PROJECT
    [P_ANALYSIS] =NO_ANALYSIS
    [CATEGORY] =Budget
    [RPTCURRENCY] =CAD,EUR,GBP,INR,KRW
    --Time to load WHAT :0.2066 second(s).
    WHAT data:1680 records.
    --Apply factor
    WHERE=WHAT *1
    --Time to apply factor :0.003074 second(s).
    --Read destination and calculate difference
    [P_DEPARTMENT] =ED16
    [P_CUSTOMER] =C100700
    [P_PROJECT] =EDCTM-0007
    [P_ANALYSIS] =TM_S
    [CATEGORY] =Budget
    [RPTCURRENCY] =CAD,EUR,GBP,INR,KRW
    --Time to read destination and calculate difference :0.14611 second(s).
    --Records succeeded to write back :1680
    --Records failed to write back
    --Time to run Allocation :0.390015 second(s).
    FACTOR:1
    ALLOCATION DATA REGION:
    CATEGORY:Budget,
    ACCOUNT:WHAT:MET-SAL.1.1,MET-SAL.5.1, MET-SAL.1.2,MET-SAL.5.2, MET-SAL.1.3,MET-SAL.5.3, MET-SAL.1.4,MET-SAL.5.4, MET-SAL.1.5,MET-SAL.5.5, MET-SAL.1.6,MET-SAL.5.6, MET-SAL.1.7,MET-SAL.5.7, MET-SAL.1.8,MET-SAL.5.8,WHERE:<<<,USING:<<<,TOTAL:<<<
    P_DEPARTMENT:WHAT:ED_Input,WHERE:ED16,USING:<<<,TOTAL:<<<
    P_ENTITY:WHAT:PUN_C,WHERE:<<<,USING:<<<,TOTAL:<<<
    P_CUSTOMER:WHAT:No_Customer,WHERE:C100700,USING:<<<,TOTAL:<<<
    P_PROJECT:WHAT:NO_PROJECT,WHERE:EDCTM-0014,USING:<<<,TOTAL:<<<
    P_ANALYSIS:WHAT:NO_ANALYSIS,WHERE:TM_S,USING:<<<,TOTAL:<<<
    "LC" has been added as default currency in allocation.
    --Read WHAT region
    [P_DEPARTMENT] =ED_Input
    [P_CUSTOMER] =No_Customer
    [P_PROJECT] =NO_PROJECT
    [P_ANALYSIS] =NO_ANALYSIS
    [CATEGORY] =Budget
    [ACCOUNT] =MET-SAL.1.1,MET-SAL.1.2,MET-SAL.1.3,MET-SAL.1.4,MET-SAL.1.5
    --Time to load WHAT :0.060259 second(s).
    WHAT data:0 records.
    --Apply factor
    WHERE=WHAT *1
    --Time to apply factor :0.000028 second(s).
    --Read destination and calculate difference
    [P_DEPARTMENT] =ED16
    [P_CUSTOMER] =C100700
    [P_PROJECT] =EDCTM-0014
    [P_ANALYSIS] =TM_S
    [CATEGORY] =Budget
    [ACCOUNT] =MET-SAL.1.1,MET-SAL.1.2,MET-SAL.1.3,MET-SAL.1.4,MET-SAL.1.5
    --Time to read destination and calculate difference :0.05125 second(s).
    --Records succeeded to write back
    regards, Prashant

  • I want to use for next loop to reduce code for doing removechild()'s

    I have working if (addChild(bmp1)) ----removeChild(bmp1). But I need to do it 20 times. I thought I could use a for/next loop, but so far can't seem to get it right.
    for (var i:Number=0; i<21; I++)
    my_bmp.name = "bmp" + 1;
    if (addChild(my_bmp))
    removeChild(my_bmp);
    This code passing the compiler, but when I execute it I get "A term is undefined and has no properties". I'm thinking it has something to do with  my_bmp.name? I've tried several things and just can't crack it.

    The name of an object is just a string.  to have the compiler treat it as an object you can use the getChildByName() method or even the bracket notation.
    removeChild(this.getChildByname(my_bmp));
    OR
    removeChild(this[my_bmp]);
    I am guessing that you intend to use "bmp"+String(i) instead of "bmp"+1

  • 106 nested for next loops!

    Well, this is not a problem, but I just had to mention that I could not believe that Java would actually process 106 nested for next loops. I had an hour of free time yesterday and we needed to run an exhaustive branch test of an application that we have, to do so we needed to have 104 data elements generated with all possible cases. I thought, what the heck, and tried it in Java--our old language wouldn't do that on it's best day and in our dreams! Java did it, it not only did it, but it left a clean environment after it was done!

    well, here is more the thing that comes to mind with i think about loop limits: in VB when you get a dozen or so pending closing parentesis, things start to go funny in memory and in some cases, the formula/routine becomes too complicated to interpret. Just how many pending closing parentesis will be accepted before things go bonkers.

  • 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

  • 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]

  • 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.

  • 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

Maybe you are looking for

  • Hypertext links not working after pdf conversion

    I have a document that contains many hyperlinks to external PDF files. Not sure if I created the link correctly to start with, but when I save the book file as a pdf none of the links to the external pdf files work.  I entered the location of the fil

  • Cant put music in my iphone

    Hi, I've been trying to upload music from my PC to my Iphone for a few days now and I always get the same message. It says I need to synch my phone with my PC for the first time and by doing that, It will erase everything from my phone. It's the firs

  • Data warehouse Loader did not write the data

    Hi, I need to know which products are the most searched, I know the tables responsible for storing this information and are ARF_QUERY ARF_QUESTION. I already have the Data Warehouse module loader running, if anyone knows why the data warehouse loader

  • Is it possible to do a sophisticated search in Mac

    It trying to search for a document that has the word "CIA" in it but it appears that Mac never heard of whole word search or quotes.

  • Why cfpop can't recv attachment fm ms outlook ???

    My company is using Coldfusion's Email System over 3 yrs, but using <cfx_pop3> recv email as <cfpop> hv some problem on receiving email, but <cfx_pop3> hv one problem, if attachment's name contain "Chinese" character, it's name will become "monster"