CL_GUI_CONTAINER data refresh problem.

Hi experts,
I am using below code in module pool programming. I want to refresh data in Cont for ALV or HTML at run time.
but it is not working, plz help?????
Code:
TABLES: vbrk.
TYPES : BEGIN OF ty_html,
         dataset(255) TYPE c,
         END OF ty_html.
DATA : splitter TYPE REF TO cl_gui_splitter_container.
DATA: cont TYPE REF TO cl_gui_container,
       html TYPE REF TO cl_gui_html_viewer,
       salv TYPE REF TO cl_salv_table.
DATA: it_data TYPE STANDARD TABLE OF vbrk,
       ts_data TYPE STANDARD TABLE OF ty_html,
       w_url   TYPE char255.
SELECTION-SCREEN : BEGIN OF SCREEN 1001.
PARAMETERS: rb_alv RADIOBUTTON GROUP rb1,
             rb_graph RADIOBUTTON GROUP rb1.
SELECT-OPTIONS : s_fkdat FOR vbrk-fkdat.
SELECTION-SCREEN END OF SCREEN 1001.
START-OF-SELECTION.
   IF splitter IS INITIAL.
     CREATE OBJECT splitter
       EXPORTING
         parent  = cl_gui_container=>screen0
         rows    = 2
         columns = 1
         align   = 15. " (splitter fills the hole custom container)
   ENDIF.
   IF cont IS NOT INITIAL.
     cont->free( ).
   ENDIF.
   CALL METHOD splitter->get_container
     EXPORTING
       row       = 2
       column    = 1
     RECEIVING
       container = cont.
   SELECT * FROM vbrk INTO TABLE it_data
     WHERE fkdat IN s_fkdat.
   IF rb_alv = 'X'.
     IF html IS NOT INITIAL.
       html->free( ).
     ENDIF.
     TRY.
         cl_salv_table=>factory(
           EXPORTING
             r_container    = cont
           IMPORTING
             r_salv_table   = salv
           CHANGING
             t_table        = it_data ).
       CATCH cx_salv_msg.                                "#EC NO_HANDLER
     ENDTRY.
   ELSE.
*** APPEND SOMETHING IN TS_DATA.
     IF html IS INITIAL.
       CREATE OBJECT html
         EXPORTING
           parent             = cont
         EXCEPTIONS
           cntl_error         = 1
           cntl_install_error = 2
           dp_install_error   = 3
           dp_error           = 4
           OTHERS             = 5.
       CALL METHOD html->load_data
         EXPORTING
*         url                  = w_url
           type                 = 'text'
           subtype              = 'html'
         IMPORTING
           assigned_url         = w_url
         CHANGING
           data_table           = ts_data
         EXCEPTIONS
           dp_invalid_parameter = 1
           dp_error_general     = 2
           cntl_error           = 3
           OTHERS               = 4.
       IF sy-subrc <> 0.
       ENDIF.
       CALL METHOD html->show_url
         EXPORTING
           url                    = w_url
           in_place               = 'X'
         EXCEPTIONS
           cntl_error             = 1
           cnht_error_not_allowed = 2
           cnht_error_parameter   = 3
           dp_error_general       = 4
           OTHERS                 = 5.
       IF sy-subrc <> 0.
       ENDIF.
       html->set_ui_flag( html->uiflag_no3dborder ).
     ENDIF.
   ENDIF.

Hi neran,
               before u split the container, u have to create the container.
create object cont                                           "Creating Docking Container
       exporting
     side                        = 4                                     "At Bottom
     ratio                       = 70
       exceptions
         cntl_error                  = 1
         cntl_system_error           = 2
         create_error                = 3
         lifetime_error              = 4
         lifetime_dynpro_dynpro_link = 5
         others                      = 6
     if sy-subrc <> 0.
       message id sy-msgid type sy-msgty number sy-msgno
                  with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
     endif.
"u have to pass the container name
   IF splitter IS INITIAL.
     CREATE OBJECT splitter
       EXPORTING
         parent  =  cont " pass the container name
         rows    = 2
         columns = 1
         align   = 15. " (splitter fills the hole custom container)
   ENDIF.
"Then u need another objects, which ref to  cl_gui_container, to get the splitted containers

Similar Messages

  • Data refresh problem - QaaWS and Tomcat cache

    Hi Experts,
    I have a problem with data refreshing in Xcelsius 2008 dashboard when I use QaaWS.
    System is: BO XI 3.1 on the Win2008 server.
    When data are changing in the database InfoView documents show it immediately, but into the Xcelsius dashboards new data not coming.
    In the dashboards I use auto refresh, and Refresh button too... It doesn't help.
    New data are appearing just after restarting of Tomcat.
    Maybe Tomcat is caching data...?
    Do somebody have similar issue? Could you suggest me something to do?
    Thx,
    János

    Hi Janos,
    Tomcat has cache which the default time is 60 seconds.
    You can change the cache time when you create QaaWS wsdl.
    If you do NOT want the cache, you can
    1. locate to: ${BOE Install Path}\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes
    2. Open dsws.properties
    3. Find the property qaaws.cache_dpresult.optim= and set it to false.
    4. Re-start tomcat.
    Hope this can help!

  • Data Refresh Problem

    Dear All
    Iam working in Forms 10g.
    I have a multi record Database block.
    I query the block and goes to (nth) 3rd record.
    I do a change in 3rd record which inturns updates one of the status field of the 2nd record as per the functionality but not displaying the changed status in the screen. I know that if i do a requery in post-commit of the block the screen gets refreshed.
    But i cannot write
    go_block('a'); --As i have multiple blocks in the form
    execute_query();
    in post-commit as go_block is a restricted procedure.
    So please help me and suggest me how to achieve this functionality.
    Thanks in advance.
    Sriram

    you can do it in the post-commit.
    it is restricted, but with my One-Time-Timer you can do it:
    in my blog is a little example: http://talk2gerd.blogspot.com/2007/01/one-time-timer.html
    instead of my WHEN-VALIDATE-ITEM - example you have to use your POST-COMMIT - trigger
    try it (you need only some minutes for the example)
    Gerd

  • Data Cache/Refresh Problem in Crystal enterprise 10....

    Hi All
    I have suffering from very major problem related to Data refresh....
    I m using CR IX as a design Crystal report and Crystal Management console 10 as a Crystal Report Server....
    The Problem is that : After Publishing Report On Report Server(CMC) i m calling through my report by the help of reportId which was generated during Publishing Report : So If My report containing Two Parameter the i pass two Parameter value from my Front end as ....
    http://<server>/crystal/enterprise10/admin/en/viewrpt.cwr?init=java&apsuser=administrator&apspassword=&apsauthtype=secEnterprise&id=2363&PROMPT0=1914&PROMPT1=GARETH%20%20%20MASON&PROMPT2=canada
    but the problem is that If any user Update any value on database and after updation again he check to crystal report ,but it not reflect in Crystal Report....
    second problem is:
    there is a yellow button display ON CMC ,if user click on this button and change the parameter value it change but again user call report from front end it shows previous value which he entered through click on Yellow Button...
    I have checked all option on Crystal report Like Unckeck Option Save Report with data ....
    But Still I m facing such Problem ......Please Provide me Proper solution...
    should I need to change Setting of Crystal Configuration Manager .....
    I need Your Assistance.....
    Regards
    Ankit shukla

    Hi Nakul
    Thanks For your response...
    The URL Which I mention was as example for calling report from Report server...In My form I m using  two Drop down 
    (1)  Country Name : List Of different country
    (2) Client Name : List Of Different client
    If I select Country India and Client ankit  Then In My URL display  Prompt 0 =India & Prompt 1=Ankit
    and data display For such record....
    But When I change Country Name : UK And Client =Steban then In My URl  display Prompt0=UK  & Prompt1=Steban
    But Report Contains Previous Record Of Ankit & India..
    So It means My Parameter value are changing dynamically but Cache Server Of CMC are not refresh when i Click On Refresh Button which are displaying in Viewer the  report Data are reflecting....
    So Please Provide me solution for given above problem.....
    Do I need to change Crystal Configuration Management Setting ....but i don't know how it will be...
    So Please give me any solution ...
    Regards
    Ankit Shukla

  • Screen refresh problem where data is entered and the screen doesn't refresh

    Many people in the company are experiencing the odd screen refresh problem where data is entered and the screen doesn't refresh to show the updated result in corresponding cell formulas.
    Microsoft have issued a hotfix to fix the issue for Excel 2003 as shown. Microsoft released a hotfix for this problem (<a href="advisory?ID=978908">KB978908</a>). Display memory tends to pick up data from hidden sheets and pastes it
    into the active screen. No impact on the file. This occurs when protecting and unprotecting worksheets in VBA. I also suspect that enabling and disabling screen refresh contributes to this problem. In any case there is a fix, albeit with the following disclaimer:
    As of yet I have not been able to find a fix for this for office 2010 and 2013, Any suggestions would be great.

    Hi,
    Based on your description, Excel does not show the text strings when you typing. It may be caused by the cell format, if we set the cell format as ";;;" in custom format, it will not display the text that you typed. 
    And the issue may be caused by the third-party input method, there are some compatibility issue between them.
    If the issue still exits, please try the following methods
    Verify/install the latest updates
    Repair your Office program
    Regards,
    George Zhao
    TechNet Community Support

  • Problem in scheduling data refresh of excel file that uses PowerPivot

    I think I have successfully created and enabled the gateway and data sources for refresh - they are both seeming to connect.  However, when I try to schedule a data refresh to occur in the PowerBI site for the Excel file I receive an error message
    that the connection could not be established and receive error message "Correlation ID: d118ab93-436d-44a9-8c09-564f64fe0c58".  Appreciate any assistance in figuring out how to resolve.  Thanks a lotl

    Let's track it here: https://social.technet.microsoft.com/Forums/en-US/42c806dc-2d82-4bcf-ab6e-c279e2692a68/problem-in-scheduling-data-refresh-of-excel-file-that-uses-powerquery-and-powerquery?forum=powerbiforoffice365 
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • JTable Refreshing problem for continuous data from socket

    Hi there,
    I am facing table refreshing problem. My table is filled with the data received from socket . The socket is receiving live data continuously. When ever data received by client socket, it notify table model to parse and refresh the data on specific row. The logic is working fine and data is refresh some time twice or some thrice, but then it seem like java table GUI is not refreshing. The data on client socket is continuously receiving but there is no refresh on table. I am confident on logic just because when ever I stop sending data from server, then client GUI refreshing it self with the data it received previous and buffered it.
    I have applied all the available solutions:
    i.e.
         - Used DefaultTableModel Class.
         - Created my own custem model class extend by AbstractTableModel.
         - Used SwingUtilities invokeLater and invokeAndWait methods.
         - Yield Stream Reader thread so, that GUI get time to refresh.
    Please if any one has any idea/solution for this issue, help me out.
    Here is the code.
    Custom Data Model Class
    package clients.tcp;
    import java.util.*;
    import javax.swing.table.*;
    import javax.swing.*;
    public class CustomModel extends DefaultTableModel implements Observer {
    /** Creates a new instance of CustomModel */
    public CustomModel() {
    //super(columnNames,25);
    String[] columnNames = {"Sno.","Symbol","BVol","Buy","Sale",
    "SVol","Last","..","...","Total Vol...",
    "..","High","..","Low","Change","Average","..."};
    super.setColumnIdentifiers(columnNames);
    super.setRowCount(25);
    /*This method called by client socket when ever it recived data as line/record*/
    public synchronized void update(Observable o, Object arg){
    collectData(arg.toString());
    /*This method used to parse, collect and notify table for new data arrival*/
    public synchronized void collectData(String rec){              
    String validSymbol="";
    System.out.println("collectDataRecord :-"+rec);
    StringTokenizer recToken=new StringTokenizer(rec," ");
    Vector rowVector=new Vector();
    for(int i=0;i<25;i++){
    validSymbol=(String)getValueAt(0,1);
    if(rec.indexOf(validSymbol) != -1){
    for(int j=0;recToken.hasMoreTokens();j++){
    super.setValueAt(recToken.nextToken(),i,j);
    //break;
    Client Socket Class
    package clients.tcp;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    public class DataReceiver extends Observable implements Runnable{
    private Socket TCPConnection = null;
    private BufferedReader br = null;
    private String serverName = "Salahuddin";
    private int serverPort = 5555;
    public DataReceiver()
    public void setServerName(String name){
    this.serverName=name;
    public void setServerPort(int port){
    this.serverPort=port;
    //03-20-04 12:30pm Method to open TCP/IP connection
    public void openTCPConnection()
    try
    TCPConnection = new Socket(serverName, serverPort);
    br = new BufferedReader(new InputStreamReader(
    TCPConnection.getInputStream()));           
    System.out.println("Connection open now....");
    //System.out.println("value is: "+br.readLine());
    }catch (UnknownHostException e){
    System.err.println("Don't know about host: ");
    }catch (IOException e){
    System.err.println("Couldn't get I/O for "
    + "the connection to: ");
    //03-20-04 12:30pm Method to receive the records
    public String receiveData(){
    String rec = null;
    try
    rec = br.readLine();          
    catch(IOException ioe)
    System.out.println("Error is: "+ioe);
    ioe.printStackTrace(System.out);
    catch(Exception ex)
    System.out.println("Exception is: "+ex);
    ex.printStackTrace(System.out);
    return rec;     
    public void run()
    while(true)
    String str=null;
    str = receiveData();
    if(str != null)
    /*try{
    final String finalstr=str;
    Runnable updateTables = new Runnable() {
    public void run() { */
    notifyAllObservers(str);
    SwingUtilities.invokeAndWait(updateTables);
    }catch(Exception ex){
    ex.printStackTrace(System.out);
    System.out.println("Observer Notified...");*/
    try{
    Thread.sleep(200);
    }catch(Exception e){
    public synchronized void notifyAllObservers(String str){
    try{
    setChanged();
    notifyObservers(str);
    }catch(Exception e){
    e.printStackTrace(System.out);
    Regards,
    Salahuddin Munshi.

    use your code to post codes more easy to read, lyke this:
    package clients.tcp;
    import java.util.*;
    import javax.swing.table.*;
    import javax.swing.*;
    public class CustomModel extends DefaultTableModel implements Observer {
    /** Creates a new instance of CustomModel */
    public CustomModel() {
    //super(columnNames,25);
    String[] columnNames = {"Sno.","Symbol","BVol","Buy","Sale",
    "SVol","Last","..","...","Total Vol...",
    "..","High","..","Low","Change","Average","..."};
    super.setColumnIdentifiers(columnNames);
    super.setRowCount(25);
    /*This method called by client socket when ever it recived data as line/record*/
    public synchronized void update(Observable o, Object arg){
    collectData(arg.toString());
    /*This method used to parse, collect and notify table for new data arrival*/
    public synchronized void collectData(String rec){
    String validSymbol="";
    System.out.println("collectDataRecord :-"+rec);
    StringTokenizer recToken=new StringTokenizer(rec," ");
    Vector rowVector=new Vector();
    for(int i=0;i<25;i++){
    validSymbol=(String)getValueAt(0,1);
    if(rec.indexOf(validSymbol) != -1){
    for(int j=0;recToken.hasMoreTokens();j++){
    super.setValueAt(recToken.nextToken(),i,j);
    //break;
    Client Socket Class

  • Problem in scheduling data refresh of excel file that uses PowerQuery and PowerQuery

    I think I have successfully created and enabled the gateway and data sources for refresh - they are both seeming to connect.  However, when I try to schedule a data refresh to occur in the PowerBI site for the Excel file I receive an error message
    that the connection could not be established and receive error message "Correlation ID: d118ab93-436d-44a9-8c09-564f64fe0c58".  Appreciate any assistance in figuring out how to resolve.  Thanks a lotl

    Brookseed,
    Is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Excel Services 2013 Bug - Automatic or Periodic Data Refreshes Doesnt Update

    All,
    I have heard from other colleagues that there is a problem with SP2013 Excel Services Automatic Refresh.  Specifically, when you set the data connection properties to
    Refresh data when opening a file, no error is generated upon open, but it DOES NOT refresh the spreadsheet with new data.
    Manual Refresh First.  What I did to test this was configure an AS tabular model with AdventureWorksDW as the data source.  Loaded the AdventureWorks Tabular project.  Created an ODC pointing to the resulting cube instance.
    (Made all of the required Excel Services configurations.) Then pointed a workbook to this data source to populate a Pivot Table.  Saved it to SharePoint in a trusted location.  ODC saved to SharePoint in a trusted data connection library.  Finally,
    I configured the connection properties to NOT Refresh data when opening the file.  Saved it.  Go to my in browser Excel Services file, and click
    Data | Refresh All Connections.  WORKS!  Great. 
    Next up: Automatic Data Refresh.  I made a copy of the same workbook.  Connected to the same data connection file.  Went into the properties of the connection on the copied workbook and checked
    Refresh data when opening the file.  Saved.  Updated relational data in database.  Reprocessed the tabular model.  Re-opened the Automatic refresh workbook.  Numbers stay the same.
    I've tried also setting Refresh every setting on
    Usage tab of Connection Properties dialog to low number.  No change.  Tried reducing the Excel Services External Data Cache Lifetime auto refresh setting to 10 seconds.  Nothing, no change.  Nothing seems to work to get Auto refresh
    working.  Manual refresh works great.  Has anyone else seen this bug?  Is there a hot fix?  Anyone know if there is something else to try?
    UPDATE: In the ULS log, what we see if the following line:
    BaseWorkbook.PrepareConnectionsAsync: Refresh skipped. Could not find the data connection name - defaulting to previous state. sessionId=..., dataconnection=
    Note: the dataconnection value at the end is empty.

    Hi,
    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.
    Thanks,
    Linda Li
    Linda Li
    TechNet Community Support

  • Excel Data Connection problem for posting Excel on SharePoint 2013

    Hi there,
          I tried to post an Excel file to a SharePoint 2013 site. The file has a column with VLOOKUP formula to look for data from another Excel file posted on the same site. However, once I open the file, it'll show the following message:
    "We can't connect to '[link to file on onedrive/sharepoint]'. Please make sure you're using the correct
    web address"
           I don't recognize the website on this error message and there is no data linked to it. If I click OK, it'll show the following error message:
    "Microsoft Excel cannot access the file '[link to file on onedrive/sharepoint]'. There are several possible reasons:
    - The file name or path does not exist
    - The file is being used by another program
    - The workbook you are trying to save has the same name as a currently open workbook"
           I tried to create another Library and post the file but it still shows me the same error message. I urgently need to fix this error as the file is viewed by several directors. Can someone help??? Thanks a lot!!

    Currently, when a workbook that contains a Data Model is published to a library in Office 365, data refresh is unavailable.
    However, you can use a PowerShell script to configure a workaround.
    donwload this white paper for workaround:
    http://technet.microsoft.com/en-us/library/jj992650.aspx
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Data refresh of Excel file on Sharepoint 2013 Online (E3)

    Is it possible to refresh data in an Excel PowerPivot model from external data (SQL Server 2012) on the
    SharePoint 2013 Online solution that comes with the Office365 E3 plan?
    I need to either have the Excel file itself on the public facing website with data refresh there, or possibly have the Excel file in a private Business Intelligence Center subsite and then publish webparts or whatever on the public site, as long as the charts
    are refreshed and publicly viewable. I've found a lot of conflicting info on this.
    Re
    D

    Currently, when a workbook that contains a Data Model is published to a library in Office 365, data refresh is unavailable.
    However, you can use a PowerShell script to configure a workaround.
    donwload this white paper for workaround:
    http://technet.microsoft.com/en-us/library/jj992650.aspx
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Data refresh in background for an Excel workbook published on a SharePoint 2013 site

    Hi,
    I've created a site to publish some Excel workbooks on a SharePoint 2013 farm with Excel Services.
    I'd like to run in background the data refresh against the cube connected to Excel, so when the end user will open the workbook he already will see the updated data without any waiting times.
    How can I solve this issue, please?
    Keep attention: I don't talk about PowerPivot for SharePoint.
    Thanks

    did you try to use the
    unattended service account for authentication to external data, in order to refresh the excel data?
    Check this technet: http://technet.microsoft.com/en-us/library/hh525344.aspx
    more options over here:
    http://technet.microsoft.com/en-us/library/ff191191.aspx
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Power Query/Data Management Gateway data refresh not working

    Pretty new to o365/Power BI, but here's what I've got going on (hopefully someone can help me out):
    I created a data management gateway and data source.  The data source says it's online in the PowerBI admin center, and it seems to be working correctly.  I can open Excel 2013 on my desktop (logging in as my trial o365 account which has Power
    BI associated with it) and connect to the data source via Power Query using the oData option.  I make sure to import the data into the model, and then open up the PowerPivot window and create a simple pivot table using the data in the model.
    that all works just great.  The problem comes when I upload the workbook and try to update it.  I've tried a few different ways.
    1. When I try to manually refresh the workbook by opening it in my o365 site and going to data-->refresh I get the following error:
          An error occurred while working on the Data Model in the workbook. Please try again.
          We were unable to refresh one or more data connections in this workbook.
          The following connections failed to refresh:
          Connection: Power Query - dbo_DimProductCategory
          Error: Out of line object 'DataSource', referring to ID(s) 'a75593f3-c34d-4f83-9458-49aa2cece164', has been specified but has not been used.
          The following system error occurred: Class not registered
          The provider 'Microsoft.Mashup.OleDb.1' is not registered.
          Power Query - dbo_DimProductCategory
    2. When I go into Power BI and go to "Schedule Data Refresh" for the workbook, I get the following error:
          Sorry, the data connections in this report aren’t supported for Scheduled Refresh.
          Technical Details â–¼
          Correlation ID: B3CE4B10-2137-E593-6FCF-189B73465190
          Date and Time: 03/31/2014 06:20:39 PM (UTC)
    Any help would be greatly appreciated.  If you need additional information, I'd be happy to provide it.

    Hey Guy,
    Thanks for the reply.
    The "data source type" of the data source in Power BI is "SQL Server" (there was only that and Oracle available to select from)
    The "data source type" that Power Query is using in Excel is "From oData Feed"....which is using the Power BI data source....which is using the data management gateway.
    A few follow up questions if you have a second
    1. Do you know when PowerQuery data refresh will be supported? (just a general idea....weeks, months, next year?)
    2. Is there any other way to connect to (and be able to refresh) PowerBI data sources referencing "on prem" data via the data management gateway?  I tried using the oData feed URL in non-PowerQuery areas of excel (excel data tab, PowerPivot directly)
    but it didn't work.  If there's some other way to connect to and refresh on prem data, i'm all ears :D 
    Really appreciate your help, thanks for taking the time.

  • 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

  • Smartview 11.1.2.1.102 Refresh problems

    I have multiple users experiencing severe refresh problems after upgrading to smartview version 11.1.2.1.102.
    Users state Refresh is taking 10-15mins+ when in old version 9x it only takes 1-2mins. In addition users have rebuilt the excel files (copy in new workbook) then all is working fine but when saved/the next day the refresh goes very slow again!
    Please can any help?

    1. Deleting the Sheet Info fixes the problem for the moment - but the problem soon returns. Do you know what causes the problem, so we can cut the repeating cycle? Is this strictly a multi-user issue? We do have several users that may use the file. Some have version 11.1.2.1.000 (not 103). Oracle's tips doc (http://www.oracle.com/technetwork/middleware/bi-foundation/epm-tips-issues-73-102-1612164.pdf) mentions uncompressed metadata stored in the worksheet.
    2. Is there a specific version that allows the Sheet Info fix? Oracle's tip sheet says they need Some have version 11.1.2.1.103, but the users we have seen so far can use this workaround on Some have version 11.1.2.1.000. I'd like to know when at what version this fix starts so I can push other users to update. It would be good to know at which version this issue starts.
    Thank you - great information in the thread!
    P.S. for reference:
    From http://www.oracle.com/technetwork/middleware/bi-foundation/epm-tips-issues-73-102-1612164.pdf
    In EPM System Release 11.1.2.1, I am opening .xls files with Smart View functions in Excel 2010, but it’s very slow or seems to freeze Excel. How can I fix this?
    This is most likely due to an issue with uncompressed metadata stored in the workbook. In most cases, the issue can be found in the first sheet in hidden shapes. Note that the file will open but it may take a very long time, and in some cases the file will open fine with Smart View disabled. In other cases it will not matter. To solve this problem, save a copy of the file and follow the steps below for the version of Smart View you have.
    If you are using Smart View 11.1.2.1.103 or above, follow these steps:
    1 Open the file (this may take a while) with Smart View enabled.
    2 From the Smart View Ribbon, select Sheet Info.
    3 Select Delete Smart View Info.
    4 Select Workbook and all Sheet Info.
    174 Miscellaneous and Product-Specific Tips
    5 Click OK.
    6 Save the modified workbook.
    7 Reopen the workbook.
    If you are not using Smart View 11.1.2.1.103 or above, follow these steps:
    1 Open the file (this may take a while).
    2 Right-click on the tab of the first worksheet and select Select All Sheets.
    3 Right-click on the tab of the first worksheet and select Move or Copy.
    4 In the drop-down box, select (new book) and check Create a Copy.
    5 Save the workbook.
    6 Open the new workbook.
    7 Refresh the data.

Maybe you are looking for

  • Podcasts disappear from Ipod Classic

    I recntly purchased the ipod classic 120gb, and dowloaded a number of podcasts which I have been playing. However, yesterday I was viewing one (podcast) when the ipod froze for about 15 seconds, when I was able to go back into the menu all the podcas

  • Date change back in R1213

    we got requirement from Client to have back dated transactions for testing since it is not possible to have back dated transactions, we thought to change the server and database date to some thing to back date,does this works and is there any alterna

  • CTS+ configuration for NWDI - Development configuration error

    Hi All, I really need some help on this. we are configuring CTS+ on Solution Manager system for NWDI, EP landscape (EPD, EPQ,EPP) and SLD system. we made EPD as development system and trying to use CM Services to configure the NWDI scenario SDA/SDC D

  • When I click the icon at the top left of the page, all I ever get is refresh or close , never the Moztlla Firefox page

    When I click on the icon at the top left of the page all I ever get is refresh or close. never the Mozilla Firefox page. I have downloaded Firefox , but never get any further. What can I do about this problem?

  • Windows 8 update failure at 15% (% may vary) - fixed.

    New G580, with Windows 8 factory installed, would not get beyond 15% updated. This despite it having several tries (three?), then finally giving up and automatically removing the updates. I ran the update fix offered, and a second session of trying t