Urgent: executeQueryForCollection does not execute query for collection

Some ViewLink detail views do not refresh when the master RSI navigates.
Instead, it seems that a cached query collection is used.
How can we control this behaviour? Under what circumstances does the rowset re-use an old QueryCollection instead of re-executing the query?
It seems to work for some detail VOs but I cannot find a difference between the working and non-working VLs and VOs.
This is a duplicate of
Question about row-level ViewLink refresh
More information is posted there.
Thanks,
Sascha

Hi Sung,
thanks for your answer. But I still don't get it.
It's so erratic.
I have a worklist with --- say 10 rows.
Then:
I navigate to every row and then back to the first row.
Now I start an integrated application (with its own transaction and database connection) that produces a new detail row.
I refresh the worklist, navigate back to the row.
Then I go to the next row and repeat the same.
Now, sometimes I can do all the stuff after "Then:" 100 times and it works every time. The detail shows the newly added row.
Sometimes it works just 4 times, then it simply stops working. The newly added rows are not fetched.
So what's the plan? Why does it work sometimes, and sometimes it doesn't?
Why does it work for some ViewLinks and not for others?
Second example: I have a tree binding. The top node has 4 children. Of course, JUTreeBinding uses RL-VLs to build the tree.
Two of those children detail VOs show the problem all the time, the other two NEVER EVER.
What's the plan? Why does it work for some VOs and not for the others?
If this is really by design (I doubt it judging by the flakyness), then that means for us: get rid of ALL ViewLinks and replace them with this listener scheme. Is this really intended? This would be a nightmare. I cannot use VLs and listeners in parallel. How do I know that whether the VL already caused the execution -- this really happens! -- or not?? Is the solution to execute always twice? Where's the reduction in resource consumption then?
What's the point in caching the query collection of 5 hours ago? Data can change in the DB in the meantime, can it?
I tried to produce a test application based on Scott/Tiger but failed, because there, the VLs re-executed the query EVERY SINGLE TIME. No matter what changes I made with TOAD in the tables. Is this a bug then???
And there is no way (setting, property) to control this?
I am sorry, but I cannot believe that this is really intended. The idea is so ... weird.
Sascha

Similar Messages

  • Oracle ADF refresh as deferred does not execute query on page load

    In the oracle ADF page I have two panel boxes. (Oracle ADF 11.1.1.4)
    a) Personal information panel box with PanelFormLayout (PersonalInfoViewObj) - ReadOnly View Object
    b) Address information panel box with Table (AddressInfoViewObj) - Read Only View Object
    For the iterators in a) and b) I have kept refresh condition as deferred and cacheResult=false. Also in b) for af:table, I have kept contentDelivery="immediate"
    When page loads it fires SQL query for a) and populate the data in Personal information panel box. However for b) it does not execute the SQL query and the data is not getting populated ( in AddressInformation panel with the tables. Please note data is there in the DATABASE......)
    Becasue with the refresh as deferred it was not executing the sql query for Panel b) (panel with Table and table iterator). I have tried refresh as always and refresh ifNeeded/renderModel/prepareModel however in that case it is executing the SQL query two times (twice).
    Please let me know the best way to fix this issue.

    Hi,
    I think you need a method in an application module to init your data.
    In your AM : create a method like :
    public void init(){
    getViewObject().executeQuery();
    }In your adfc-config.xml create a methodCall from this method and a "control flow case" from the methodCall to your page.
    and keep refresh as "deferred " in your pageDef.
    Clément

  • CQWP does not return result for a specific query when filtering on a managed metadata field.

    Hi,
    We are facing a serious production issue. We've search the web extensively but to no avail.
    Problem:
    CQWP does not return result for a specific query when filtering on a managed metadata field.
    ULS log:
    The Uls logs provides 3 different messages that I could relate to every time the query is executed. The last item(level Medium) is displayed 14 times. For readability I've moved the ULS logs to the bottom of this question.
    Query:
    The query is as follows:
    (I've translated this from dutch so pardon any typo's)
    Query: (top selection) Display items from all sites in the site collection
    ListType: Documentlibrary
    Contenttype:
    Items from this group:Custom Document Contenttypes
    Items from this content type: Verklaring
    Filter: Soort is equal to X
    extra info: the field soort (Type) is a managed metadata field that was assigned the value X
    Managed Metadata Structure:
    -managed metadata service
      -Contoso
        -Enterprise Taxonomy (term set)
          -Document (term)
            -Verklaring (term)
              -Soort (term)
                -x (term)
    EXTRA INFO:
    When I modify the filter to filter on Title the CQWP DOES return the correct document!
    When I modify the query settings to search a specific library the CWQP also does return the correct document! (In this case I am filtering on a managed metadata field).
    QUESTION:
    Why doesn't the CQWP return the document when filtering on a managed metadata field over the entire site collection.
    Why does the CQWP return the document when filtering on a managed metadata field over a single library.
    (The type of information the CQWP should return (Soort:x) is stored in a dozen document libraries!)
    Here are the ULS logs.
    Product: Web Content Management
    Category Publishing
    Level: Monitorable:
    CrossListQueryCache::GetSiteData() caught exception (Microsoft.SharePoint.SPException: Kan deze actie niet voltooien.  Probeer het opnieuw. ---> System.Runtime.InteropServices.COMException (0x80004005): Kan deze actie niet voltooien.  Probeer
    het opnieuw.     bij Microsoft.SharePoint.Library.SPRequestInternalClass.CrossListQuery(String bstrUrl, String bstrXmlWebs, String bstrXmlLists, String bstrXmlQuery, ISP2DSafeArrayWriter pCallback, Object& pvarColumns)    
    bij Microsoft.SharePoint.Library.SPRequest.CrossListQuery(String bstrUrl, String bstrXmlWebs, String bstrXmlLists, String bstrXmlQuery, ISP2DSafeArrayWriter pCallback, Object& pvarColumns)     --- Einde van intern uitzonderingsstackpad
    ---     bij Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)     bij Microsoft.SharePoint.Library.SPRequest.CrossListQuery(String bstrUrl, String bstrXmlWebs, String bstrXmlLists, String bstrXmlQuery,
    ISP2DSafeArrayWriter pCallback, Object& pvarColumns)     bij Microsoft.SharePoint.SPWeb.GetSiteData(SPSiteDataQuery query)     bij Microsoft.SharePoint.Publishing.CachedArea.GetSiteData(SPWeb web, SPSiteDataQuery
    siteDataQuery, Boolean useSpQueryOnList)     bij Microsoft.SharePoint.Publishing.CachedArea.GetCrossListQueryResults(SPSiteDataQuery query, SPWeb currentContext, Boolean onlyPopulateCache, Boolean useSpQueryOnList, Int32 lcid)    
    bij Microsoft.SharePoint.Publishing.CrossListQueryCache.GetSiteDataResults(CachedArea cachedArea, SPWeb web, SPSiteDataQuery query, Boolean useSpQueryOnList)) for query:  '<ViewFields><FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}"
    Nullable="True" Type="Text"/><FieldRef ID="{94f89715-e097-4e8b-ba79-ea02aa8b7adb}" Nullable="True" Type="Lookup"/><FieldRef ID="{1d22ea11-1e32-424e-89ab-9fedbadb6ce1}" Nullable="True"
    Type="Counter"/><FieldRef ID="{28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f}" Nullable="True" Type="DateTime"/><FieldRef ID="{1df5e554-ec7e-46a6-901d-d85a3881cb18}" Nullable="True" Type="User"/><FieldRef
    ID="{d31655d1-1d5b-4511-95a1-7a09e9b75bf2}" Nullable="True" Type="User"/><FieldRef ID="{8c06beca-0777-48f7-91c7-6da68bc07b69}" Nullable="True" Type="DateTime"/><FieldRef ID="{30bb605f-5bae-48fe-b4e3-1f81d9772af9}"
    Nullable="True" Type="Lookup"/><FieldRef ID="{ba3c27ee-4791-4867-8821-ff99000bac98}" Nullable="True" Type="Text"/><FieldRef ID="{c5c4b81c-f1d9-4b43-a6a2-090df32ebb68}" Nullable="True"
    Type="Lookup"/><FieldRef ID="{8fca95c0-9b7d-456f-8dae-b41ee2728b85}" Nullable="True" Type="Lookup"/><FieldRef ID="{39360f11-34cf-4356-9945-25c44e68dade}" Nullable="True" Type="Text"/><FieldRef
    ID="{543bc2cf-1f30-488e-8f25-6fe3b689d9ac}" Nullable="True" Type="Image"/><FieldRef ID="{43bdd51b-3c5b-4e78-90a8-fb2087f71e70}" Nullable="True" Type="Number"/><FieldRef ID="{9da97a8a-1da5-4a77-98d3-4bc10456e700}"
    Nullable="True" Type="Note"/><FieldRef ID="{aea3cd20-8da0-4cb7-803b-5a33079a0e4d}" Nullable="True" Type="Lookup"/><FieldRef Name="ScopeId" /><FieldRef Name="_Level" /><FieldRef
    Name="UniqueId" /><ListProperty Name="DraftVersionVisibility" /></ViewFields><Lists ServerTemplate="101"></Lists><Webs Scope="Recursive" /><RowLimit>45</RowLimit><Query><Where><And><BeginsWith><FieldRef
    Name="ContentTypeId" Nullable="True" Type="ContentTypeId"/><Value Type="ContentTypeId">0x010100C5FEE83B67FA6445B0C14AE8B7761BB8011E</Value></BeginsWith><In><FieldRef ID="{aea3cd20-8da0-4cb7-803b-5a33079a0e4d}"
    LookupId="TRUE"/><Values><Value Type="Counter">783</Value></Values></In></And></Where><OrderBy><FieldRef ID="{8c06beca-0777-48f7-91c7-6da68bc07b69}" Nullable="True"
    Type="DateTime" Ascending="FALSE"/></OrderBy></Query>' at url: /. Titel webonderdeel: Inhoudsquery
    Product: Web Content Management
    Category Publishing
    Level: Warning
    Error occured while processing a Content Query Web Part. Performing the following query '<ViewFields><FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Nullable="True" Type="Text"/><FieldRef ID="{94f89715-e097-4e8b-ba79-ea02aa8b7adb}"
    Nullable="True" Type="Lookup"/><FieldRef ID="{1d22ea11-1e32-424e-89ab-9fedbadb6ce1}" Nullable="True" Type="Counter"/><FieldRef ID="{28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f}" Nullable="True"
    Type="DateTime"/><FieldRef ID="{1df5e554-ec7e-46a6-901d-d85a3881cb18}" Nullable="True" Type="User"/><FieldRef ID="{d31655d1-1d5b-4511-95a1-7a09e9b75bf2}" Nullable="True" Type="User"/><FieldRef
    ID="{8c06beca-0777-48f7-91c7-6da68bc07b69}" Nullable="True" Type="DateTime"/><FieldRef ID="{30bb605f-5bae-48fe-b4e3-1f81d9772af9}" Nullable="True" Type="Lookup"/><FieldRef ID="{ba3c27ee-4791-4867-8821-ff99000bac98}"
    Nullable="True" Type="Text"/><FieldRef ID="{c5c4b81c-f1d9-4b43-a6a2-090df32ebb68}" Nullable="True" Type="Lookup"/><FieldRef ID="{8fca95c0-9b7d-456f-8dae-b41ee2728b85}" Nullable="True"
    Type="Lookup"/><FieldRef ID="{39360f11-34cf-4356-9945-25c44e68dade}" Nullable="True" Type="Text"/><FieldRef ID="{543bc2cf-1f30-488e-8f25-6fe3b689d9ac}" Nullable="True" Type="Image"/><FieldRef
    ID="{43bdd51b-3c5b-4e78-90a8-fb2087f71e70}" Nullable="True" Type="Number"/><FieldRef ID="{9da97a8a-1da5-4a77-98d3-4bc10456e700}" Nullable="True" Type="Note"/><FieldRef ID="{aea3cd20-8da0-4cb7-803b-5a33079a0e4d}"
    Nullable="True" Type="Lookup"/><FieldRef Name="ScopeId" /><FieldRef Name="_Level" /><FieldRef Name="UniqueId" /><ListProperty Name="DraftVersionVisibility" /></ViewFields><Lists
    ServerTemplate="101"></Lists><Webs Scope="Recursive" /><RowLimit>45</RowLimit><Query><Where><And><BeginsWith><FieldRef Name="ContentTypeId" Nullable="True" Type="ContentTypeId"/><Value
    Type="ContentTypeId">0x010100C5FEE83B67FA6445B0C14AE8B7761BB8011E</Value></BeginsWith><In><FieldRef ID="{aea3cd20-8da0-4cb7-803b-5a33079a0e4d}" LookupId="TRUE"/><Values><Value Type="Counter">783</Value></Values></In></And></Where><OrderBy><FieldRef
    ID="{8c06beca-0777-48f7-91c7-6da68bc07b69}" Nullable="True" Type="DateTime" Ascending="FALSE"/></OrderBy></Query>' generated the following error: Kan deze actie niet voltooien.  Probeer het opnieuw.
    at the following url: /. Titel webonderdeel: Inhoudsquery
    Kan deze actie niet voltooien. Probeer het opnieuw. This is Dutch. It means something like: Cannot complete this action. Please try again.
    Product: Web Content Management
    Category Publishing
    Level: Medium (this message is displayed 14 times)
    ConsoleUtilies.GetContextualControlMode had no currentPage so the current SPWebPartManager mode cannot be retrieved.

    Hi,
    while digging through the logging (again) I found some extra logging regarding the same correlation id (see details below).
    We have a fairly large term store (4000+ lines).
    If somebody has a clue or tip that would greatly appreciated!
    03-19-2014 13:49:51.87 w3wp.exe (0x2098) 0x23BC SharePoint Foundation Database fa42 Monitorable A large block of literal text was sent to sql.  This can result in blocking in sql and excessive memory use on the front
    end.  Verify that no binary parameters are being passed as literals, and consider breaking up batches into smaller components.  If this request is for a SharePoint list or list item, you may be able to resolve this by reducing the number of fields. 1971313a-6baa-49e9-bace-d024ce67f25c
    03-19-2014 13:49:51.87 w3wp.exe (0x2098) 0x23BC SharePoint Foundation Database fa43 High Slow Query Duration: 127.1515 1971313a-6baa-49e9-bace-d024ce67f25c
    03-19-2014 13:49:51.87 w3wp.exe (0x2098) 0x23BC SharePoint Foundation Database fa44 High Slow Query StackTrace-Managed:    bij Microsoft.SharePoint.Utilities.SqlSession.OnPostExecuteCommand(SqlCommand command,
    SqlQueryData monitoringData)     bij Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)     bij Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean
    retryfordeadlock)     bij Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock)     bij Microsoft.SharePoint.Library.SPRequestInternalClass.CrossListQuery(String bstrUrl, String bstrXmlWebs, String
    bstrXmlLists, String bstrXmlQuery, ISP2DSafeArrayWriter pCallback, Object& pvarColumns)     bij Microsoft.SharePoint.Library.SPRequest.CrossListQuery(String bstrUrl, String bstrXmlWebs, String bstrXmlLists, String bstrXmlQuery, ISP2DSafeArrayWriter
    pCallback, Object& pvarColumns)     bij Microsoft.SharePoint.SPWeb.GetSiteData(SPSiteDataQuery query)     bij Microsoft.SharePoint.Publishing.CachedArea.GetSiteData(SPWeb web, SPSiteDataQuery siteDataQuery, Boolean
    useSpQueryOnList)     bij Microsoft.SharePoint.Publishing.CachedArea.GetCrossListQueryResults(SPSiteDataQuery query, SPWeb currentContext, Boolean onlyPopulateCache, Boolean useSpQueryOnList, Int32 lcid)     bij Microsoft.SharePoint.Publishing.CrossListQueryCache.GetSiteDataResults(CachedArea
    cachedArea, SPWeb web, SPSiteDataQuery query, Boolean useSpQueryOnList)     bij Microsoft.SharePoint.Publishing.CrossListQueryCache.GetSiteDataResults(CachedArea ca, Boolean useSpQueryOnList)     bij Microsoft.SharePoint.Publishing.CrossListQueryCache.GetSiteDataResults(SPSite
    site, String webUrl, Boolean useSpQueryOnList)     bij Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.IssueQuery()     bij Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.GetXPathNavigator(String
    viewPath)     bij Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)     bij Microsoft.SharePoint.WebPartPages.DataFormWebPart.PerformSelect()    
    bij Microsoft.SharePoint.WebPartPages.DataFormWebPart.DataBind()     bij Microsoft.SharePoint.WebPartPages.DataFormWebPart.EnsureDataBound()     bij Microsoft.SharePoint.WebPartPages.DataFormWebPart.CreateChildControls()    
    bij System.Web.UI.Control.EnsureChildControls()     bij System.Web.UI.Control.PreRenderRecursiveInternal()     bij System.Web.UI.Control.PreRenderRecursiveInternal()     bij System.Web.UI.Control.PreRenderRecursiveInternal()    
    bij System.Web.UI.Control.PreRenderRecursiveInternal()     bij System.Web.UI.Control.PreRenderRecursiveInternal()     bij System.Web.UI.Control.PreRenderRecursiveInternal()     bij System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     bij System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     bij System.Web.UI.Page.ProcessRequest()    
    bij System.Web.UI.Page.ProcessRequest(HttpContext context)     bij ASP.BLANKWEBPARTPAGE_ASPX_1653093133.ProcessRequest(HttpContext context)     bij Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext
    context)     bij System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     bij System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)    
    bij System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)     bij System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)     bij System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
    wr, HttpContext context)     bij System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     bij System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
    managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     bij System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32
    flags)     bij System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 1971313a-6baa-49e9-bace-d024ce67f25c

  • Unable to update, when executed table gets lock and Execution does not stop even for an hour.

    Following is my Query, which unables to update. When Executed, table gets lock and Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, Its very Important to get solve as all my further work depends on Updation
    , THANKS IN ADVANCE.

    See also your other thread with the same question:
    http://social.msdn.microsoft.com/Forums/en-US/80243625-fc3b-4ee1-bce1-4adcdbc16c14/unable-to-update-when-executed-table-gets-lock-execution-does-not-stop-execution-even-for-an-hour?forum=sqlserversamples
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Waiting for approval item does not execute attached procedure !

    Hi.
    Using 3.0.8 on Solaris.
    Create one custom item type and associate one on plsql procedure to be run in place when item is listed within its folder.
    Go to folder, add item, look for the plsql result : Good it's working !
    After that create an item as a create with approval ACL and come back as folder owner, look at the plsql result : NOTHING !!!
    My PLSQL procedure is displaying some attributs in order for the folder owner to approve or not the waiting item. So if wainting for approval items does not execute associated plsql function as they are "waiting" (active=0) then I've got some problems!
    Any suggestions ?

    Hi all,
    Thanks very much for your feedback.
    In reply to Brian's suggestions
    1. I checked to see if WS14500013 was defined as general task; it was not and this has has now been rectified. Went through the other workflows also.
    Double checked the contents of the tables:
    APPROVAL_TABLE, ITEM_APPROVAL_TABLE, ITEM_APPROVAL_OBJECT.
    All appeared OK.
    Created a simple one line SC. Invoked approval preview and the message: 'Approval step without ad-hoc capability. No preview possible' was displayed. This is odd since WS14500015 and sub-workflows do not use AD-HOC approval. Or am I not understanding this correctly.
    Followed Smitas suggestions but to no effect.
    Here are the contents of the said tables which I lifted from the workflow tables:
    Again, many thanks for your responses...
    **APPROVAL_TABLE****
    NAME="APPROVERLIST:ApproverList:"   <APPROVAL_INDEX>0000000001</APPROVAL_INDEX>
    <APPROVAL_BRANCH>0000000001
    <APPROVAL_AGENT>USMGRR11000 
    <APPROVAL_STATE>0000000002 
    <INITIAL_AGENT>USMGRR11000
    <INITIAL_INDEX>0000000002
    **ITEM_APPROVAL_OBJECT***.
    NAME="ITEMAPPOBJTABLE:ItemAppObjTable:" - <item>
      <SC_GUID>957117374BC6434882B0BFD5462A2724</SC_GUID>
      <APP_CRIT_NAME1>COST_CTR</APP_CRIT_NAME1>
      <APP_CRIT_NAME2>ORDER_NO</APP_CRIT_NAME2>
      <APP_CRIT_NAME3 />
      <APP_CRIT_VALUE1>R11000</APP_CRIT_VALUE1>
      <APP_CRIT_VALUE2 />
      <APP_CRIT_VALUE3 />
      <APPROVAL_OBJECT_GUID>9E6EFAC500B681458284BBB60BF99C8A
    *****ITEM_APPROVAL_TABLE***,
    NAME="APPROVALITEMLIST:ApprovalItemList:"
    <item>
    <APPROVAL_OBJECT_GUID>9E6EFAC500B681458284BBB60BF99C8A  <APPROVAL_ITEM_GUID>1137519335F51C4DB3D2844A8AD484C0

  • SQLGrammarException: could not execute query

    Hello,
    I created a table with the script belove in a Derby database and created Entity Class for that.
    create table "BAHADIR"."User"
         "id" NUMERIC(5) not null primary key,
         "name" VARCHAR(25),
         "email" VARCHAR(100),
         "password" VARCHAR(25),
         "role" VARCHAR(25)
    )In my controller class there's a method like that:
        public int getItemCount() {
            EntityManager em = getEntityManager();
            try{
                int count = ((Long) em.createQuery("select count(o) from User as o").getSingleResult()).intValue();
                return count;
            } finally {
                em.close();
        }When this method is called I get that exception stack:
    HTTP Status 500 -
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
    root cause
    javax.el.ELException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
    root cause
    javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
    root cause
    org.hibernate.exception.SQLGrammarException: could not execute query
    root cause
    java.sql.SQLSyntaxErrorException: Syntax error: Encountered "User" at line 1, column 42.
    root cause
    org.apache.derby.client.am.SqlException: Syntax error: Encountered "User" at line 1, column 42.
    note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.
    Sun Java System Application Server 9.1
    What does these mean? The IDE created the access method automatically, so it can not be wrong. So where's the error?
    Thanks.

    By fixing the HQL query that results in the query that is wrong. So step 1: trace down which HQL query is causing the misery. Step 2: turn on SQL logging to see which sql is generated for that HQL query. Step 3: figure out what is wrong. I can guess that there is something wrong with the annotations on an entity, like declaring something as nullable while it is in fact not according to the database schema. Another common culprit is using a name that is a reserved SQL keyword.
    EDIT:
    'from limit And the keyword name clash is the cause here. Limit is an SQL keyword in MySQL, so you can't use that as a table name.

  • 'ServerProperty' with 'Name' = 'Language' does not exist in the collection

    LS,
    One of my customers (using ssas 2012) is facing collation issues which result in missing facts in the cubes. I suggested them  to have a look at the Analysis Server Properties. Howevere, on selection of the Analysis Services Properties page 'Language-Collation',
    it doesn't open the page showing the properties, but instead the following message pops up:
    'ServerProperty' with 'Name' = 'Language' does not exist in the collection
    Any ideas on what could have caused this and how it can be fixed ?
    We're considereing a restart of the SSAS server, but need to be very carefull because it's their production environment.
    Appreciate your help,
    Kind regards,
    Cees
    Please remember to mark replies as answers or at least vote helpfull if they help and unmark them if they provide no help.

    I am also experiencing this error when clicking on the Language/Collation page of the Analysis Services Properties dialog.
    I suspect this is causing some other strange behavior such as an "invalid characters in hierarchy names" error when deploying an SSAS database, when the same solution/project can be deployed successfully from other machines. In that case, there are parenthesis
    in the attribute name but no user-defined hierarchies. Error:
    Errors in the metadata manager. The name, 'Project ID (Description)', for the cube hierarchy is not valid because this name is a reserved word, contains one or more invalid characters (.,;'`:/\*|?"&%$!+=()[]{}<>), or is longer than 100 characters.
    I would like to avoid having to re-install SSAS if at all possible. Any help is much appreciated.
    LB

  • When I touch my iPad screen to execute an app, the screen goes dark then the app icon reappears. The app does not execute.

    When I touch my iPad screen to execute an app, then the screen goes dark then the app icon reappears. The app does not execute. Any thoughts?

    Try a Reset...
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    Basic troubleshooting
    From Here
    http://www.apple.com/support/ipad/basics/

  • 2.1 EA2 does not display query results, query works fine in sqlplus

    2.1 EA2/Windows XP 32-bit
    The following query does not show any results for Total(GB) and Free(GB) columns. The diskgroup name shows correctly.
    SELECT
    DG.name ,
    ROUND(SUM(DSK.TOTAL_MB)/1024,2) "Total (GB)",
    round(SUM(DSK.FREE_MB)/1024,2) "Free (GB)"
    FROM
    V$ASM_DISK DSK,
    V$ASM_DISKGROUP DG
    WHERE
    DSK.GROUP_NUMBER=DG.GROUP_NUMBER
    group by DG.name;
    The query works fine when run from SQL*Plus:
    SQL> SELECT
    2 DG.name ,
    3 ROUND(SUM(DSK.TOTAL_MB)/1024,2) "Total (GB)",
    4 round(SUM(DSK.FREE_MB)/1024,2) "Free (GB)"
    5 FROM
    6 V$ASM_DISK DSK,
    7 V$ASM_DISKGROUP DG
    8 WHERE
    9 DSK.GROUP_NUMBER=DG.GROUP_NUMBER
    10 GROUP BY DG.name;
    NAME Total (GB) Free (GB)
    DG1 707.98 162.32
    DG2 134.84 122.68
    SQL>
    This must be something unique to SQLDeveloper. I tested in 2.1 EA1 and 1.5.5.59.69 and the query does not show results for the Total (GB) and Free (GB) columns.

    I would like to update the problem. It seems like when SQLDeveloper is connected to ASM instance, it has trouble using the divide operator (/). For example, the following query works fine:
    SELECT
    name,
    TOTAL_MB
    FROM
    V$ASM_DISKGROUP;
    But if I try to divide the TOTAL_MB by any number, the column shows blank (the column is blank, not NULL). So, if I try to run the following query, the output will just display diskgroup names. The TOTAL_MB/1024 column shows blank.
    SELECT
    name,
    TOTAL_MB/1024
    FROM
    V$ASM_DISKGROUP;
    If I run the same query in SQL*Plus from the same desktop using the same TNS alias, it works just fine which tells me that it is a SQLDeveloper problem.
    When I am connected to a regular database, then the problem does not show up and SQLDeveloper is able to display the results even when I am using the divide operator (/).

  • Org.hibernate.exception.GenericJDBCException: could not execute query

    while executing sql statements with hibernate oracle this type of errors
    org.hibernate.exception.GenericJDBCException: could not execute query
    ava.sql.SQLException: ORA-01001: cursore non valido can any one suggest
    a solution for this.
    Thanks

    This is likely due to a commit/rollback being executed after the statement has been executed but befofre the result set has been processed by the application. In TimesTen, unlike Oracle, commit/rollback closes all open cursors on the connection. This could be a case of using the wrong Hibernate dialect. Are you using a TimesTen dialect in Hibernate?
    Chris

  • Global succession updates are limited to 500 relationships. If more than 500 exist PLM presents a warning message and does not execute the update

    Global succession updates are limited to 500 relationships. If more than 500 exist PLM presents a warning message and does not execute the update.
    How/Where to increase the relationship count?
    The message which I can see :
    Warning:
    This specification has exceeded the number of parent relationships allowed by Where Used. The Where Used tool only supports up to 500 parent relationships.
    Thanks

    This really brings up a larger topic around change management.
    The questions you should start with is
    1. What kind of change is happening to the raw material? 
    2. Will this change affect anything upstream inside or outside of PLM4P? (Will this change affect nutrition, compliance, the ingredient statement, the label etc?)
    3. Who needs to approve this change?
    If they are non-material changes (changes that don't affect theoretical calculations, the ingredient statement, labeling, upstream systems that need to be notified etc) then you should be using get latest revision instead of global succession.   Get Latest Revision will automatically switch out the material with the latest approved version.  This logic is also configurable in case you need to add additional guard conditions.   We can also provide guidance around locking the get latest revision lock once a specification has reached the retired/obsolete state so changes won't occur for specifications in those statuses.
    If the changes to the raw material are material changes (changes that affect calculations, labeling etc) then the change should be reflected with a copy of the specification.  Dependent specifications then need to be re-issued so calculations can be performed and the appropriate workflow reviews can occur.   Smart Issue allows for filtering based on status and should let you re-issue in smaller blocks. 
    Let me know more about your change management strategy, how often large material changes happen and maybe example causes for those mass changes.  We can also schedule a change management training session for everyone where we can share our vision and tools available for change management.  This topic is quite large and generally requires a lot of business process discussion beyond just the tools available. 
    Thanks
    Kelly

  • Getting error ORA-20001: This person does not have preferences for the sele

    *) I got user_id by following query
    SELECT USER_ID, USER_NAME, FND_USER.*
    from FND_USER where user_name = '205174';
    *) resource_id by following query:
    select * from APPS.PA_PROJECT_ASSIGNMENTS where RESOURCE_ID in (select RESOURCE_ID from APPS.PA_RESOURCES_DENORM where PERSON_ID
    in (select PERSON_ID from APPS.PER_ALL_PEOPLE_F where EMPLOYEE_NUMBER= 205173) ) ;
    *) person_id by following query:
    select * from APPS.PA_RESOURCES_DENORM where PERSON_ID in (select PERSON_ID from APPS.PER_ALL_PEOPLE_F where EMPLOYEE_NUMBER= 205173) ;
    and
    Hi,
    When I am running following query to submit timesheet, getting following warning msg
    anonymous block completed
    ORA-20001: This person does not have preferences for the selected effective date
    Following is query
    set serveroutput on size 1000000
    DECLARE
    l_tbl_messages hxc_message_table_type;
    l_message fnd_new_messages.message_text%type;
    i pls_integer;
    l_app_blocks hxc_block_table_type := hxc_block_table_type();
    l_app_attributes hxc_self_service_time_deposit.app_attributes_info;
    l_time_building_block_id number;
    l_new_timecard_id number;
    l_new_timecard_ovn number;
    l_bb_id number;
    l_resource_id hxc_time_building_blocks.resource_id%TYPE := 3595; -- XPCPAY
    l_start_time hxc_time_building_blocks.start_time%TYPE := fnd_date.canonical_to_date('2011/10/17 00:00:00');
    l_measure hxc_time_building_blocks.measure%TYPE := 1;
    l_element_type_id varchar2(80) := 'ELEMENT - 50809'; -- Jury Duty
    l_comment_text hxc_time_building_blocks.comment_text%TYPE := '';
    l_deposit_process hxc_deposit_processes.NAME%TYPE := 'OTL Deposit Process';
    l_retrieval_process varchar2(250) := 'BEE Retrieval Process';
    BEGIN
    fnd_global.apps_initialize ( user_id => 3850 -- XPCPAY
    , resp_id => 3595 -- Self Service Time
    , resp_appl_id => 809 -- HXC
    hxc_timestore_deposit.create_time_entry ( p_measure => l_measure
    , p_day => l_start_time
    , p_resource_id => l_resource_id
    , p_resource_type => 'PERSON'
    , p_comment_text => l_comment_text
    , p_deposit_process => l_deposit_process
    , p_app_blocks => l_app_blocks
    , p_app_attributes => l_app_attributes
    , p_time_building_block_id => l_bb_id
    hxc_timestore_deposit.create_attribute ( p_building_block_id => l_bb_id
    , p_attribute_name => 'Dummy Element Context'
    , p_attribute_value => l_element_type_id
    , p_deposit_process => l_deposit_process
    , p_app_attributes => l_app_attributes
    hxc_timestore_deposit.execute_deposit_process ( p_validate => TRUE
    , p_app_blocks => l_app_blocks
    , p_app_attributes => l_app_attributes
    , p_messages => l_tbl_messages
    , p_mode => 'SUBMIT'
    , p_deposit_process => l_deposit_process
    , p_retrieval_process => l_retrieval_process
    , p_timecard_id => l_new_timecard_id
    , p_timecard_ovn => l_new_timecard_ovn
    -- OUTPUT MESSAGES --
    DBMS_OUTPUT.put_line ('l_new_timecard_id = ' || l_new_timecard_id);
    DBMS_OUTPUT.put_line ('l_new_timecard_ovn = ' || l_new_timecard_ovn);
    if (l_tbl_messages.COUNT <> 0) THEN
    i := l_tbl_messages.FIRST;
    LOOP
    EXIT WHEN (NOT l_tbl_messages.EXISTS(i));
    l_message := fnd_message.get_string ( appin => l_tbl_messages(i).application_short_name
    , namein => l_tbl_messages(i).message_name
    DBMS_OUTPUT.put_line (l_tbl_messages(i).message_name);
    DBMS_OUTPUT.put_line (l_message);
    i := l_tbl_messages.NEXT(i);
    END LOOP;
    rollback;
    else
    commit;
    end if;
    exception
         when others then
              DBMS_OUTPUT.put_line(SQLERRM);
    END;
    /

    Please check the following MOS notes:
    ORA-20001: This Person Does Not Have Preferences For the Selected Effective Date [ID 876324.1]
    ORA-20001: This Person Does Not Have Preferences For The Selected Effective Date [ID 761470.1]
    Troubleshooting Guide for HRMS API Errors - ORA-20001 and APP Errors [ID 152259.1]
    ''This Person Does Not Have Preferences For The Selected Effective Date'' Message [ID 287581.1]
    Diagnostics - Setup - Time and labour Person - Test failed [ID 397214.1]
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

  • Actions does not executed on quotation saved.

    Hi,
    Actions does not executed on quotation save.
    Action profiles has been created as per my production system.
    In production system it is executing properly. but in development system it does not get triggered.
    Pls suggest.
    Points will be rewarded.
    Thanks

    Hi Vinayak
    U can check in 'Define Conditions' for the actions and see whether the actions for the Action profile have been scheduled or not.
    On the left hand side u get the action profiles. U can right click on that and schedule the actions.
    Plz reward points if it helps.
    Thanks and regards
    Debolina

  • Query for collection "Quick Fix Engineering"

    Hi!
    I try to create query for collection,to find all workstation with install specific KB, from "Quick Fix Engineering".
    Added by this sample:
    http://myitforum.com/myitforumwp/2011/10/04/non-security-hotfix-detection-for-windows-7-2008/
    Maybe you can help? Can not find an example :(
    cenubit

    That's made a lot simpler in ConfigMgr 2012, as it can now simply be selected as an extra class in the
    Hardware Inventory of your client settings.
    Simply go in to your client settings, go to Hardware Inventory
    and click Set Classes. Here you can select the Quick Fix Engineering class to be part of your inventory.
    After an inventory you will be able to create your collection. Do keep in mind that this will also capture a lot of information that you will probably never use.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • User does not have authorization for InfoProvider

    Hi,
         We are in BI 7.0 and want to display the data in the cube that I created and loaded data to. In RSA1, I am do a right click on the cube and select "display data". I am getting to selection screen and after selecting the output fields and executing, I am getting the following error:
    User XXX does not have authorization for InfoProvider ZFREDC
    The long text is like this:
    You do not have sufficient authorization
    Message no. EYE007
    Diagnosis
    You do not have sufficient authorization for the requested data records.
    Procedure
    Either select other data or get the required authorizations from your administrator.
    I did a authorization check in SU53 after I got the error and it says the last authorization check was successful.
    Can somebody suggest me what to do. If there are any authorization objects that I need to have in my role?
    Thanks.

    Hi,
    Be sure to have authorisation object S_RS_ICUBE assigned with at least activity 03 (execute) and subobject data and agregate for the respective cube(s) or infoarea(s).
    Regards, Patrick Rieken.
    Message was edited by:
            Patrick Rieken - BI-Formance B.V.

Maybe you are looking for