Using a script command to refresh external data?

I can't seem to find the script command to refresh external data before I move it into the Data Portal.  Can anyone point me in the right direction?
Also, is there a way to run this script without opening DIAdem, selecting the script and running it?  I would like to generate a web page that is updated every X hours with a report generated with a DIAdem script.
Thanks
Todd

Hi toddho,
What do you mean by "refresh the external data before I move it into the Data Portal"?  Do you mean change or add data to the external data file with VBScript?  Or do you mean refresh the display of data files and folders in the NAVIGATOR?  Or do you mean something else?  I'm afraid I can't seem to make sense of this request yet.
If you want to run a DIAdem VBScript from an external program, such as a java script activated in a web page, then you should open an ActiveX connection to DIAdem and send it commands.  This can be done in such a way that DIAdem is invisible, but you must have a DIAdem instance running in order to execute a VBScript with DIAdem commands or variables in it.  DIAdem has 2 ActiveX servers that are well documented in the Help system:
DIAdem.ToDataSheet
DIAdem.ToCommand
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • Sql Loader by using shell script, not able to insert data

    Hi,
    I am trying to dump the data by using shell script.(in shell script i am having sqlldr command)(its a host excutable method cocurrent program)
    When i am loading the data, by placing my files(.ctl,.prog,.csv,symbolink file for .prog) in $Custom_top/bin, it is loading exactly. 17000 records inserted.
    But if i am loading the data by placing my files in $custom_top/custom_folders. unable to insert total data. only 43 records inserting.
    Please any one can help me.
    Thanks in advance.
    Rama.

    Srini, Thanks a lot for ur reply,
    Oracle Apps version R12,
    Microsoft windows XP profissional
    Version 2002 service Pack 3
    My Control file Script is:
    load data
    infile '$XADP_TOP/data/CPIU/in/XXOKS_Price_Increase.csv'
    append
    into table XXOKS_CONTRACT_PRICE_INCR_DTLS
    fields terminated BY ',' optionally enclosed by '"'
    TRAILING NULLCOLS
    (EXCLUSION_FLAG,
    LEGACY_NUMBER,
    CUSTOMER_NUMBER,
    CUSTOMER_NAME,
    REQUEST_ID,
    CONTRACT_NUMBER,
    CONTRACT_START_DATE,
    CONTRACT_END,
    REQUEST_LINE_ID,
    LINE_START_DATE,
    LINE_END_DATE,
    ITEM_NUMBER,
    ITEM_DESCRIPTION,
    UNIT_PRICE,
    QTY,
    NEW_UNIT_PRICE,
    LINE_AMOUNT,
    NEW_LINE_AMOUNT,
    PRICE_INCREASED_DATE,
    PERCENTAGE_INCREASED,
    ORIGINAL_CONTRACT_AMOUNT,
    NEW_CONTRACT_AMOUNT,
    PRICE_INCREASE_AMOUNT)
    My .prog File is: Please fidn that i created symbolink file also for my .prog.
    if [ -z $XADP_TOP ];then
    echo "XADP_TOP environment variable is not set!"
    exit 1
    fi
    cd $XADP_TOP/data/CPIU/in
    DATE=`date +%y%m%d:%H%M`
    i_program_name="$0"
    i_ora_pwd="$1"
    i_user_id="$2"
    i_user_name="$3"
    i_request_id="$4"
    i_ftp_host_name="$5"
    i_ftp_user_name="$6"
    i_ftp_user_password="$7"
    ftp_prog() {
    # FTP Function to reuse the FTP Commands
    if [ $# -ne 6 ];then
    echo "Usage : ftp_prog <Hostname> <User name> <Password> <Remote Directory> <command> <filename>"
    exit 2
    fi
    l_ftp_host_name="$1"
    l_ftp_user_name="$2"
    l_ftp_user_password="$3"
    l_ftpdir="$4"
    l_ftp_command="$5"
    l_ftp_filename="$6"
    ftp -v -n ${l_ftp_host_name} <<EOF
    user ${l_ftp_user_name} ${l_ftp_user_password}
    ascii
    cd ${l_ftpdir}
    ${l_ftp_command} ${l_ftp_filename}
    quit
    EOF
    #exit $?
    # setting the ftp directory
    #ftpdir="/`echo ${TWO_TASK:-$ORACLE_SID}|tr "[A-Z]" "[a-z]"`/CPIU"
    ##ftpdir="/FinTEST/quoting/PS/ar"
    ftpdir="$XADP_TOP/data/CPIU/in"
    # setting the in directory and out directory
    indir="$XADP_TOP/data/CPIU/in"
    outdir="$XADP_TOP/data/CPIU/out"
    ftp_prog ${i_ftp_host_name} ${i_ftp_user_name} ${i_ftp_user_password} ${ftpdir} get XXOKS_Price_Increase.csv
    echo $ftpdir
    echo "Converting the data file into unix mode"
    dos2unix XXOKS_Price_Increase.csv XXOKS_Price_Increase.csv
    chmod 777 XXOKS_Price_Increase.csv
    cd $XADP_TOP/bin
    echo "Trying to excute sqlldr and entering into the into control file"
    $ORACLE_HOME/bin/sqlldr userid=$i_ora_pwd control=XXOKS_PRICE_INCR_LOAD log=$XADP_TOP/log/XXOKS_PRICE_INCR_LOAD_${DATE}.log;
    exit_status=$?
    echo "Checking the status and giving permissions to the data file which in in dir"
    if [ $exit_status -eq 0 ]; then
    cd $XADP_TOP/data/CPIU/in
         chmod 777 XXOKS_Price_Increase.csv
    echo "try to move data file into out dir"
    # Moving the file to out directory
    mv XXOKS_Price_Increase.csv ${outdir}/XXOKS_Price_Increase.csv_${DATE}
    #echo "ready to zip file in out dir step6"
    # Zipping the file
    #gzip -f ${outdir}/XXOKS_Price_Increase.csv_${DATE}
    echo "deleting the file which is in dir"
    # Deleting the file from in directory
    /bin/rm -f ${indir}/XXOKS_Price_Increase.csv
    # Deleting from the remote directory
    ftp_prog ${i_ftp_host_name} ${i_ftp_user_name} ${i_ftp_user_password} ${ftpdir} delete XXOKS_Price_Increase.csv
    echo "sqlloader finished successfully."
    else
    echo "Error in loader"
    ##echo "Loader error in Price Increase Detials File ${i_file}"
    fi
    exit $exit_status
    And My Log file Comments are
    SQL*Loader: Release 10.1.0.5.0 - Production on Thu Dec 3 01:32:08 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Control File: XXOKS_PRICE_INCR_LOAD.ctl
    Data File: /oesapp/applmgr/GIS11/apps/apps_st/appl/xadp/12.0.0/data/CPIU/in/XXOKS_Price_Increase.csv
    Bad File: XXOKS_Price_Increase.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table XXOKS_CONTRACT_PRICE_INCR_DTLS, loaded from every logical record.
    Insert option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    EXCLUSION_FLAG FIRST * , O(") CHARACTER
    LEGACY_NUMBER NEXT * , O(") CHARACTER
    CUSTOMER_NUMBER NEXT * , O(") CHARACTER
    CUSTOMER_NAME NEXT * , O(") CHARACTER
    REQUEST_ID NEXT * , O(") CHARACTER
    CONTRACT_NUMBER NEXT * , O(") CHARACTER
    CONTRACT_START_DATE NEXT * , O(") CHARACTER
    CONTRACT_END NEXT * , O(") CHARACTER
    REQUEST_LINE_ID NEXT * , O(") CHARACTER
    LINE_START_DATE NEXT * , O(") CHARACTER
    LINE_END_DATE NEXT * , O(") CHARACTER
    ITEM_NUMBER NEXT * , O(") CHARACTER
    ITEM_DESCRIPTION NEXT * , O(") CHARACTER
    UNIT_PRICE NEXT * , O(") CHARACTER
    QTY NEXT * , O(") CHARACTER
    NEW_UNIT_PRICE NEXT * , O(") CHARACTER
    LINE_AMOUNT NEXT * , O(") CHARACTER
    NEW_LINE_AMOUNT NEXT * , O(") CHARACTER
    PRICE_INCREASED_DATE NEXT * , O(") CHARACTER
    PERCENTAGE_INCREASED NEXT * , O(") CHARACTER
    ORIGINAL_CONTRACT_AMOUNT NEXT * , O(") CHARACTER
    NEW_CONTRACT_AMOUNT NEXT * , O(") CHARACTER
    PRICE_INCREASE_AMOUNT NEXT * , O(") CHARACTER
    value used for ROWS parameter changed from 64 to 43
    Table XXOKS_CONTRACT_PRICE_INCR_DTLS:
    43 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 255162 bytes(43 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 43
    Total logical records rejected: 0
    Total logical records discarded: 0
    Run began on Thu Dec 03 01:32:08 2009
    Run ended on Thu Dec 03 01:32:08 2009
    Elapsed time was: 00:00:00.19
    CPU time was: 00:00:00.04
    Plz srini help me.
    Thanks in advance
    Rama..

  • Can't use jHeadStart10.1.2 to refresh the data?

    I set "JSP" in view type of jHeadStart10.1.2(Developer version 10.1.2).
    It couldn't refresh data in the jsp page when I updated the data in the database.
    And two different ViewObject(jsp page) using the same EntityObject had the same problem.
    It was mean when I updated one of them, the other couldn't refresh at the same time.
    But the same problem didn't occur in jHeadStart9.0.5.1.
    Did anything need to set up?
    Thanks for your help.
    HorngDar

    HorngDar,
    I think that what you are running into is the 'caching' of data in ADF BC. By default, ADF will query all iterators in the UIModel needed to show the page, but once an iterator is queried, it will not be queried again unless you write specific code in your DataAction to do so. So if the data in your database can change through other means than the ADF application itself, you should include code to always query the iterator yourself.
    The best place to do that is in the prepareModel() method:
    protected void prepareModel(DataActionContext daContext) throws Exception
    super.prepareModel(daContext);
    // Force executeQuery on an iterator
    JUIteratorBinding ib = getBindingUtils().findIterBinding(daContext.getBindingContainer(), "<youriteratorname>");
    if (ib != null)
    ib.getRowSetIterator().getRowSet().executeQuery();
    else
    log.error("Iterator not found, check the name");
    This is just an example, which assumes there is only one iterator for which changes on the database may occur. You could write more generic code to query all the IteratorBindings in the current UIModel, but of course there are performance impacts so I would suggest to do this as little as possible.
    Hope this helps,
    Peter Ebell
    JHeadstart Team

  • Using SAP BI front-end on external data sources

    We are currently reviewing the BI technical strategy at our organisation and SAP BI is in the running where we have a need to cover more data sources than just R/3.
    Because of the investment made in building other reporting databases, in the short to medium term we are considering using SAP BI as the front-end.
    I have built a Virtual InfoProvider using DTP on a SQL Server database, and initial findings are interesting.
    I would also like to consider other methods of using SAP BI as a front-end, and this post is a plea for further options.
    Some of the existing reports that we need to replace would be based on views in the database, whereas others are driven by result sets from stored procedures.
    I am curious about where all the effort is made, for example, will all the filtering be applied at source or back in BW?
    Will a user-entry variable allow a lookup to the source?
    We have recently upgraded to NW2004s, although we have not implemented the Java Stack .... yet.  We intend to complete the implementation by May 2008.
    I would welcome any suggestions you might have, or if you are able to point me to further sources of information.
    Ian.

    The Web Analyzer within BI 7.0 JAVA run time can go against XMLA datasources (eg: MS Analysis Services) configured within EP system.
    Visual Composer available within Ep 7 can go against any JDBC sources (Web Analyzer will have this functionality in the future.).

  • Project Server 2013 - External Data Refresh Failed

    Hi, 
    I have built  new Project Server 2013 in a 3 tier farm, with OWA, configured PWA site everything working fine except, Reports in BI Center, where i am getting - External Data Refresh Failed error
    http://Sp2013/PWA/ProjectBICenter/Sample%20Reports/Forms/AllItems.aspx
    i have stopped using Excel Web also to use Excel Services, get below error
    External Data Refresh Failed
    An error occurred while accessing application id ProjectServerApplication from Secure Store Service. The following connections failed to refresh:
    Project Server - Issue Data
    Project Server - Risk Data
    Learn
    more about data refresh
    Steps Tried:
    1.deleted Excel Services - recreated
    2.Deleted Secure store - recreated
    Built  test box without OWA still have the same issue
    Any suggestions/ Solutions greatly appreciated.
    Thanks 
    Aleem
    Alim

    Hi,
    If you are still facing the same issue follow the below steps:
    1) Access PWA from your server
    2) Download any built in report from Reports section (in your case
    Project Server - Issue Data Project
    Server - Risk Data) to your server.
    3) Open report in excel, go to Data->Connections in Workbook Connection dialog open "Project Server - Issue Data" go to properties.
    4) Here select tab 'Definition' under connection file remove tick for 'Always use connection file'
    5) Tweak your connection string & tick save password option 
    6) Excel Services: Authentication Settings (suit yourself)
    Now, save & publish on PWA, hope it works :)

  • Auto refresh of data in Cube

    Hi,
    I created a cube and deployed with data, also viewed. I changed data in oracle table, from which the cube was prepared, but the change in the data did not appear in cube. Is there a property (auto refresh or auto update) associated with cube / App / database in EAS which can be turned on?
    Kindly advice.
    Thanks and regards,
    Veeranna Ronad.
    Edited by: Ronad on Feb 17, 2010 10:46 AM

    Can we connect to Oracle database using MaxL commands?^^^As Srinivas pointed out, you need to use the MaxL command "import" to load data into Essbase.
    See http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/maxl_imp_data.htm for more detail on how to do this. You'll see that it can load from SQL -- you will need to use a data load rule. See http://download.oracle.com/docs/cd/E12825_01/epm.111/eashelp/loading.htm and http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_dbag/ddlintro.htm for more information on data load rules.
    Importing a large table data on certain interval makes system and application very slow.^^^Do you have to reload all of the data? Can you just load the differences?
    How many records are you loading?
    Regards,
    Cameron Lackpour

  • How to get latest added file from a folder using apple script

    Hi..
    I am trying to get a latest added file from a folder..and for this i have below script
    tell application "Finder"
        set latestFile to item 1 of (sort (get files of (path to downloads folder)) by creation date) as alias
        set fileName to latestFile's name
    end tell
    By using this i am not able to get latest file because for some files the creation date is some older date so is there any way to get latest file based on "Date Added" column of a folder.

    If you don't mind using GUI Scripting (you must enable access for assistive devices in the Accessibility System Preference pane), the following script should give you a reference to the last item added to any folder. Admittedly not the most elegant solution, but it works, at least under OS X 10.8.2.
    set theFolder to choose folder
    tell application "Finder"
        activate
        set theFolderWindow to container window of theFolder
        set alreadyOpen to exists theFolderWindow
        tell theFolderWindow
            open
            set theInitialView to current view
            set current view to icon view
        end tell
    end tell
    tell application "System Events" to tell process "Finder"
        -- Arrange by None:
        set theInitialArrangement to name of menu item 1 of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
        keystroke "0" using {control down, command down}
        -- Sort by Date Added:
        set theInitialSortingOrder to name of menu item 1 of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
        keystroke "4" using {control down, option down, command down}
        -- Get the name of the last item:
        set theItemName to name of image 1 of UI element 1 of last scroll area of splitter group 1 of (window 1 whose subrole is "AXStandardWindow")
        -- Restore the initial settings:
        click menu item theInitialSortingOrder of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1
        click menu item theInitialArrangement of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1
    end tell
    tell application "Finder"
        set current view of theFolderWindow to theInitialView -- restore the initial view
        if not alreadyOpen then close theFolderWindow
        set theLastItem to item theItemName of theFolder
    end tell
    theLastItem
    Message was edited by: Pierre L.

  • BCS: Pass a filter based on current SPSite to ReadList method from External Data Picker on list item form

    Hi,
    I am using a BCS model to get external data. I have set this up with filters and it works fine. What I would like is to assign a filter value based on the current SharePoint site. This is because I have multiple SharePoint sites that use the same BCS model,
    but the user only needs to see certain records per each site. I have found ways to do this by adding and connecting web parts to a custom page. However, my particular need is to do this for the external item picker that pop up on the list item new and edit
    form.
    I hope my question is clear and look forward to your answers. Please not that this question is specifically related to the external data picker on the new and edit form.
    Regards,
    Andreas

    Hi Andreas,
    Thanks for posting your issue, Kindly find the CAML query that you can use to pass the filter value based on your SPSite 
    <View>
    <Method Name='ReadList'>
    <Filter Name='ABCName' Value='{0}'/>
    </Method>
    <Query>
    <Where>
    <Contains>
    <FieldRef Name='Name'/>
    <Value Type='Text'>{0}</Value>
    </Contains>
    </Where>
    </Query>
    <ViewFields>
    <FieldRef Name='Name'/>
    <FieldRef Name='Id'/>
    <FieldRef Name='BdcIdentity'/>
    </ViewFields>
    </View>
    Be sure to replace the filter Name attribute value with your own FilterDescriptor name as defined in BCS model and Value attribute with your own value.
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Invoke script command error

    Hello,
    Environment:
    VMM Cluster 2012 R2
    2x Windows Server 2012 R2 + Hyper-V Role
    We are using "Run Script Command" (Powershell: Invoke-SCScriptCommand) for customizations on the Hyper-V hosts, but recently it's the VMM Server reporting an error.
    Invoke-SCScriptCommand Parameters:
    Executable programm: C:\Windows\System32\WindowsPowershell\v1.0\Powershell.exe
    Parameters: -File "Script.ps1" -ExecutionPolicy Bypass -WindowStyle Hidden
    Script Resource package: name.cr
    Run As Account: User with Domain Admin permissions
    Error (22029)
    VMM could not create a process for the script command C:\Windows\System32\WindowsPowershell\v1.0\Powershell.exe.
    Either a required impersonation level was not provided, or the provided impersonation level is invalid (0x80070542)
    Recommended Action
    Verify the script command settings, then try operation again.
    The problem appears after installing the "Security Update for Microsoft Windows (KB3000483)" on the Hyper-V hosts.
    http://support.microsoft.com/kb/3000483
    When I am using the builtin Domain Administrator "domain\Administrator" the error doesn't occur.
    Did anyone got the same issue?
    Thanks,

    Only one way I've found around this:
    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
    This disables LUA prompting. Which is what is breaking running the CMD.exe.  You can't add -RunAS to your powershell script because you are not even getting that far.
    Turn LUA back on after your service template deployment completes by running.
    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
    (Then RESTART the server through script, as it requires a reboot)
    You can add this into your unnattend also.  (Which will be in the right context to run during the OS Install Process)
    <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
    You can find the complete set of LUA registry settings at:
    https://technet.microsoft.com/en-us/library/dd835564%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396#BKMK_AdminPromptBehavior
    Cheers, Chris Shockey - Cloud Architect (Microsoft) - Cisco Systems

  • External Data Refresh Failed. We cannot locate a server to load the workbook Data Model. ThisWorkBookDataModel

    Hi All,
    I have been trying to fix this for days now. I have tried solutions in many articles but to no avail. So while the error message is something you may have seen may times, I just can't find a solution in my case.
    This is the error:
    And in text just in case the image isn't viewable:
    "External Data Refresh Failed. We cannot locate a server to load the workbook Data Model. We were unable to refresh one or more data connections in this workbook. The following connections failed to refresh: ThisWorkBookDataModel."
    What is worse is I have checked the ULS (SharePoint Trace Logs), the Event Viewer Logs and the OWA Logs and I cannot find a specific error that would help pin point the problem.
    Excel Workbook
    So what am I doing? I have an Excel 2013 workbook and I create an "SQL Server" connection to the AdventureWorksDW database, add a pivot table and a pivot chart, test in in Excel and all works fine.
    I save the Excel workbook to SharePoint 2013 and then select "Data" then "Refresh All Connections" and then I get the error in the picture above.
    Even more puzzling is I have another Excel workbook that also has pivot tables and pivot charts in the AdventureWorksDW2012Multidimensional cube database in "SQL Analysis Services" and this works fine. Hmmm.
    My Environment
    My environment is Windows 2008 R2 Server, SharePoint 2013 with the April Service Pack1 and a separate server with OWA2013 SP1. It has an SQL Server 2008 R2 database which has been upgraded to SQL Server 2012.
    Data Model Settings
    In Excel Services this is set to my server name which is "server-name". As I do not have instances all I can enter is the server name. As this works everywhere else including the workbook outside of SharePoint I do not think this is the problem.
    But I could be wrong.
    Unattended Account
    I have set this up for the PowerPivot Services App and Excel Services App.
    ODC Connections in Excel
    I have tried all 3 authentication modes, Windows, Secure Store ID and "None" which is the unattended account. I have not tried the other connection types, should I?
    Not in WOPI
    I am not in WOPI mode.
    AD Accounts
    I have added permissions in the SharePoint Services and SQL Server, and as they work in Excel outside of SharePoint, I do not think it is a permissions issue. I could be wrong of course, but the problem is in one of SharePoint, OWA, AD,
    SQL Server, Excel, and Windows Server.
    Isolate the Error
    Below is a list of errors I think are relevant but they do not tell me much. The SharePoint logs are not really giving me an error that tells me what to do and where to do it, or even why it cannot refresh, (perhaps not noticeable by the untrained eye).
    Problem with SQL Server Not Analysis Services
    So my cube database in analysis services works fine in SharePoint/OWA but not the databases in sql server. This is my best clue but I have no idea what it means. Why would it work with an Analysis Services connection but not an "SQL Server" connection?
    It Works Outside of SharePoint
    If I run the excel worksheet outside of SharePoint all works fine. When inside OWA this is where the refresh error occurs.
    Errors from Event Viewer on SharePoint Server using ULS Viewer
    "Failed to create an external connection or execute a query. Provider message: There are no servers available or actively being initialized., ConnectionName: , Workbook:"
    "Refresh failed for 'ThisWorkbookDataModel' in the workbook 'http://server...'. [Session: 1.V22.26itT0lx8piNFeqtuGVhN214.5.en-US5.en-US36.98c0e158-9113-46e9-850e-edda81d9ed1c1.A1.N User: 0#.w|ad\testuser1]"
    And an error in the ULS under the "Data Model" category:
    "--> Check Deployment Mode (server-name): Fail (Expected: SharePoint, Actual: Multidimensional)."
    This last error, as it turned out, defined the problem concisely, although I was yet to work out what it meant in some detail.

    I finally solved this myself (or should I say with the help of several key articles).
    The refresh did not work because the database was not in "SharePoint Mode". Yes, SQL Server has modes, 3 of them in fact.
    If you installed SharePoint to the default SQL instance which would be called <servername> then you cannot use this default instance for Excel 2013 workbooks in OWA 2013 because the refresh only works if the database is in SharePoint mode.
    So what are these 3 modes? The Deployment Mode property in the msmdsrv.ini file has them as:
    0 = Multidimensional mode (the default whenever you install SQL Server normally)
    1 = PowerPivot for SharePoint mode
    2 = Tabular mode mode
    How do you know what mode you are in? That's easy, open SQL Studio Manager and connect to all your SQL database engine instances (ignore Analysis Services or SSRS as they are not database engines). If you only have the default instance then that is almost
    definately in Multidimensional mode which is the default and what SharePoint installs its databases to.
    You must have an instance called <servername>\POWERPIVOT. This instance is the "sharepoint mode" needed, and the default instance name when you install an SQL instance in this mode.
    If you don't see <servername>\POWERPIVOT in SQL server then you are not in "sharepoint mode". It is more accurate to say, you do not have an instance that is in sharepoint mode. This is because you cannot simply switch modes on an SQL server.
    You have to install a new instance in the required mode, thats the only way.
    That's easy enough. Load up the SQL Server setup CD and run setup. Install a brand new instance and select "SQL Server PowerPivot for SharePoint" when you get there in the wizard.
    Now you will have the default instance that stores all the SharePoint databases and that is in mode 0, and a new instance called <servername>\POWERPIVOT that is in mode 1. The "<servername>\POWERPIVOT" instance connection is what you
    will use for Excel 2013 when rendering in OWA 2013.
    You also need to ensure OWA 2013 is not in WOPI mode for Excel worksheets. See the last link below for more information about WOPI.
    Next you should go to the Excel Service App in CA and click Data Model Settings and add the <servername>\POWERPIVOT instance.
    Then you have to either turn off the firewall on the SQL server machine, or create an inbound rule on the Windows firewall to open the TCP port for the <servername>\POWERPIVOT instance:
    1. Start Task Manager and then click Services to get the PID of the MSOLAP$InstanceName.
    2. Run netstat –ao –p TCP from the command line to view the TCP port information for that PID.
    Finally, you can now create Excel 2013 workbooks that run in OWA without refresh errors, as long as you are connecting to the <servername>\POWERPIVOT instance. Hooray.
    REFERENCES
    Look for the string "There are no servers available or actively being initialized" in this article:
    http://blogs.msdn.com/b/analysisservices/archive/2012/08/02/verifying-the-excel-services-configuration-for-powerpivot-in-sharepoint-2013.aspx
    Determine the server mode:
    http://msdn.microsoft.com/en-au/library/gg471594(v=sql.110).aspx
    Install the SharePoint PowerPivot instance (aka SharePoint mode)
    http://msdn.microsoft.com/en-au/library/eec38696-5e26-46fa-bc83-aa776f470ce8(v=sql.110)
    Open the port for the new SQL instance:
    http://msdn.microsoft.com/en-us/library/ms174937(v=sql.110).aspx
    Turn Off WOPI for Excel OWA
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/01/31/powerpivot-for-sharepoint-browser-refresh-fails-data-refresh-not-supported-in-office-web-apps.aspx

  • External Data Refresh failed - Unable to refresh list data in Excel Web Access WebPart

    Hi,
    I have created a PivotChart in Excel workbook that fetches data from a SharePoint list using "OData Data Feed". When refreshing the connection in Excel 2013, the updated data is displayed in PivotChart. But when i upload the same to a SharePoint
    Library and refresh it through Excel Web Access WebPart, it throws an error.
    After configuring PowerPivot for SharePoint, i am getting a "We cannot locate a server to load the Data Model" error.
    Note -
    SQL Analysis Service(PowerPivot) is in running state.
    PowerPivot Server has been under Data Model in Excel Service setting.
    The library location is added in trusted zone.
    Using secure store didn't fix the issue.
    Stack Exception
    SSPM: Initialization failed on server : Microsoft.AnalysisServices.ConnectionException: A connection cannot be made. Ensure that the server is running. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively
    refused it 127.0.0.1:2383 
        at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) 
        at Microsoft.AnalysisServices.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)     --- End of inner exception stack trace --- 
        at Microsoft.AnalysisServices.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo) 
        at Microsoft.AnalysisServices.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo) 
        at Microsoft.AnalysisServices.XmlaClient.OpenConnection(ConnectionInfo connectionInfo, Boolean& isSessionTokenNeeded) 
        at Microsoft.AnalysisServices.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession) 
        at Microsoft.AnalysisServices.Server.Connect(String connectionString, String sessionId, ObjectExpansion expansionType) 
        at Microsoft.AnalysisServices.Streaming.OnPremise.Server.Connect(Nullable`1 ctx, Boolean schedulePingTaskOnFailure) 
        at Microsoft.AnalysisServices.Streaming.OnPremise.Server.Initialize(Guid serviceId, CancellationToken ctx) 
        at Microsoft.AnalysisServices.Streaming.OnPremise.Tasks.InitializationTask.Run(CancellationToken ctx)
    Check Server Version (ServerName\POWERPIVOT): Fail (Expected:
        =11.0.2800.0, Actual: 11.0.2100.60).
        --> Check Deployment Mode (ServerName\POWERPIVOT): Pass.
        Monitorable Check Server Configuration (ServerName\POWERPIVOT): Fail (Uninitialized, ConfigurationError, WrongVersion).
        SSPM: Initialization failed on server ServerName\POWERPIVOT: Microsoft.AnalysisServices.Streaming.ServerConfigurationException: Server ServerName\POWERPIVOT failed configuration checks (Status = Uninitialized, ConfigurationError, WrongVersion).
    at Microsoft.AnalysisServices.Streaming.OnPremise.Server.AssertServerConfiguration(Server amoServer, CancellationToken ctx) at Microsoft.AnalysisServices.Streaming.OnPremise.Server.Initialize(Guid serviceId, CancellationToken ctx) at Microsoft.AnalysisServices.Streaming.OnPremise.Tasks.InitializationTask.Run(CancellationToken
    ctx)
    Thanks,
    Thomas Mathew

    Hi,
    For your issue, the possible reason is that the SharePoint environment does not have a PowerPivot for SharePoint server, or the SQL Server Analysis Services (PowerPivot) service is stopped.
    Install PowerPivot for SharePoint or move the PowerPivot workbook to a SharePoint environment that has PowerPivot for SharePoint installed.
    If the software is installed, verify that the SQL Server Analysis Services (PowerPivot) instance is running. Check Manage services on server in Central Administration. Also check the Services console application in Administrative Tools.
    Refer to the following link:
    http://msdn.microsoft.com/en-us/library/ff487858.aspx
    Besides, here is a similar post, you can use as a reference:
    https://social.technet.microsoft.com/Forums/en-US/2e728b3e-6d3d-497b-b0ce-57f2699710e5/access-was-denied-by-the-external-data-source-the-following-connections-failed-to?forum=sharepointadminprevious
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Powerpivot 2012 on Excel 2010 - External Data connections not saving passwords, having to re-enter password EVERYTIME I refresh data

    Hey Guys,
    Using Excel 2010 with latest version of Powerpivot 2012 available 11.1.3129.0
    For my SQL Server Data connections in Powerpivot I DO NOT have any issue, when clicking refresh it never asks me to enter a password and uses my Windows AD info.
    However, for my plethora of other external data connections (Informix, Oracle, Etc...) that I would like to have fluid use within Powerpivot, big problems.
    Lets start with Oracle. Below is a screenshot of my connection tab within Powerpivot.
    So as you can see, all the details are entered and Allow Saving Password is selected. Now I will close out of Powerpivot and Excel completely and re-open. I will navigate to the Powerpivot tab
    and select Powerpivot Window. And then will select to "Refresh All" and am quickly prompted with the "Data Source Credentials" window to re-enter my data source password, again.
    What I have already tried. The above method for starters in which I use a connection string under Table Import Wizard --> Others (OLEDB/ODBC)... I found it the least annoying route, although
    still have to re-enter password everytime, which is what I hope this forum can help with.
    I also have tried doing a direct Oracle connection in Table Import Wizard but also does not eliminate my #1 problem.
    I have also created an ODC file to try and use that with stored credentials within the file, also still asks for password each and everytime.
    The same thing happens with my other data connections to Informix and DB2. So any help and/or suggestions anyone has would be great. I also cant upload these powerpivots to our powerpivot gallery
    on SharePoint 2010, I have a sneaking suspicion it is due to the version of powerpivot I am currently using.
    Thanks

    Hi there,
    My company is not using Excel 2013, only 2010. So that is what I have to work with. From what I have read this is a huge hole in the Powerpivot 2012 framework and is extremely frustrating. This seems so basic and simple and like something everyone using
    this product would use, and yet it still doesnt work.
    Great feedback. Connect is the right place for this feedback on 2010 as well. Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • "External Data Refresh Failed" in Excel Workbook in SharePoint 2013

      Hi Everyone,
    I hope someone can help me sort this out. I wasn't sure if this should be submitted to SQL Server 2012 or SharePoint 2013 but I think I have ruled out an actual SQL issue here.
    I have a test SharePoint 2013 Farm installed on one server.  On that server we have SQL Server 2012 Standard (Database Engine Only) installed as one instance for SharePoint 2013.  SharePoint 2013 is installed as Enterprise. 
    On another server I have SQL Server 2012 Enterprise installed I have both the Database Engine and Analysis Services installed on that server in one Instance.
    I have created a new Analysis Services Cube and stored in on that server using VS 2012 Data Tools.   I then use Office 2013 Excel and create a new Pivot Table and bring in that data into that workbook.  I save that workbook to my desktop and
    can click on the DATA tab and do a "Refresh All" and the data is refreshed with no problem. 
    I then Save that Workbook to SharePoint 2013 in my Business Center documents library. I then try to do a Data Refresh and get the following error: External Data Refresh Failed. We were unable to refresh one or more data connections in the workbook. The following
    connections failed to refresh: servername ConnectionName.
    Let me tell you a little bit about how I have my SharePoint 2013 setup.
    In Application Management ==> Secure Store Service - I have a Target Application Id setup with an AD account name and password.
    In Application Management ==> Excel Services Application Settings - I an using an Unattended Service Account that is pointing to the Target Application ID that I setup in Secure Store Service.
    Now in SQL Server 2012. I have made the AD account name and password a SYSADMIN account (because nothing seemed to work) and mapped that login to my Database that I created my cube from.
    I have went into the Properties of my Analysis Server on SQL Server 2012 and out that AD userid in the Security Page as a Server Administrator. 
    Now let me tell you the real kicker here. 
    I also have a Sharepoint 2010 farm that we have been testing for about a year.  This is something we wanted to go into production with but now have decided we will deploy our new production site on 2013. 
    This has the same setup only I am using SQL Server 2008 R2 as my database for SharePoint 2010, and am using SQL Server 2008 R2 on another server and instance for Database Engines and Analysis Server. 
    I have already created a cube on the SQL 2008 r2 Analysis Server using BIDS.
    I created a Excel Pivot Table based on that cube and save it to the SharePoint 2013 site.  
    I then put the SSS AD account name on the SQL Server 2008 Analysis Services Security as Administrator.
    I pull up that Excel Workbook and go into Data and do a Refresh All and it works. 
    I then bring up my copy of the Excel workbook I created for my SQL Server 2012 Cube (this does not work on SP 2013) and save it to my Business Center in SP 2010.  This will do a DATA Refresh on that workbook.
    Another thing that I have done, (we have Office Web Apps Server running on the SP 2013 side), is set SPWOPISuppressSetting -view -extension xlsx so that when I bring up the Excel spreadsheet in 2013 it has a url with the xlviewer instead of the WOPI 
    url.
    OK.  I have went through all of my setup.   I am must wondering if I missed something in my install for this.  HELP.   There can't be that much difference in the installation between 2010 and 2013. 
    Thanks in Advance everyone.

    After many hours of research and totally burning down my SQL Server 2012 server because of the many changes I made to it, I finally found the issue that caused this and specifically why SP would not work with SQL Server 2012 Analysis Services.  This
    time I reinstalled SQL Server 2012 from scratch again but only put SP1 on at this time.  I can't be completely sure this fixed the issue since I have not put any of the other CU  on the box.  But, after the reinstall, everything seemed to work
    perfectly from the Excel Services side.
    The issue I then ran into was that I could not get my PerformancePoint Services to work with my Cubes that were created on SQL Server 2012.  I received Error Message " The DataSource Provider for data sources of type 'ADOMD.NET' is not registered" on
    my SharePoint 2013 Server Event Viewer. 
    I finally found this post on the issue: 
    http://yossidahan.wordpress.com/2012/08/14/cant-get-ssas-databases-to-appear-in-performance-point-dashboard-designer-check-you-adomd-net-version/
    Seems that SP 2013 is built to use SQL Server 2008 R2 Analysis Services, so you need to install the ADOMD.net from SQL Server 2008 in order for it to work.   But make sure you install Version 10 since if you install any other it doesn't seem to
    work. 
    I feel like I wasted a whole month tracking these issues down, and I haven't been able to test PowerView, PowerPivot or SSRS yet.  I hope there is not any more. 

  • Can I script the changing of creation date, using the file name?

    Normally people are doing this in reverse, but let me paint the picture.
    I pulled 204 video files from an old HDD based JVC camera.  JVC records in .MOD format which iPhoto won't import.  I imported them into iMovie just fine, and iMovie even set the file name to clip-2007-11-04 04;42;29.mov which is great, but it now has a new creation date of whatever date I imported it.  Which then causes problem when I want the videos stored in iPhoto and sorted appropriately by creation date.
    I've used the application "A Better Finder Attributes 5" to individually edit the creation and modify, but I'm sure I don't want to do this 203 more times, as you can't just type in the date and time, you have to type in each part of the date/time, or select it on a calendar.
    I've used the application "Name Changer" to batch convert the file names to the format YYYYMMDDhhmm which would be helpful if I were going to use the terminal command touch -t, but again I don't want to have to type it in 203 more times, plus drag and drop the file into finder to populate the location.
    Now, if I were more handy with automator, or maybe some (any) scripting language this would be easy peasy.  I'd batch rename all the files to the YYYYMMDDhhmm.mov and then have a script that just took the file name, passed that to touch -t along with the file location, and a few seconds later, they would all be done!
    Anybody have any suggestions to how I can do this, and tips to what commands to use or ANY advice?  I'm more than happy to RTFM, but I have no idea which manual to read!
    Thanks

    If your file names are precisely as you have written, this script will do what you want.
    Copy the script into an AppleScript Editor document, select one or more files in a Finder window, return to the AS Editor and press Run.  Note: you will need to provide your password when the script runs.
    Make sure you have a backup of any files you are working on (try using duplicates first, perhaps). The script has no error handling.
    tell application "Finder"
              set FileList to selection
              repeat with theFile in FileList
                        set fileName to name of theFile
                        set filePath to quoted form of (POSIX path of (theFile as alias))
                        set crYear to text 6 thru 9 of fileName
                        set crMonth to text 11 thru 12 of fileName
                        set crDay to text 14 thru 15 of fileName
                        set crHour to text 17 thru 18 of fileName
                        set crMins to text 20 thru 21 of fileName
                        set crDate to crYear & crMonth & crDay & crHour & crMins
                        set shellString to "touch -t " & crDate & " " & filePath
      do shell script shellString with administrator privileges
              end repeat
    end tell

  • Excel data source and the use of add command

    HI, Looking for suggestions on how to work with multiple inputs that cannot be joined directly.  Here's the background.
    The Report currently reads in two different Ecel files and uses 3 SQL commands to query an Oracle Database.  I need to join the 5 data sources and am having issues with the 2 excel files.  In one file I need to be able to derive a field based on another column in the file In order to create the join condition to the SQL commands.  I'd equate this to a case statement in SQL, but how goes one do that using the 'add command' feature?  What is the syntax?
    Next I would need to join (left outer) the two excel files using two fields from file A (a1, a2) and 3 fields from file B (b1,b2,b3), where a1=b1 and b2 <= a2  <= b3 when rows from A exist in B.  If row A does not exist in B then we still want it in the report and available to left outer join to the 3 oractab data sources.
    runtime is also a concern.
    Any Suggestions?

    hi Elena,
    in this case the use of subreports is not recommended. that's because you're exporting to excel and you need data in columns across the report. subreports will not, unfortunately, give you what you need.
    this would bring you back to joining the datasources. what i would recommend is looking into using 'oracle database link' to link your oracle db to excel files. here's one article as an example but you may be able to find a better one. if you have questions on this please ask them on an oracle forum as the syntax that you need will be database specific.
    a lot of databases have this type of technology which allows you to create a view to other data. sql server has 'linked servers', sap hana has 'smart data access'. essentially you are creating a non-materialized view to the external data. then this view is available on the main oracle server where you established this connection. this should be a lot easier than trying to bring a bunch of command objects together off independent datasources inside of crystal.
    -jamie

Maybe you are looking for