Selecting first N characters when querying the CMS
I am trying to retrieve only the first 6 characters of the SI_KEYWORDS field when querying the CMS from within the SDK. When testing within QueryBuilder the following in bold does not work, although LEFT is a command for achieving this in SQL. Can someone help me to know if this is possible within QueryBuilder SQL and if so how to achieve it?
Select LEFT(SI_KEYWORD,6) as keyword, SI_NAME From CI_INFOOBJECTS, CI_SYSTEMOBJECTS, CI_APPOBJECTS WHere SI_KIND='webi'
and SI_KEYWORD != '' and SI_KEYWORD != 'Hidden' and SI_KEYWORD != 'Auditor'
ORDER BY keyword, SI_NAME
Thanks,
Dave
Hi Ted,
Thanks for your reply. I understand the querying of the CMS better after reading it.
We are utilizing the keywords field and the description field to obtain some metadata about our reports that I need to access from java code. Unfortunately, we have 4 different pieces of metadata we want to store and only the 2 fields in which to store them, so we are using delimiters in the keywords field to separate the values. For example, we have "value1value2" as the keyword field in one report, but in another report if value2 is blank we simply have "value1". This works well as we just parse the delimiters in java and we can store the 2 different values in the one keyword field. The part that is not working well with this approach, though, is ordering the results. We want to order the reports by value1 and then by SI_NAME. Because some of the reports have value1value2 and others just have value1 it throws this ordering off if I use "ORDER BY SI_KEYWORD, SI_NAME".
I've been looking for ways to get around this without doing a re-sort in Java and this is all I could think of:
1. Are there some additional user-defined fields that we could expose in the report properties in the CMC, and then retrieve via Query Builder / SDK? Something like SI_UDF1, SI_UDF2, etc. All we could find were keywords and description.
2. Using a SUBSTR or LEFT-like function on the keywords field so that it only gets value1 for sorting purposes only, but still retrieve the entire keywords field in the SELECT. I understand now based on your explanation that this will not work as (if I understand correctly) it would modify the report object in the CMS to set the keyword to the truncated value.
Any advice you could offer would be greatly appreciated. I know I can always bite the bullet and do the sorting java-side once I get the resultset back, but I was hoping to avoid the performance hit of doing that.
Thanks,
Dave
Similar Messages
-
Query for selecting first 3 characters of name of any person
query for selecting first 3 characters of name of any person
10:52:44 SQL> SELECT SUBSTR(ename, 1, 3) first_three FROM emp;
FIRST_THREE
SMI
ALL
WAR
JON
MAR
BLA
CLA
SCO
KIN
TUR
ADA
FIRST_THREE
JAM
FOR
MIL
Ton
15 rows selected.
Elapsed: 00:00:00.00 -
Intermittent errors when querying the AD
HI,
We recently replaced 2 old windows 2003 dc'S with windows 2008r2 dc'S. All is working ok except on odd occasions when query the AD i get errors such as "Server not operational" or "Domain does not exist" Everything looks correct on DNS
and there are no entries for the old servers so i am looking at alternatives. If i run wireshark i get entries such as
192.168.180.132 192.168.180.255 NBNS 92 Name query NB XXXXXXX
192.168.180.132 is the ip of a standard workstation
192.168.180.255 is an ip that has no harware associated with it
XXXXXX is the server name for one of the old servers i removed
not sure if this is realted or not, but i think both need to be resolved.
New to all this, can anybody guide on where to start
Thansk
Garethrunning standard dcdiag produces:
DC1
Directory Server Diagnosis
Performing initial setup:
Trying to find home server...
Home Server = JIGSAWFS6
* Identified AD Forest.
Done gathering initial info.
Doing initial required tests
Testing server: Default-First-Site-Name\JIGSAWFS6
Starting test: Connectivity
......................... JIGSAWFS6 passed test Connectivity
Doing primary tests
Testing server: Default-First-Site-Name\JIGSAWFS6
Starting test: Advertising
......................... JIGSAWFS6 passed test Advertising
Starting test: FrsEvent
......................... JIGSAWFS6 passed test FrsEvent
Starting test: DFSREvent
......................... JIGSAWFS6 passed test DFSREvent
Starting test: SysVolCheck
......................... JIGSAWFS6 passed test SysVolCheck
Starting test: KccEvent
......................... JIGSAWFS6 passed test KccEvent
Starting test: KnowsOfRoleHolders
......................... JIGSAWFS6 passed test KnowsOfRoleHolders
Starting test: MachineAccount
......................... JIGSAWFS6 passed test MachineAccount
Starting test: NCSecDesc
Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
Replicating Directory Changes In Filtered Set
access rights for the naming context:
DC=ForestDnsZones,DC=jigsawtransport,DC=com
Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
Replicating Directory Changes In Filtered Set
access rights for the naming context:
DC=DomainDnsZones,DC=jigsawtransport,DC=com
......................... JIGSAWFS6 failed test NCSecDesc
Starting test: NetLogons
......................... JIGSAWFS6 passed test NetLogons
Starting test: ObjectsReplicated
......................... JIGSAWFS6 passed test ObjectsReplicated
Starting test: Replications
......................... JIGSAWFS6 passed test Replications
Starting test: RidManager
......................... JIGSAWFS6 passed test RidManager
Starting test: Services
......................... JIGSAWFS6 passed test Services
Starting test: SystemLog
An error event occurred. EventID: 0xC0002719
Time Generated: 12/06/2013 09:29:59
Event String:
DCOM was unable to communicate with the computer 8.8.8.8 using any of the configured protocols.
......................... JIGSAWFS6 failed test SystemLog
Starting test: VerifyReferences
......................... JIGSAWFS6 passed test VerifyReferences
Running partition tests on : ForestDnsZones
Starting test: CheckSDRefDom
......................... ForestDnsZones passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... ForestDnsZones passed test
CrossRefValidation
Running partition tests on : DomainDnsZones
Starting test: CheckSDRefDom
......................... DomainDnsZones passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... DomainDnsZones passed test
CrossRefValidation
Running partition tests on : Schema
Starting test: CheckSDRefDom
......................... Schema passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... Schema passed test CrossRefValidation
Running partition tests on : Configuration
Starting test: CheckSDRefDom
......................... Configuration passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... Configuration passed test CrossRefValidation
Running partition tests on : jigsawtransport
Starting test: CheckSDRefDom
......................... jigsawtransport passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... jigsawtransport passed test
CrossRefValidation
Running enterprise tests on : jigsawtransport.com
Starting test: LocatorCheck
......................... jigsawtransport.com passed test LocatorCheck
Starting test: Intersite
......................... jigsawtransport.com passed test Intersite
DC2
Directory Server Diagnosis
Performing initial setup:
Trying to find home server...
Home Server = JIGSAWFS8
* Identified AD Forest.
Done gathering initial info.
Doing initial required tests
Testing server: Default-First-Site-Name\JIGSAWFS8
Starting test: Connectivity
......................... JIGSAWFS8 passed test Connectivity
Doing primary tests
Testing server: Default-First-Site-Name\JIGSAWFS8
Starting test: Advertising
......................... JIGSAWFS8 passed test Advertising
Starting test: FrsEvent
......................... JIGSAWFS8 passed test FrsEvent
Starting test: DFSREvent
......................... JIGSAWFS8 passed test DFSREvent
Starting test: SysVolCheck
......................... JIGSAWFS8 passed test SysVolCheck
Starting test: KccEvent
......................... JIGSAWFS8 passed test KccEvent
Starting test: KnowsOfRoleHolders
......................... JIGSAWFS8 passed test KnowsOfRoleHolders
Starting test: MachineAccount
......................... JIGSAWFS8 passed test MachineAccount
Starting test: NCSecDesc
Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
Replicating Directory Changes In Filtered Set
access rights for the naming context:
DC=ForestDnsZones,DC=jigsawtransport,DC=com
Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
Replicating Directory Changes In Filtered Set
access rights for the naming context:
DC=DomainDnsZones,DC=jigsawtransport,DC=com
......................... JIGSAWFS8 failed test NCSecDesc
Starting test: NetLogons
......................... JIGSAWFS8 passed test NetLogons
Starting test: ObjectsReplicated
......................... JIGSAWFS8 passed test ObjectsReplicated
Starting test: Replications
......................... JIGSAWFS8 passed test Replications
Starting test: RidManager
......................... JIGSAWFS8 passed test RidManager
Starting test: Services
......................... JIGSAWFS8 passed test Services
Starting test: SystemLog
An Error Event occurred. EventID: 0xC0002719
Time Generated: 12/06/2013 09:31:07
EvtFormatMessage failed, error 15100 Win32 Error 15100.
(Event String (event log = System) could not be retrieved, error
0x3afc)
......................... JIGSAWFS8 failed test SystemLog
Starting test: VerifyReferences
......................... JIGSAWFS8 passed test VerifyReferences
Running partition tests on : ForestDnsZones
Starting test: CheckSDRefDom
......................... ForestDnsZones passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... ForestDnsZones passed test
CrossRefValidation
Running partition tests on : DomainDnsZones
Starting test: CheckSDRefDom
......................... DomainDnsZones passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... DomainDnsZones passed test
CrossRefValidation
Running partition tests on : Schema
Starting test: CheckSDRefDom
......................... Schema passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... Schema passed test CrossRefValidation
Running partition tests on : Configuration
Starting test: CheckSDRefDom
......................... Configuration passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... Configuration passed test CrossRefValidation
Running partition tests on : jigsawtransport
Starting test: CheckSDRefDom
......................... jigsawtransport passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... jigsawtransport passed test
CrossRefValidation
Running enterprise tests on : jigsawtransport.com
Starting test: LocatorCheck
......................... jigsawtransport.com passed test LocatorCheck
Starting test: Intersite
......................... jigsawtransport.com passed test Intersite -
App-v 5.0 SP2 hotfix 5, an error occurred when querying the App-V WMI provider
Hi,
We have installed App-v 5.0 SP2 + hotfix 5 (via SCCM 2012 R2 CU1) on some Windows 7 clients. That worked fine but no app-v applications go through.
Error:
AppVPackageQueryClient5X::GetPackageDataByPackageGUID() failed for virtual application [a835fa1-f82a-4efe-957a-8c6678d4a431]. (0x87d01290) AppVHandler 5/08/2014 10:23:56 3440 (0x0D70)
CAppV5XHandler::DiscoverIndividuleApp() failed. (0x87d01290) AppVHandler 5/08/2014 10:23:56 3440 (0x0D70)
+++ Discovery of application [AppDT Id: ScopeId_8B8D93AF-5181-48FE-9202-2CFE5FC93EE2/DeploymentType_50eba242-3688-4b4f-9b61-84f0123f667d, Revision: 7] returned an error (0x87d01290). AppVHandler 5/08/2014 10:23:56
3440 (0x0D70)
CAppV5XHandler::DiscoverApp() failed. (0x87d01290) AppVHandler 5/08/2014 10:23:56 3440 (0x0D70)
Deployment type detection failed with error 0x87d01290. AppDiscovery 5/08/2014 10:23:56 3440 (0x0D70)
Failed to perform detection of app deployment type Microsoft - Console, revision 6) for user. Error 0x87d01290 AppDiscovery 5/08/2014 10:23:56 3440 (0x0D70)
Error = 0x87d01290 = An error occurred when querying the App-V WMI provider.
Please advise on this specific error. Should we look for corruption in app-v client, problem in sccm client ...?
J.
Jan Hoedt
Update: clients which don't have problems are client which had hotfix 4 THEN hotfix 5 installed. Should we install it that order? Client WITH problems have App-v 5.0 SP2 then hotfix 5 directly.
Update2: I installed the app-v client via setup.exe, the hotfix 4 also via setup.exe but since it installed all language packs, I decided to extract hotfix 5 and use the msp.
Could that be cause of the issue? I could use the exe of hotfix 5 but then I need to be sure how NOT to install all the language packs.I think we found a solution ourselves.
My update2 (question) explains it:
Update2: I installed the app-v client via setup.exe, the hotfix 4 also via setup.exe but since it installed all language packs, I decided to extract hotfix 5 and use the msp.
Could that be cause of the issue? I could use the exe of hotfix 5 but then I need to be sure how NOT to install all the language packs.
We installed App-v 5.0 SP2 via exe then installed hotfix via msp (extracted msp), this doesn't seem to work (though installation was succesfull). When we deploy the hotfix via the exe it works correctly.
Not sure why though.
Jan Hoedt -
How to delete first few characters from all the elements of an array of strings
hi
I have a 2-dimensional array of strings length 104. I have to delete first 6 characters from all the elements of array and then change the strings to int. how to do it?? plz helpAttached you can find the screenshot showing how to do so.
Bye!
Licia
Attachments:
array.jpg 14 KB -
Cannot rename file with non-ASCII characters when using the
My application moves files from one directory to another by calling File[] srcFiles = srcDir.listFiles() to get a list of files in the source directory, and then calling srcFiles.renameTo(destFile) to rename each file.
This does not work (renameTo returns false and the file is not moved) under the following circumstances:
- the file's leaf name contains non-ASCII characters, for example "�"
- the OS is Solaris 9
- the LANG and LC_* environment variables are unset, i.e. the C locale is being used
If I set the LANG environment variable to, for example, en_GB.UTF-8 then the rename succeeds.
I have tried calling srcFiles[index].getName().getBytes("UTF-8") and the non-ASCII characters are being replaced with ? (0x3f) characters when LANG is unset.
Is this a bug in the JRE? I would argue that since my code does not actually manipulate the filename (I just use the File object that File.listFiles() gives me) then the rename should succeed. Of course I would not expect the file name to be displayed correctly if I printed it out.
I have reproduced this behaviour with JDK 1.4.2_05 and 1.5.0_04 on Solaris 9.
FrancisThanks for the info Alan.
I considered setting the locale in the environment (this sounds like the "correct" fix to me and we might implement it later), but this application shares a WebLogic server with many other applications so we would have to do a huge amount of testing to make sure that the locale change wouldn't break the other apps. In the end I worked around the problem by making the code that generates the filenames in the first place strip out any non-ASCII characters (the names of the files are not critically important).
Looking forward to JSR-203, in the meantime perhaps a note about this behaviour in the java.io.File javadoc would be useful. -
Exception when querying the database
Hi
I'm using jtds driver to connect to the database, it's been working fine all along and now all of a sudden it's giving exceptions when I query the database and It requires me to logout and login to my application again.
The exception is as follows
javax.servlet.ServletException: Could not execute query
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
net.sf.hibernate.exception.GenericJDBCException: Could not execute query
at net.sf.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:80)
at net.sf.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:69)
at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at net.sf.hibernate.impl.SessionImpl.convert(SessionImpl.java:4131)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1557)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1523)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: Invalid state, the Connection object is closed.
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkOpen(ConnectionJDBC2.java:1305)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareStatement(ConnectionJDBC2.java:1978)
at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:216)
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:323)
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:263)
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:236)
at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:67)
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:784)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:269)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Loader.java:1054)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554)
... 42 moreCan it maybe be the large size of the dabase?
What can be wrong?java.sql.SQLException: Invalid state, the Connection object is closed
It answers your question to an extent. Check if your connection or recordset object is closed
cheers,
Siddhs -
Selection screen is missing when query is executed
Hi Friends,
I am running a query and it gets executed without showing the selection screen. Here it is how I am running the query:
1. Go to Business Explorer (3.x)-->Analyser(3.x)
2. IT ask for SAP Log on
3. I choose system which is 7.0
then it runs without showing any selection screen.
If I run the same query in 3.x system it shows the selection screen and all.
Any idea about it???
Your help will be appreciated in terms of points.
ThanksHi,
We have the same architecture (3.x BEx Explorer and BI 7.0) and we have no such problems (we are at SP 15).
It could be due to the personalisation of variables (if all variables are personalized).
On the other hand it could be the SAP error, have you tried to search for the problem in OSS?
Regards,
Kirill -
Cannot have multiple items selected in a DropDownList when edit the forum in sharepoint
hi ,
i have custom forum for new and edit, in new forum we have controls drop down values, when select drop down1 values that related values are displayed in dropdown2 , when edit item that time we getting error
Cannot have multiple items selected in a DropDownList.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Cannot have multiple items selected in a DropDownList.
Source Error:
HttpException (0x80004005): Cannot have multiple items selected in a DropDownList.]
System.Web.UI.WebControls.DropDownList.VerifyMultiSelect() +124
System.Web.UI.WebControls.ListControl.RenderContents(HtmlTextWriter writer) +10956501
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +42
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +13
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +42
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42
ASP._controltemplates_amat_appayrequest_webparts_appayrequest_appayrequestusercontrol_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\AMAT.APPayRequest.Webparts\APPayRequest\APPayRequestUserControl.ascx:350
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Page.Render(HtmlTextWriter writer) +38
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240Hello,
Could you please share your code with us? Also explain how you are binding DDL.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Display the selecting business role page when launching the transaction
Dear experts,
According to the following URL,
I configured Transaction Launcher to launch CRM GUI transaction.
[https://websmp207.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000311352008E]
1. Create BOR Object Type
2. Define Logical System and Assign ITS URL
3. Use Transaction Launcher Wizard
4. Create Logical Link
I try to launch CRM GUI transaction,
but selecting business role page is displayed(not CRM GUI transaction).
Could you please help us out?
Regards,
Takehiko KurosawaIf i recall correctly from PS2, business role pages are pages that are only visible in the personal space of users. Normaly users can create there own pages in there own personal space. When you create business role pages, these pages will be available in everybody's personal space.
That's why they are not available in a custom group space. Business role pages are bound to the personal space.
If you want to role out pages to a specific department than you can solve this by using permissions. Create your business page in your custom space and set the permissions so that only people from a specific department can see the page. Therefore you need to put all your users from a specific department in a group. -
I can't select Photoshop CC 2014 when using the "Open with" menu in Windows 7
I have recently installed CC 2014, and uninstalled my CC version. When I go to a jpeg, or any image file in windows explorer, I right-click and "open with" and it isn't listed on my program list to open the file with. I click on "browse programs", find the exe file in adobe-photoshop cc2014 folder and click OK, and it just goes back to the open with menu with no option for photoshop.
Any ideas on how I can get it on that list, so I can open these files from the file location, instead of opening up photoshop and then searching for the file location within photoshop?
Also, I don't have any problems opening up the pictures from within photoshop, just within windows explorer.I'm having a similar problem, but only with jpg's. I have PS CS6, CC, and CC 2014. Other image file formats function normally with regard to the "open with" list. PS CC 2014 appears on the list. But with jpg's only PS CC appears on the "open with" list and 2014 can't be added by the browsing for it.
The curious thing is that if I have any of the three versions of Photoshop open, click on Photoshop CC in the "open with" list, the image opens in whatever version is already open on my computer. This is true of all image formats. No matter which version I pick from the "open with" list it opens in the currently running program. I use only the latest version so keeping it open all the time is an easy work around. I won't uninstall any of the earlier versions lest more file association quirks result. it would be nice to have this matter fixed. -
How to link two modules of data when querying the data ?
Hi ,
I am using Designer editor to create a form .
I am having two modules with the tables EMPLOYEE and department .
In my form ,I want to display the data of each employee with the department data .
How to link the two tables data in the designer ?
How to View the generated triggers in the designer ?
Thanks
SaiTwo modules means two forms. These are unrelated.
Or do you mean that you have one form with two blocks (master-detail)?
How to link the two tables data in the designer ?You have to define the foreign key on the tables. Based on this FK Forms Generator will generate the code if you create two Module Components (master-detail) in the module. Don't forget to define the Key Based Link on the master block.
How to View the generated triggers in the designer ?You can't. You have tom open the generated FMB file in Forms Builder to see what code is generated. -
I have used lightroom for ~2 years and have lightroom 5.5 installed on a PC. Yesterday evening I uploaded a new set of photos which I cataloged and rated as usual. After that when I switched to the develop module trouble began. First thing was when using the crop tool the picture would disappear and only reappear once I closed the tool. Then exposure and White balance changes would change the histogram but not the appearance of the photo. Finally clipping was also not appearing on the picture. I first reuploaded the photos. No effect. Then I reinstalled lightroom. No effect. Help please!
Try deleting your preferences file
How do I delete the Lightroom Preferences file? - The Lightroom Queen Help Desk & Members Area - Powered by Kayako Resol… -
Delay when querying from CUBE_TABLE object, what is it?
Hi Guys,
We are using Oracle OLAP 11.2.0.2.0 with an 11g Cube, 7 Dimensions, Compressed and partitioned by Month.
We have run into a performance issue when implementing OBIEE.
The main issue we have is a delay while drilling on a hierarchy. Users have been waiting 7-12 seconds per drill on a hierarchy, and the query is only returning a few cells of data. We have managed to isolate this to slow performing queries on CUBE_TABLE.
For example, the following query returns one cell of data:
SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
WHERE
FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
AND FINSTMNT_VIEW.COMPANY IN ('E01' )
AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
AND FINSTMNT_VIEW.PRODUCT IN ('PT' )
AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
AND FINSTMNT_VIEW.SITE IN ('C010885' )
AND FINSTMNT_VIEW.TIME IN ('JUN11' ) ;
1 Row selected in 4.524 Seconds
Note: FINSTMNT_VIEW is the automatically generated cube view.
CREATE OR REPLACE FORCE VIEW "SCHEMA1"."FINSTMNT_VIEW" ("BASE","REPORT_TYPE", "COMPANY", "SCENARIO", "PRODUCT", "ACCOUNT", "SITE", "TIME")
AS
SELECT "BASE", "REPORT_TYPE", "COMPANY", "SCENARIO", "PRODUCT", "ACCOUNT", "SITE", "TIME"
FROM TABLE(CUBE_TABLE('"SCHEMA1"."FINSTMNT"') ) ;
If we increase the amount of data returned by adding to the query, it only increased the query time by .4 seconds
SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
WHERE
FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
AND FINSTMNT_VIEW.COMPANY IN ('E01' )
AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
AND FINSTMNT_VIEW.PRODUCT IN ('PT' )
AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
AND FINSTMNT_VIEW.SITE IN ('C010885', 'C010886', 'C010891', 'C010892', 'C010887', 'C010888', 'C010897', 'C010893', 'C010890', 'C010894', 'C010896', 'C010899' )
AND FINSTMNT_VIEW.TIME IN ('JUN11' ) ;
12 rows selected - In 4.977 Seconds
If we increase the data returned even more:
SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
WHERE
FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
AND FINSTMNT_VIEW.COMPANY IN ('ET', 'E01', 'E02', 'E03', 'E04' )
AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
AND FINSTMNT_VIEW.PRODUCT IN ('PT', 'P00' )
AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
AND FINSTMNT_VIEW.SITE IN ('C010885', 'C010886', 'C010891', 'C010892', 'C010887', 'C010888', 'C010897', 'C010893', 'C010890', 'C010894', 'C010896', 'C010899' )
AND FINSTMNT_VIEW.TIME IN ('JUN11', 'JUL11', 'AUG11', 'SEP11', 'OCT11', 'NOV11', 'DEC11', 'JAN12') ;
118 rows selected - In 14.213 Seconds
If we take the time for each query and divide by the number of rows, we can see that querying more data results in a much more efficient query:
Time/Rows returned:
1 Row - 4.524
12 Rows - 0.4147
118 Rows - 0.120449153
It seems like there is an initial delay of approx 4 seconds when querying the CUBE_TABLE object. Using AWM to query the same data using LIMIT and RPR is almost instantaneous...
Can anyone explain what this delay is, and if there is any way to optimise the query?
Could it be the AW getting attached before each query?
Big thanks to anyone that can help!Thanks Nasar,
I have run a number of queries with logging enabled, the things you mentioned all look good:
Loop Optimization: GDILoopOpt COMPLETED
Selection filter: FILTER_LIMITS_FAST 7
ROWS_FAILED_FILTER 0
ROWS_RETURNED 1
Predicates: 7 pruned out of 7 predicates
The longest action I have seen in the log is the PAGING operation... but I do not see this on all queries.
Time Total Time OPERATION
2.263 27.864 PAGING DYN_PAGEPOOL TRACE GREW 9926KB to 59577KB
1.825 25.601 PAGING DYN_PAGEPOOL TRACE GREW 8274KB to 49651KB
1.498 23.776 PAGING DYN_PAGEPOOL TRACE GREW 6895KB to 41377KB
1.232 22.278 PAGING DYN_PAGEPOOL TRACE GREW 5747KB to 34482KB
1.17 21.046 PAGING DYN_PAGEPOOL TRACE GREW 4788KB to 28735KB
1.03 19.876 PAGING DYN_PAGEPOOL TRACE GREW 3990KB to 23947KB
2.808 18.846 PAGING DYN_PAGEPOOL TRACE GREW 3325KB to 19957KB
What is strange is that the cube operation log does not account for all of the query time. For example:
SELECT "BASE_LVL" FROM TABLE(CUBE_TABLE('"EXAMPLE"."FINSTMNT"'))
WHERE
"RPT_TYPE" = 'MTD' AND
"ENTITY" = 'ET' AND
"SCENARIO" = 'ACTUAL' AND
"PRODUCT" = 'PT' AND
"GL_ACCOUNT" = 'APBIT' AND
"CENTRE" = 'TOTAL' AND
"TIME" = 'YR09';
This query returns in 6.006 seconds using SQL Developer, if I then take the CUBE_OPERATION_LOG for this query and subtract the start time from the end time, I only get 1.67 seconds. This leaves 4.3 seconds unaccounted for... This is the same with the my other queries, see actual time and logged time below:
Query Actual Logged Variance
S3 6.006 1.67 4.336
L1 18.128 13.776 4.352
S1 4.461 0.203 4.258
L2 4.696 0.39 4.306
S2 5.882 1.575 4.307
Any ideas on what this could be or how I can capture this 4.3 second overhead?
Your help has been greatly appreciated. -
ORA-00604 ORA-00904 When query partitioned table with partitioned indexes
Got ORA-00604 ORA-00904 When query partitioned table with partitioned indexes in the data warehouse environment.
Query runs fine when query the partitioned table without partitioned indexes.
Here is the query.
SELECT al2.vdc_name, al7.model_series_name, COUNT (DISTINCT (al1.vin)),
al27.accessory_code
FROM vlc.veh_vdc_accessorization_fact al1,
vlc.vdc_dim al2,
vlc.model_attribute_dim al7,
vlc.ppo_list_dim al18,
vlc.ppo_list_indiv_type_dim al23,
vlc.accy_type_dim al27
WHERE ( al2.vdc_id = al1.vdc_location_id
AND al7.model_attribute_id = al1.model_attribute_id
AND al18.mydppolist_id = al1.ppo_list_id
AND al23.mydppolist_id = al18.mydppolist_id
AND al23.mydaccytyp_id = al27.mydaccytyp_id
AND ( al7.model_series_name IN ('SCION TC', 'SCION XA', 'SCION XB')
AND al2.vdc_name IN
('PORT OF BALTIMORE',
'PORT OF JACKSONVILLE - LEXUS',
'PORT OF LONG BEACH',
'PORT OF NEWARK',
'PORT OF PORTLAND'
AND al27.accessory_code IN ('42', '43', '44', '45')
GROUP BY al2.vdc_name, al7.model_series_name, al27.accessory_codeI would recommend that you post this at the following OTN forum:
Database - General
General Database Discussions
and perhaps at:
Oracle Warehouse Builder
Warehouse Builder
The Oracle OLAP forum typically does not cover general data warehousing topics.
Maybe you are looking for
-
Return a record with the newest date.
I have a table called credit, and the following columns: Rep_Date Rep_Name Rep_Code Rep_Plan I am looking for a query that will return only the record based on the most recent Rep_date, this record will then be joined to another table based on the Re
-
Missing printer drivers - can't add new drivers
I printed without any problems yesterday. Last night, I applied the latest drivers via Software Update (a lengthy list that just came out within the last week, including 10.4.8) and now all my printer drivers are gone. I have 2 printers connected dir
-
Connection Broker not redirecting sessions to the particular host
I have configured 2 session brokers with high availability & this 2 session brokers are clustered. I have 4 Remote Desktop Session Host server which are configured on according with the Department. I have given access to particular department to part
-
C7 Social: Unable to connect to Gateway!!!
Hello All, When i'm trying to use Social client in C7 getting the message "Unable to connect to Gateway". It was working fine for some days. Any idea why this issue is occurring?? How to overcome from this?? Thanks, Abhilash.
-
It's all in the title.