Problem in refreshing data model

Hi,
I am struggling in solving this issue for quite some time. I am developing a fusion web application using Jdeveloper 11.1.2.
I have 3 view objects groups,employees and dependents. All the three view objects have binding variables and view criteria. The three view objects are linked using view links. The following shows the structure of the application module.
Groups--------- binding variables: GrpID, GrpName
------Employees ---------- binding variables: EmpID,EmpName
---------Dependents---------------binding variables: DepID and DepName
Now Groups and Employees are linked using GrpEmpViewLnk. Employees and Dependents are linked using EmpDepViewLink.
I have a page which acts like a search form which has fields like GroupID, EmpId and DepID with corresponding buttons named "find" to look up information.
When I try to set the GrpId at Groups VO, the data model is populating correctly with the rite employees and dependents.
When I try to set the EmpID at Employees VO, the data model has incorrect data. I looked at the query to see whats happening. Along with setting the bind variables EmpID,EmpName for Employees VO, a bind variable from the view link EmpDepViewLink is also being passed. I don't have any idea of how to control the value that's being passed through the view link.
Could someone please help me in resolving this issue. I can provide more info on this issue.
Thanks!
Shai.

If you want to query Ephraim without dependency on a specific group, then you need to have it as an idependent go in your data model and not nested under group. Right now you'll be querying the empty in a specific group.

Similar Messages

  • Refreshing data model in AIR

    This is probably one of those problems where you toil and
    slave for hours to find out it is something stupid, but I am at my
    wits end.
    I am constructing an AIR App that uses a data model to
    retrieve data from a php script that generates an XML string. The
    mxml string for the model and the grid, respectively :
    <mx:Model id="listingsDataGrid" source="
    http://127.0.0.1/cmsbe/sql2xml.php"/>
    <mx:DataGrid id="dg" width="100%" height="100%"
    dataProvider="{listingsDataGrid.listing}" top="0" >
    I have this XML displayed in the data grid, but I am not able
    to make the grid refresh. I tried to have a button that forced a
    refresh with the following:
    <mx:Button label="refresh"
    click="listingsDataGrid.refresh"/>
    When I point my browser to the PHP script listed for the
    model source above, the desired (and refreshed) XML string is
    displayed, but no matter how many times I try to refresh it from
    within my AIR app or how many times I re-launch the project from
    within Flex Builder I cannot get the info to refresh. If I publish
    the application and re-install it on my system the grid reflects
    the latest XML data, but it then does not refresh again.
    There seems to be little documentation on the
    <mx:Model> way of doing things, and while I could probably
    use a URLRequest method to retrieve the XML with a little bit more
    power, I would like to stick with this simpler <mx:Model>
    method.
    It almost seems as if it is a caching problem, but I have
    done everything possible to force no caching with the PHP script
    itself, and the fact that it is updated each time when I point my
    browser to the PHP script seems to indicate the problem is not
    server-side.
    I have googled this to death with no results... any
    suggestions? Thanks in advance!
    If I need to post more/better info, just let me
    know...

    I don't know much about data models, but this is a common
    problem in flex when it comes to using httpservices. Once an
    httpservice with a method of get returns one result, it will not
    refresh. The answer with httpservice is to change the method to
    post, and put a dummy variable in the post request. I do not know
    how you would fix this when using a model, but you might try
    changing to httpservice. There is more about this problem in the
    context of httpservices over on the flex board.

  • Problem in creating DATA Model from SQL SERVER 2008 in BI PUBLISHER

    Dear Team,
    I connect BI Publisher with SQL SERVER 2008 But On creating Report on BI,when we create data model...dataset,
    i select the tables but when i click on RESULT i am geting this error.
    error--
    [Hyperion][SQLServer JDBC Driver][SQLServer]Invalid object name 'DBNAME.DBO.TABLE'.
    please resolve this problem...
    Thanks,
    Him
    Edited by: h on Aug 22, 2011 6:31 PM

    Hi David,
    The things I said are not a fix for this problem.
    If your RCU installation worked, then you do not have to worry about modifying the createfr.sql.
    Edit:
    I've just tracked the problem. It appears that when using the query builder, BI forgets to add the " sign.
    For example:
    This query will give the hyperion error.
    select     "table"."field"
    from     "database.user"."table"
    To correct it write it like this:
    select     "table"."field"
    from     "database"."user"."table"
    Edited by: EBA on Nov 14, 2011 10:21 AM

  • SQL Developer - problems with the Data Modeller part

    Hi SQL Developer users,
    I can open the Data Modeler pane, but I can't insert any object into the logical model or into the relational model. Any ideas about what I'm doing wrong? Do I need specific privileges to the database, or do I need to install SQL Developer in a different way?
    Thanks,
    Csisz

    Hi Csisz,
    as Ivaylo wrote - it's Data Modeler Viewer into SQL Developer.
    I can't insert any object into the logical model or into the relational modelYou can drag tables from SQL Developer browser and drop them on relational model diagram. If you keep Ctrl key pressed then all child tables also will be imported and shown on diagram.
    Philip

  • Problem in Refreshing data

    Hi Gurus,
    i have added a new column in MD04.
    Here my problem is while populating
    the data in New column standard program
    is Refreshing my data.
    say ....
    Avl Qty      USEX1 (new column)
       2                     2
       1                     3(sum of 2 +1)
       1                     4(sum of 3 + 1)
    the above is expected output,
    But currently my output is
    Avl Qty      USEX1 (new column)
       2                     2
       1                     1
       1                     1
    sample Code
    FZ_PROD = EMDEZX_USEX1 + IMDEZEXIT-MNG01(avl qty).
    MOVE FZ_PROD TO EMDEZX_USEX1(new column)
    for first loop it is fine but during second loop
    EMDEZX_USEX1  was refreshed by standard program.
    how can i achieve the above Plz Advice.
    Thanks & Regards,
    Vijaya.

    I guess u r clearing the new column befor the code.
    In that case the problem specified occurs.
    Ex:
    clear new.
    FZ_PROD = new + IMDEZEXIT-MNG01(avl qty).
    MOVE FZ_PROD TO EMDEZX_USEX1(new column)
    output:
    X = 0 + 2.       O/P is 2.
    X = 0 + 1 = 1  O/P is 1.
    X = 0 + 1 = 1  O/P is 1.
    U check by giving a value other than 1, i.e, 5 or 6 to Avl Qty , it gives the same value as o/p.
    dont clear the new column.
    This is my guess.
    Regards,
    Veeranji Reddy P.

  • Problem when transporting data model

    Hi,
    I currently have a problem when I send my transport to Q/A.  I cann see the info objects that I am sending.  I have replicated and refresehd the tree but no info objects are shown.  I have created the transport by including the info object catalogs in process before.  Does anybody have any ideas?
    thanks.

    Hi,
    This is the message I get back from the transports:
       Activate inactive runtime objects        25.04.2008 16:09:44    (0) Successfully Completed
       Activate inactive runtime objects        25.04.2008 16:19:36    (0) Successfully Completed
       Activate inactive runtime objects        25.04.2008 16:21:28    (0) Successfully Complet
    So you think I should transport the info object first , and then the catalogs.  What i've noticed is that when I check my data sources for my source system, the proper characteristics cannot be found and my transfer rules cannot automatically be activated.
    Let me know what you think.
    thanks

  • Problem saving data model when using Oracle DB Pivot feature

    I have problem saving a data model - SQL Query that uses the Oracle DB PIVOT feature?
    When I hit save, nothing happends.... have also tried "save as" - nothing is saved
    No error message is shown.
    Is Oracle DB PIVOT not supported by OBIEE?
    The SQL that is causing the problem is this one:
    SELECT * FROM
    SELECT field_name as field,
    CASE
    WHEN col_1 = 'A' THEN 'Name 1'
    WHEN col_1 like 'B_%' THEN 'Name 2'
    END
    as gastype,
    energy
    FROM table_1
    WHERE code = 'K'
    AND trunc(DAYTIME,'YYYY') = trunc(to_date('2012-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS'), 'YYYY')
    AND (col_1 in ('A') or col_1 like 'B_%')
    PIVOT (sum(energy) for (gastype) in ('Name 1' as Name1, 'Name 2' as Name2))
    order by field
    We are using OBIEE 11.1.1.6.7 (Win 2008R2) against Oracle DB 11.2.0.3

    Just a wild guess .. Have you done dbsetup after installing IAS and said you are going to said databases ?

  • Loose subversion password when using data modeler on the same svn reposit.

    Hello,
    We are on windows Xp sp3 with tortoire svn. Data modeler 3.0.0 665
    We use data modeler to edit our Data model.
    There is a svn repository for all data and source of our projet.
    Problem :
    When running data modeler and open a model which is on the svn repository, a update on the repository with svn ask always the svn password.
    This problem come also if you make a simple repository refresh on data modeler.
    It seem that data modeler override always the file in directory D:\Documents and Settings\...\Application Data\Subversion\auth\svn.simple which contains subversion authentification for svn.
    It forget the svn password and put the file read only.
    Do you know this problem ?
    is any solution or work arround exist ?
    For exemple, we can do a script which always replace the modified file. I try to make it read only without success.
    Regards.

    Hi,
    some of the Data Modeler svn-functionality is inherited from JDeveloper.
    Unfortunately, working with outer svn tools (as Tortoise) is a well-known issue for JDeveloper, because it encrypts and stores the password in another file, and tries to protect the file that you've mentioned.
    See more here: SVN Credentials and JDeveloper 11g
    Regards
    Ivaylo

  • M:N relationships within a dimension: Standard process vs. BI Data model

    Hi,
    I just completed a review of the u201CMulti-Dimensional Modeling with BIu201D from this link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6ce7b0a4-0b01-0010-52ac-a6e813c35a84 and I have a quick question here:
    On page 36 of this link, the author noted that
    u201CAccording to the standard process, color should be in the master data table for material, like material type. But this is not possible because the material is the unique key of the master data table. We cannot have one material with multiple colors in the master data table.u201D
    i.e. my understanding is that, based on Standard Process it is NOT possible to place two characteristics in M:N relationships in the SAME dimension but with BI Data Model, this, the author points out  is possible
    u201Cdue to the usage of surrogate keys (DIM-IDs) in the dimension tables allowing the same material several times in the dimension tableu201D  i.e. although material is the unique key of the dimension.
    1.
    What is being referred here as u201CStandard Processu201D since document is on u201C u2026 modeling with BIu201D?
    2.
    It goes on to discuss u201CDesigning M:N relationships using a compound attributeu201C as a solution to the M:N relationship in a dimension.
    What is the need to address this problem with compound attributes if characteristics in M:N relationships within a dimension, such as material and color, are not a problem in BI Data Model?
    3.
    Can you help explain the underlined cautions of the following guidelines for compound attributes (with examples if possible please):
    u201CIf you can avoid compounding - do it!
    Compound attributes always mean there is an overhead with respect to:
    Reporting - you will always have to qualify the compound attributes within a query
    Performance
    Compounding always implies a heritage of source systems and just because it makes sense within the
    source systems does not necessarily mean that it will also make sense in data warehousing.u201D
    Thanks

    Hi Amanda.......
    In a dimension table, any number of semantically related dimension attributes are stored in a hierarchy (parent-child relationship as a 1:N relationship). If an M:N relationship exists between dimension attributes, they are normally stored in different dimension tables.
    I checked the document.........
    On page 36 of this link, the author noted that
    u201CAccording to the standard process, color should be in the master data table for material, like material type. But this is not possible because the material is the unique key of the master data table. We cannot have one material with multiple colors in the master data table.u201D
    1.
    What is being referred here as u201CStandard Processu201D since document is on u201C u2026 modeling with BIu201D?
    Here the first thing that I want to tell u is that............the diagram shown here is Classic Start Schema............since Extended Star Schema will never store Master data in Dimension tables.........it stores Masterdata in seperate Master data tables..........and nowadays..............Classic Star schema is obsolet.......Dimension table will only store Dimension id and SID......
    Now the Standard process is that..........anything which is Describing a master data..........can be added as an Attribute of that master data.......
    Suppose........Employee is the Masterdata.then Ph no can be one of the Attribute of this master data......
    So this the Standard Process.........but this cannot be followed every time.........why........already explained.....
    2.
    It goes on to discuss u201CDesigning M:N relationships using a compound attributeu201C as a solution to the M:N relationship in a dimension.
    What is the need to address this problem with compound attributes if characteristics in M:N relationships within a dimension, such as material and color, are not a problem in BI Data Model?
    Bcoz ..........we use compounding Characteris tic to define the Master data uniquely.........and we load compounding Characteristic seoerately...which is independent of the Master data........ie......compounding Characteristic there is a seperate master data tables...........so ..........problem resolved......
    3.
    Can you help explain the underlined cautions of the following guidelines for compound attributes (with examples if possible please):
    u201CIf you can avoid compounding - do it!
    Compound attributes always mean there is an overhead with respect to:
    Reporting - you will always have to qualify the compound attributes within a query
    Performance
    Compounding always implies a heritage of source systems and just because it makes sense within the
    source systems does not necessarily mean that it will also make sense in data warehousing.u201D
    For Compounding Characteristic............u hav to laod the Coumpoundede master data seperately..which is a overhead...........moreover while query execution......two tables will be accessd..which may result a performance issue.......Performance can be affected when compounded characteristics are used extensively, particularly when a large number of characteristics are included in a compounding. In most cases, the need to compound is discovered during data modeling.
    Regards,
    Debjani.........

  • How to install Data Modeler

    Hi,
    I downloaded Sqldeveloper data Modeler for Windows 32 bit including JRE. The data modeler has to run on windows 7 64 Bit as well as the sql developer runs
    After unzipping this file I tried to start the datamodeler. When I starter the 32 Bit version I got the error:
    Cannot be startet becaus MSVCR71.dll is not on the computer.
    When I tried to start the 64 Bit version I got the error
    Unable to launch the Java Virtual Machine located at path ..\..\jdk\jre\bin\client\jvm.dll
    What must I do to install the datamodeler?
    Please help me.
    Regards
    Siegwin

    Hi Siegwin,
    The download including JRE only includes a 32 bit JRE.
    This jre includes a copy of file msvcr71.dll (in folder datamodeler\jdk\jre\bin). However it seems that in some circumstances the system does not find this file.
    There have been several message threads about this, both for SQL Developer and for Data Modeler.
    For example, from https://forums.oracle.com/forums/thread.jspa?messageID=10624958 it appears that copying msvcr71.dll to the Windows\System32 folder may solve the problem,
    or starting Data Modeler using the datamodeler.exe file in folder datamodeler/datamodeler/bin may help. (This brings up an additional command prompt window.)
    Message Re: Oracle Data Modeler Installation guide may also be relevant.
    To run Data Modeler in 64 bit mode, you will need to provide your own 64 bit JRE.
    If you edit the file datamodeler64.conf (in folder datamodeler\datamodeler\bin) and remove the line starting with "Set JavaHome", next time you attempt to start 64-bit Data Modeler it should ask you for the location of the java.exe file in your 64 bit JRE.
    There is now a forum specifically for Data Modeler issues: SQL Developer Data Modeler
    David

  • Data modeler - howto assign process/function to data model

    Hello all
    Problem path:
    sd11 (data modeler)
    i.e model: UNIMODELL (this is the model used as training in help.sap.com)
    There is [functions/processes] button (F8)
    When using UNIMODELL there is a process assigned to model and I can choose it (goes to Display Module: A.... screen)
    But:
    when I create my own data model -> when clicking [functions/processes] i get:
    "No functions assigned" infrmation
    Where can I add fun/proc to my data model?
    Thx4anyHelp
    Mateusz

    What method did you use?
    If FK is created and not removed then no scope clause is added - no need for that.
    It works for me:
    CREATE TABLE TABLE_2
    Column_2 REF StructuredType_1 ,
    Column_3 REF StructuredType_1
    ALTER TABLE TABLE_2
    ADD ( SCOPE FOR ( Column_2 ) IS TABLE_1 )
    ALTER TABLE TABLE_2
    ADD ( SCOPE FOR ( Column_3 ) IS TABLE_3 )
    table_1 and table_3 are of StructuredType_1
    Philip

  • PowerPivot removed table replicated into the data model on refresh

    Hey
    I am facing the following problem which is absolutely persistent and annoying in nature. I am using a data model created with PowerPivot with connections to three different SQL servers and 25 tables. The bug is that every time I refresh my data, a table
    that was initially added to the data model (and later removed) is replicated in equivalent number of tables that use this connection, which is currently around 12 tables, so I get 12 duplicates of the same unnecessary table on every refresh, named with the
    name of the schema on the SQL server that is followed by a running number. Removing these from the data model on every refresh simply takes too much time on a daily basis. The additional undesired table which is created is what is defined in the SQL query
    of the connection string of this connection.
    I tried to solve this problem by zipping the Excel file and modifying this SQL statement present in the connection string in the connections.xml file in a way that it would not return anything, but this always leads into a corrupted workbook.
    After encountering this I have managed to avoid this problem by making sure that the initial table I'm adding to the data model will remain in the model, but I really don't want to rebuild this current model. Is there any fix for this issue without
    rebuilding the data model?
    Thanks for all the help in advance!

    I am using 64-bit Office 2013 with the recent SP1 upgrade and the included PowerPivot plug-in on a Windows 8.1 machine.
    I always create the connection by using "From SQL server" then fill in the server and log in details and use a ready SQL statement that I have written by using SQL Server Management Studio to import the initial table. For all the preceding tables
    using the same server and schema, I always select it from existing connections and just paste the SQL queries required for any additional tables to the "Write a query that will specify the data to import", rather than using the table import tool.
    I am not sure if it could have any effect that I've been using the type connection "From SQL server" although the database is really running on Azure (there is a possibility to select From Other sources > Microsoft SQL Azure, but the functionality
    seems the same).
    I don't really understand what I should edit from the existing connections section. Just to clarify, apparently the Connection String parameters can be edited from PowerPivot, but not the Command Text which can be viewed from Excel Data > Connections
    > Properties, but is shown in gray with a message "Some properties cannot be changed because this connection was modified using the PowerPivot add-in."
    In the data model I am using two sets of identical tables, but connected to two different servers that are running a database 1:1 in structure. Initially the problem considered only the other of these, but I accidentally reproduced it by, again, editing
    the SQL query in the table that was initially imported when that connection was created (PowerPivot > Design > Table Properties). Now when refreshing I get tables that are structured as in what the "Connection Text" part of the connection would
    produce, which replicated for the equivalent amount of additional tables using the same connection, so now I'm getting 12 tables (the number of tables using the same connection) each named "*schemaname1* Query", "*schemaname1* Query2",
    "*schemaname1* Query3" "*schemaname2* Query" and so on.
    Personally I can definitely see a pattern here. If there isn't a table matching what has been specified in the "Command Text" that was described when the connection was created, then it for some reason runs this query anyway on every table that
    is using the connection.

  • Powerpivot Error on Refresh -- "We couldn't get data from the data model..."

    I'm using Excel 2013 and Windows 8.1.  I have a spreadsheet I've been using for over a year, and I've just started getting this error message when I try to refresh the data.
    "We couldn't get data from the Data Model.  Here's the error message we got:
    The 'attributeRelationship' with 'AttributeID' - 'PuttDistCat9' doesn't exist in the collection"
    Any idea how I can fix this problem?  I haven't changed anything related to that particular attribute.  All the data is contained in separate sheets in the workbook, so there are no external sources of data.
    Thanks.
    Jean

    Thanks for all the suggestions.
    I found a slightly older version of the spreadsheet that still refreshes properly, so I don't think I have any issues with the version of Excel or Power Query.  (I've had this same error before, and I believe I applied the hotfix at that time.)
    I think this problem started after I updated a number of the date filters in the pivot tables.  I haven't made any changes to the data model, and the only updates I've made were to add data (which I do all the time), and to change the date filters on
    the pivot tables.
    As suggested, I added a new pivot table querying one table (the table with the attribute that shows up in the error message), and it worked fine.  I can also refresh this pivot table.
    Then I tried adding a pivot table which went against several tables in the data model (including the table in question).  The pivot table seemed to return that data properly.  However, when I tried to refresh it, I got the same error message ("we
    couldn't get data from the data model..."). 
    Dany also suggested running the queries one at a time to see which one is in error.  Without checking all the pivot tables, it appears that any which use the table "HolePlayedStrokes" generate the error (this is the table with the attribute
    mentioned in the error message).  Pivot Tables without that particular table seem to refresh OK.  Unfortunately, that is the main table in my data model, so most of the pivot tables use it.
    Any other suggestions?  I'd be happy to send a copy of the spreadsheet.
    Thanks for all the help.
    Jean

  • 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

  • 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

Maybe you are looking for