Error -90032 occurred at Error in function centref at line 5 column 8: The indexes are out of bounds for the variable you specified

Sir, 
i am running a matlab code in mathscript of labview but getting an error
Error -90032 occurred at Error in function centref at line 5 column 8:  The indexes are out of bounds for the variable you specified
this code running successfully in matlab 
please help me in this regard
a .vi format file is attached named as mfcc_new.vi
Attachments:
mfcc2.vi ‏35 KB
mfcc_new.vi ‏111 KB

May I see you have 6 inputs to your Mathscript Node. When you test it in Matlab I suposse that you're using some values for this inputs and everything work as expected. Then, run it in Labview using highlight execution, retaining wire values and using single stepping. Check the values which are being inserted to your Mathscript Node and ensure that they are correct. You're having an "indexes out of bounds" mistake, so it probably means that there is something  wrong with the inputs according to your expectations. You can also put the MathScript alone in another VI and insert the inputs you're expecting manually and check in the same way.
Good luck!

Similar Messages

  • SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server 2012 Analysis Services." Hresult: 0x80004005 Description: "Internal error: An une

    SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server 2012 Analysis Services."  Hresult: 0x80004005
     Description: "Internal error: An unexpected error occurred (file 'pcxmlacommon.cpp', line 43, function 'PCFault::RaiseError').
    I'm getting above error in the pre- execute phase of a DFT when I'm trying to fetch data from a SSAS cube using mdx query.
    I'm using OLE DB provider for connecting to cube.
    I got one resolution for Error Code 0X8004005, which asked me to add 'Format= Tabular' in cube's connection string. It does not seem to work either. Can any one help me out on this???

    You are probably missing an update.
    I saw a MS Connect post https://connect.microsoft.com/SQLServer/feedback/details/250920/error-using-oledb-or-datareader-to-get-analysis-services-data where that suggestion was proposed as a fix, but is for an older SQL Server version.
    So do there is a question if you pull data from SQL Server 2012 SSAS using SSIS 2012 (so no other build is involved).
    Arthur My Blog

  • SSIS Package - An OLE DB error has occurred. Error code: 0x80040154.

    I am getting below error when i try to execute a package
    using batch file 
    Microsoft (R) SQL Server Execute Package Utility
    Version 9.00.1399.06 for 64-bit
    Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
    Started: 7:15:29 AM
    Progress: 2014-10-01 07:15:36.05
    Source: Data Flow Task 
    Validating: 0% complete
    End Progress
    Error: 2014-10-01 07:15:36.05
    Code: 0xC0202009
    Source: ADTM001_UPDATE_COSTS_TIU0560 Connection manager "Excel
    Connection Manager"
    Description: An OLE DB error has occurred. Error code: 0x80040154.
    An OLE DB record is available. Source: "Microsoft OLE DB
    Service Components" Hresult: 0x80040154 Description: "Class not registered".
    End Error
    Error: 2014-10-01 07:15:36.05
    Code: 0xC020801C
    Source: Data Flow Task Read Data From XLS [1]
    Description: The AcquireConnection method call to the connection
    manager "Excel Connection Manager" failed with error code 0xC0202009.
    End Error
    Error: 2014-10-01 07:15:36.05
    Code: 0xC0047017
    Source: Data Flow Task DTS.Pipeline
    Description: component "Read Data From XLS" (1) failed
    validation and returned error code 0xC020801C.
    I have tried to use 32 bit exe as well , But then i get below
    error , 
    Could not load package because of error 0xC0014062.
    Description: The LoadFromSQLServer method has encountered OLE
    DB error code 0x80004005 (An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.). The SQL
    statement that was issued has failed.

    Hi Thanks for your reply, But the packages are already running under window authentication.
    Please suggest something.The url you have given as reference does not solve my issue
    I have tried to run 32 bit dtexec,  I get below error'
    Could
    not load package because of error 0xC0014062.
    Description:
    The LoadFromSQLServer method has encountered OLE DB error code 0x80004005 (An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server
    does not allow remote connections.). The SQL statement that was issued has failed.

  • TS2446 my app store is not working, i tired signing in but showing me "An unknown error has occurred" my password is not wrong, please and someone help, because i need to update my macbook air. thank you

    my app store is not working, i tired signing in but showing me "An unknown error has occurred" my password is not wrong, please and someone help, because i need to update my macbook air. thank you... how can i make it work?

    I cannot sign out. When I go to the iTunes & App Stores in settings, The Apple ID field shows my id but it is faded and I cannot select the field.

  • When I tried to back up my computer, Time Machine says 'an error occurred while creating the backup folder.' When I check the side of the partition where I manually saved old files, the folders are there, but NONE of the files are.

    I haven't backed up my computer in over a year. When I tried to back it up today, Time Machine says 'an error occurred while creating the backup folder.' When I check the side of the partition where I manually saved old photos and documents (including all the pictures from the year I studied abroad/traveled a bunch), the folders are there, but NONE of the files are.
    Does anyone have any idea what the problem might be, or how I could fix it? I really don't want to lose all those photos

    So you were doing a time machine backup to another partition on the same hard drive? Just trying to gather some information so i can provide a helpful response.

  • VSS Error: "An unexpected error occurred when cleaning up snapshot volumes. Confirm that all snapped volumes are correctly re-synchronized with the original volumes."

    Hi all,
    at a customer’s site I’ve a problem with a fresh installation of Backup Exec 2014. Every backup (full or incremental) always reports the following
    error: “An unexpected error occurred when cleaning up snapshot volumes. Confirm that all snapped volumes are correctly re-synchronized with the original volumes.”.
    It’s not a Backup Exec problem itself, also backups using “Windows Server Backup” failing with the same error.
    On this site I have three servers; the error is only generated for one of them. Here’s a short overview:
    Server1: Windows Server 2012 R2, latest patchlevel, physical machine, Domain Controller and Fileserver. Backup Exec is installed on this machine,
    backup is written directly to SAS tape loader. There error is generated on this server.
    Server2: Windows Server 2008 R2, latest patchlevel, virtual machine, running on Citrix Xen Server 6.2. Used for remote desktop services, no errors
    on this server.
    Server3: Windows Server 2012 R2, latest patchlevel, virtual machine, database server with some SQL Instances, no errors on this server.
    As I said, error is reported only on server1, no matter if it is a full or an incremental backup. During the backup I found the following errors
    is the event log (translated from a german system):
    Event ID: 12293
    Volume Shadow Copy Service error: Error calling a routine on a Shadow Copy Provider. "{89300202-3cec-4981-9171-19f59559e0f2}" an error occured. Routinedetails Error calling Query(). [0x80042302] [hr = 0x80042302, unexpected component error of
    the Volume Shadow Copy Service.
    Process:
    Volume Shadow Copy polling
    Volume Shadow Copy delete
    Context:
       Executioncontext: Coordinator
       Executionkontext: Coordinator
    And
    Event ID: 8193
    Volume Shadow Copy Service error: Unexpected error calling Routine "IVssCoordinator::Query" hr = 0x8004230f, Unexpected error Volume Shadow Copy Service Provider
    Process:
    Volume Shadow Copy delete
    Context:
       Executioncontext: Coordinator
    There are some articles about this error in the knowledge base or web which does not help or do not apply to my environment for example:
    http://www.symantec.com/business/support/index?page=content&id=TECH38338&actp=search&viewlocale=en_US&searchid=1423724381707
    What I already have tried:
    Disabled Antivirus during the whole backup
    Installed latest Service Pack for Backup Exec
    Rebooted the server
    vssadmin list writers do not show any errors
    consult eventid.net for other possible solutions
    no limits set for vaa
    Anymore ideas from you guys?
    Best regards,

    Hi Shaon,
    vssadmin list providers gave the following output:
    vssadmin list providers
    vssadmin 1.1 - Verwaltungsbefehlszeilenprogramm des Volumeschattenkopie-Dienstes
    (C) Copyright 2001-2013 Microsoft Corp.
    Anbietername: "Microsoft File Share Shadow Copy provider"
       Anbietertyp: Dateifreigabe
       Anbieterkennung: {89300202-3cec-4981-9171-19f59559e0f2}
       Version: 1.0.0.1
    Anbietername: "Microsoft Software Shadow Copy provider 1.0"
       Anbietertyp: System
       Anbieterkennung: {b5946137-7b9f-4925-af80-51abd60b20d5}
       Version: 1.0.0.7
    Unfortunately theres not Symantec VSS Provider listed.
    Best regards,
    Christoph

  • SSDT 2014 An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available. Source: "Microsoft DB2 OLE DB Provider" Hresult: 0x80040E14

    SSDT 2014 (SSIS 2014) running in Visual Studio 2013 against a SQL Server 2014 Enterprise Edition db.
    We are converting by hand a Business Intelligence site from SQL Server 2008 R2 databases (Data Warehouse, SharePoint databases and SSAS cubes), SharePoint 2010 Portal Site, and BIDS 2008 to SQL Server 2014 databases, SharePoint 2013, and SSDT 2014
    for Visual Studio 2013.  This SSIS Package runs fine in the BIDS/SQL 2008 R2 environment.  The Variable Expression in this Data Flow Task is:
    "SELECT [ORDER_ID]
    ,[ORDER_NUMBER]
    ,[TRACKING_PREFIX_ID]
    ,[TRACKING_NUMBER]
    ,[REVISION_NUM]
    ,[ORDER_TYPE]
    ,[STATUS]
    ,[WEIGHT]
    ,[PLACEMENT_DATE]
    ,[REQUESTED_DELIVERY]
    ,[OUTLET_ID]
    ,[DEV_LOC_ID]
    ,[TSR_ID]
    ,[LAST_LINE_ITEM]
    ,[PARTIALS]
    ,[WAREHOUSE_ID]
    ,[COURIER_ID]
    ,[ALT_ADDRESS_ID]
    ,[ROUTE_CRITERION]
    ,[SHIPMENT_ID]
    ,[MANIFEST_NOTE_ID]
    ,[COURIER_NOTE_ID]
    ,[CONFIRM_DATE]
    ,[LINE_NO]
    ,[FILL_DATE]
    ,[LAUNCH_ID]
    ,[CDC_DK]
    ,[ORDER_SIZE]
    ,[PICK_PACK_USER]
    ,[LAST_DATE_MODIFIED]
    ,[USER_MODIFIED]
    ,[IA_INSERT_DT]
    ,[IA_UPDATE_DT]
    ,[SOURCE_ID]
    FROM [DB2ADMIN].[IA_ORDERS]
    WHERE [CDC_DK]  = "
    +(DT_STR,5,1252)@[User::CurrentDateKey]
    This is the ERROR:
    An OLE DB error has occurred. 
    Error code: 0x80040E14. 
    An OLE DB record is available. 
    Source: "Microsoft DB2 OLE DB Provider" 
    Hresult: 0x80040E14 
    Description: "An unexpected token "SELECTBEGIN-OF-STATEMENT<value" was found following "". 
                  Expected tokens may include:  "". SQLSTATE: 42601, SQLCODE: -104".

    Hi Scottony,
    If I understand correctly, you are using a variable with the expression you post as the DB2 query command for Data access.
    Based on the error message, it seems that the error is caused by you are using a SQL query as IBM DB2 query. Since the query is correct in SQL Server. Please verify the IBM DB2 query is correct, then evaluate the expression of variable SourceSQL_Orders to
    make sure the query is just you need.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • When i open shared Document folder getting "An unexpected error has occurred. " error

    Hi,
    I am getting "An unexpected error has occurred. " error when i open Shared Document folder in Internet URL. But if i open the foder in newtab i can view the documents with out error also intranet URL also doesnt have any problem. I am using SharePoint
    2007. Kindly help me resove this issue

    @Manikandan,
    Can you check the ULS logs to find what is the error. The default location of log files will be C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS for MOSS 2007.
    If is allowed for you to change the callstack and customerrors mode setting in the web.config then change those values to see the error.
    Find: <SafeMode CallStack="false" />
    Replace with: <SafeMode CallStack="true" />
    Find: <customErrors mode="On" />
    Replace with: <customErrors mode="Off" />
    http://social.msdn.microsoft.com/Forums/en-US/4ffee924-8878-4443-85a9-1ac89f7fbbfb/debugging-a-web-part-an-unexpected-error-has-occurred-trace-log?forum=sharepointdevelopmentlegacy
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • SSIS 2008 R2 Excel Destination Error, "An OLE DB error has occurred. Error code: 0x80040E21.", cannot export to the new Excel (.xlsx) format

    Hello.
    I've been attempting to do a very simple task that just isn't working.  For a Data Flow Task action in SSIS, I am trying to export data from a single SQL Server (2008 R2) database table to an Excel spreadsheet (.xlsx).  No matter what I do, it
    just keeps failing.  The columns in the table match the column header names (in the first row) in the tab I select.  Here is the output I get.
    SSIS package "Package.dtsx" starting.
    Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
    Warning: 0x80049304 at Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's
    console.
    Information: 0x40043006 at Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
    Information: 0x40043007 at Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
    Error: 0xC0202009 at Data Flow Task, Excel Destination [52]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
    Error: 0xC0202025 at Data Flow Task, Excel Destination [52]: Cannot create an OLE DB accessor. Verify that the column metadata is valid.
    Error: 0xC004701A at Data Flow Task, SSIS.Pipeline: component "Excel Destination" (52) failed the pre-execute phase and returned error code 0xC0202025.
    Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.
    Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "component "Excel Destination" (52)" wrote 0 rows.
    Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
    Task failed: Data Flow Task
    SSIS package "Package.dtsx" finished: Success.
    I kick-off the action and sometimes is hangs for a few seconds (20+ seconds) and sometimes it doesn't, but either way it fails.  I tried this on a 32-bit machine, 64-bit machine, and still it fails.  I tried an OLE DB connection to Excel and
    that doesn't work either.  I made sure that the connection string for the Excel spreadsheet is Provider=Microsoft.ACE.OLEDB.12.0;Data Source=[filepath\excelfile].xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES"; and still it doesn't work.  
    Now, when I switch it over to export to an Excel 2003 spreadsheet (.xls) it works!  But I don't want it to go to the old Excel spreadsheet format, my requirement is to export the data to the new format.  Is there a bug in the Access 2010 Database
    Engine that won't allow me to export to the new Excel format?  Otherwise, what can I be doing wrong?  I set the Run64BitRuntime property to False and it still doesn't work.  
    My solution (so far) is to export it to Excel 2003 and then via the Script Task action use the Excel COM API (Microsoft.Office.Interop.Excel.dll) for 2010, open the file and save it in the new format (.xlsx) and that works great!  However, the client
    doesn't want to install Excel on the database server!  So what can I do when the Excel Destination or OLE DB Destination (to connect to Excel) actions don't work!?  Please help!!!
    Like I mentioned, if this is a bug, that would be great to know so I can stop wasting my time.  Thanks again.

    Alright, so you mean to say is that the driver is not installed.  Isn't version 12 the 2010 Access Database Engine Driver?  I did install that, and I also tried the 2007 Access DB Engine driver, and both don't work.  What driver am I missing? 
    The connection string is correctly formatted, yes?
    Also, when setting up the OLE DB Destination action and I have it point to the Excel spreadsheet, and I specify as the provider "Microsoft Office 12.0 Access Database Engine OLE DB Provider" and click on Test Connection, the connection is
    successful.  Wouldn't that mean the 12.0 version driver is installed?
    Thanks in advance.

  • HT4623 When I try to do the iOS7 update, it keeps giving me an error message saying "an error has occured in dowloading." What could this mean? It doesn't tell me anything specific as the error...?

    When I try to do the iOS7 update, it keeps giving me an error message saying "an error has occured in dowloading." What could this mean? It doesn't tell me anything specific as the error...?

    Got the same thing. Was in the middle of the download (11 mins remaining) and a blasted text message came through. Answered it, like a moron, and when I went back to download it gave me the error.. Very annoying. Anyway, perseverence paid off as after 10th or something re-attempt, it began again. (32 mins remaining). Like the guy above says. Severs will be going mental at the moment so stick with it.

  • TS3694 My iPad2 has repeatedly refused to update to iOS7, whether connected to a PC or not.  The error message indicates an unknown error has occurred, with error code 6.  Does anyone have any idea what the problem might be and how to solve it?  Many than

    My iPad2 has repeatedly refused to update to iOS7, whether connected to a PC or not.  The error message indicates an unknown error has occurred, with error code 6.  Does anyone have any idea what the problem might be and how to solve it?  Many thanks.

    Hi
    I followed this guy's instructions and it worked:
    http://evsiphone.blogspot.com/2009/05/iphone-iphone-could-not-be-restored.html
    I did disable the security (AVG and Zone Alarm) when I tried on my own PC. My wife's laptop which eventually got it working also uses AVG and Zone Alarm but on an XP O/S whereas my PC is Vista - maybe this is why.
    Cheers for you help.
    Andy
    Message was edited by: bigbadandy

  • I'm getting the message, "the supplied index is out of bounds." i have attached my code and the error message. can anyone help me? thanks.

    the title is self-explanatory. i'm VERY new to flash so i don't understand a lot of the lingo. can anyone give me a simple answer or, better yet, fix the code for me? i'm reading that it usually comes up when there's a child error but i'm not sure how to fix it.
    my code:
    var navBtnGlow:GlowFilter = new GlowFilter(0x000000, 0.5, 0, 15, 1, 2, true, false);
    navBAR_mc.addEventListener(MouseEvent.MOUSE_OVER, navOverF);
    navBAR_mc.addEventListener(MouseEvent.MOUSE_OUT, navOutF);
    function navOverF(event:MouseEvent):void{
    event.target.filters = [navBtnGlow];
    navBAR_mc.setChildIndex(event.target as MovieClip, 1);
    dropMenus_mc.gotoAndStop(navBAR_mc.getChildAt(1).name);
    trace("We are Rolled Over..." + navBAR_mc.getChildAt(1).name)
    function navOutF(event:MouseEvent):void{
    event.target.filters = [];
    the error message:
    RangeError: Error #2006: The supplied index is out of bounds.
    at flash.display::DisplayObjectContainer/setChildIndex()
    at bestPRIM_fla::MainTimeline/navOverF()
    thanks in advance!

    I'm trying to get my head around this, but here's my shot at it... you have an event listener assigned to navBAR_mc for a mouse over.  When the mouseover occurs, you have the following line:
    navBAR_mc.setChildIndex(event.target as MovieClip, 1);
    Since navBAR_mc is the event.target, it cannot be a child of itself, but I think that's what that line is trying (and failing) to process.
    So can you describe what you are trying to do.  I would expect that navBAR_mc holds buttons, but based on what I see, it is the button.

  • RangeError: Error #2006: The supplied index is out of bounds.

    Hi Guys
    I am making an Auto-Arrange button and clicking on which
    arranges all the children of the container( which are on the main
    stage) in the tile format. Basically on clicking, I manually move
    those child on the stage to particular coordinates as shown in my
    code. I have pasted my code below. My problem is that as soon as i
    click on the auto arrange button I am getting error "RangeError:
    Error #2006: The supplied index is out of bounds.". Please let me
    know what i am doing wrong and i will appreciate if you let me know
    how would i fix this
    Thanks a lot guys
    Anuj
    ******************CODE**********************
    var aa:Number=0;
    var xcoord:Number=-300;
    var ycoord:Number=-200;
    var xcoord1:Number=450;
    var xcoord2:Number=850;
    var xcoord3:Number=1250;
    var ycoord1:Number=350;
    var ycoord2:Number=650;
    //Button Listener
    btn_AA.addEventListener(MouseEvent.CLICK,autoArrange);
    function autoArrange(event:MouseEvent):void
    if(container.getChildAt(aa)!=null)
    container.getChildAt(aa).x=xcoord;
    container.getChildAt(aa).y=ycoord;
    //Arrange Second
    container.getChildAt(aa+1).x=xcoord+xcoord1;
    container.getChildAt(aa+1).y=ycoord;
    //Arrange Third
    container.getChildAt(aa+2).x=xcoord+ xcoord2;
    container.getChildAt(aa+2).y=ycoord;
    //Arrange Forth
    container.getChildAt(aa+3).x=xcoord+xcoord3;
    container.getChildAt(aa+3).y=ycoord;
    //Arrange Fifth
    container.getChildAt(aa+4).x=xcoord;
    container.getChildAt(aa+4).y=ycoord+ycoord1;
    //Arrange Sixth
    container.getChildAt(aa+5).x=xcoord+xcoord1;
    container.getChildAt(aa+5).y=ycoord+ycoord1;
    //Arrange Seventh
    container.getChildAt(aa+6).x=xcoord+ xcoord2;
    container.getChildAt(aa+6).y=ycoord+ycoord1;
    //Arrange Eight
    container.getChildAt(aa+7).x=xcoord+xcoord3;
    container.getChildAt(aa+7).y=ycoord+ycoord1;
    //Arrange Ninth
    container.getChildAt(aa+8).x=xcoord;
    container.getChildAt(aa+8).y=ycoord+ycoord2;
    //Arrange Tenth
    container.getChildAt(aa+9).x=xcoord+xcoord1;
    container.getChildAt(aa+9).y=ycoord+ycoord2;
    //Arrange Eleventh
    container.getChildAt(aa+10).x=xcoord+ xcoord2;
    container.getChildAt(aa+10).y=ycoord+ycoord2;

    Hi Kglad
    Thanks for reply. Can you please do me a big favor of
    modifying the code so that it would not give that range error.
    I am not sure which way to go because manually i put them at
    specific coordinate and i assume if even i place 1 child on my main
    stage it should work without giving me the error but everytime it's
    checking that whether i place 1 childrens on the stage or not.
    Please help me out.
    Thank you very much for ur help
    Regards,

  • Error #2006: The supplied index is out of bounds

    hello,
    i'm trying to addChild with an interval, using this piece of code, but I allways get an error saiyng the suplied index is out of bounds.
    why?
    what should I do to have mc1 added then wait lets say a second and add m2 2 and so on?
    Thanks
    var tempo_espera:Timer = new Timer(1000, 1);
                tempo_espera.addEventListener("timer", inserir);
                tempo_espera.start();
                function inserir(evt:TimerEvent):void {
                    for (var nv1:int = 0; nv1<promocoes.length; nv1++) {
                        holder.addChildAt(mc, nv1);
                        var animacao:TransitionManager = new TransitionManager(mc);
                        animacao.startTransition({type:Zoom, direction:Transition.IN, easing :Elastic.easeOut, duration:3});
    RangeError: Error #2006: The supplied index is out of bounds.
    at flash.display::DisplayObjectContainer/addChildAt()
    at MethodInfo-346()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

    using your new code, I got this error
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/addChild()
    at MethodInfo-343()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    I had to add mcArray = new Array(); to avoid another error
    // this is array of movie clips
            var mcArray:Array;
            // it is better to declare variable once and then reinstantiate it
            var mc:MovieClip;
            // do your regular routine
            for (var nv:uint = 0; nv<promocoes.length; nv++) {
                var prm;
                prm = promocoes[nv].split("|sep|");
                mc = new MovieClip();
                mc.name = "mc_"+nv;
                // place this new mc into array
                mcArray = new Array();
                mcArray.push(mc);
            // start timer - note that timer will fire as many times as there are movie clips
            var tempo_espera:Timer = new Timer(1000, mcArray.length);
            tempo_espera.addEventListener("timer", placeClip);
            tempo_espera.start();
            // the clip you will apply transition to
            var currentClip:MovieClip;
            // function that places clips
            function placeClip(e:Event):void {
                // get next clip by calling movie that corresponds with the timer counter
                currentClip = MovieClip(mcArray[tempo_espera.currentCount]);
                // just place next clip
                holder.addChild(currentClip);
                var animacao:TransitionManager = new TransitionManager(currentClip);
                animacao.startTransition({type:Zoom, direction:Transition.IN, easing :Elastic.easeOut, duration:3});

  • Office 365 API, error: The token has invalid value 'roles' for the claim type ''

    Hi guys,
    I am trying to develop a Daemon / Server application using the new Office 365 APIs. I have added a new application to Azure Active Directory. I am using cURL + the app ID and secret to get a JWT token, this is the exact request:
    curl -X POST https://login.windows.net/TENANT_KEY/oauth2/token \
    -F redirect_uri=http://spreadyDaemon \
    -F grant_type=client_credentials \
    -F resource=https://outlook.office365.com/ \
    -F client_id=XXXX \
    -F client_secret=XXXX=
     I get back a JWT however it has no scopes for access set here is the decoded JWT claims:
    "ver": "1.0",
    "aud": "https://outlook.office365.com/",
    "iss": "https://sts.windows.net/TENANT_KEY/",
    "oid": "17fa33ae-a0e9-4292-96ea-24ce8f11df21",
    "idp": "https://sts.windows.net/TENANT_KEY/",
    "appidacr": "1",
    "exp": 1415986833,
    "appid": "XXXX",
    "tid": "e625eb3f-ef77-4c02-8010-c591d78b6c5f",
    "iat": 1415982933,
    "nbf": 1415982933,
    "sub": "17fa33ae-a0e9-4292-96ea-24ce8f11df21"
    Therefore when I do a request to the exchange API endpoint I get the following response:
    HTTP/1.1 401 Unauthorized
    Cache-Control: private
    Server: Microsoft-IIS/8.0
    request-id: d08d01a8-7213-4a13-a598-08362b4dfa70
    Set-Cookie: ClientId=WDALDNO0CAIOOZDZWTA; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
    X-CalculatedBETarget: am3pr01mb0662.eurprd01.prod.exchangelabs.com
    x-ms-diagnostics: 2000001;reason="The token has invalid value 'roles' for the claim type ''.";error_category="invalid_token"
    X-DiagInfo: AM3PR01MB0662
    X-BEServer: AM3PR01MB0662
    X-AspNet-Version: 4.0.30319
    Set-Cookie: exchangecookie=6bf68da033684824af21af3b0cdea6e3; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
    Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxoGaio2PjZvPztGPjZCb0ZqHnJeekZiak56djNGckJI=; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
    Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxg==; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
    X-Powered-By: ASP.NET
    X-FEServer: DB4PR02CA0026
    WWW-Authenticate: Bearer client_id="00000002-0000-0ff1-ce00-000000000000", trusted_issuers="00000001-0000-0000-c000-000000000000@*", authorization_uri="https://login.windows.net/common/oauth2/authorize", error="invalid_token",Basic Realm="",Basic Realm=""
    Date: Fri, 14 Nov 2014 16:40:59 GMT
    Content-Length: 0
    I have asked a stack overflow question here: http://stackoverflow.com/questions/26950838/office-365-api-error-the-token-has-invalid-value-roles-for-the-claim-type
    Any help on the matter will be hugely appreciated, thanks!

    Hi Manu,
    To wrap this thread up; I have had an answer on stack overflow.
    It appears that currently the grant type client_credentials is not supported, according to a comment on this blog post by Matthias' http://blogs.msdn.com/b/exchangedev/archive/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-exchange-online-in-office-365.aspx 
    "There is no way in the code flow to avoid username/password. We're working on a client credential flow for later this fall that will give you the functionality required to run background services. For this you will not need a username/password,
    but the application will directly assert its identity and authenticate as itself."
    Unfortunately I require client_credentials for a daemon process, Q4 is the scheduled release for support for this grant time.
    Thanks for the help,
    Nick

Maybe you are looking for

  • Flashing Question Mark At Start Up/ Disk Utility Not Working

    I am having the old flashing question mark in a file show up when I try to start my computer. I went through a lot of the forums and I have attempted the Disk Utility. When I put the 10.3 install disk in and restart it takes me to the opening screen.

  • Trouble connecting mac to Canon IR-ADV C5030

    I am trying to connect to a Copier/Printer at my new office. I downloaded the driver recommended by IT. I have been unsuccessful in trying to print. I continue to receive the "Stopped. Filter failed" error. I have tried deleting and re-adding the pri

  • Why do we need to plan promotions at the lowest level of aggregation

    Hi,      The documentation says that we need to plan the promotions at the lowest level of aggregation i.e., the material level. Why? Is there a specific reason for this? Can we plan at other levels of aggregation as well? What happens if we plan at

  • Problem with Length validation in entity

    hi, I wanted to do length validation on entity, but when i put greater than 3 then my system is working if i enter 3 then it's giving error, i have taken Length Rule type also.

  • Stage and gray area ?

    hi all of sudden my gray area where you can see my stage turn white this is really a pain for me because everytime i use white for my stage i cant see where my stuff is going , how can i turn the gray area which is white right now into gray again btw