Unable to fetch Data with apps_query_role

Hi Guru,
There is some issue on fetching data with my database account i have apps_query_role i can fect the data from devlopemnet instance.
which checked in devlopemnt instance:
select * from all_directories
I am getting data
When doing same thing in prod i am getting no row selected. Please help here.

Hi,
it would be hard to guess the things.. Try to check the session_privs from your current session with prod,
Try to check privs granted on directories to specific to your account or not.
- Pavan Kumar N

Similar Messages

  • Crystal Reports XI - Unable to fetch data error

    Hi all,
    I get the below error when i click next or previous buton in my report after navigating the report for about 5 to ten minutes.
    JRCAgent3 detected an exception: Unable to fetch data for the subreport 'Subreport1' at this position.
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.eA(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.E(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.aB(Unknown Source)
    at com.businessobjects.reports.sdk.b.b.byte(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPage(Unknown Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b2.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
    at com.crystaldecisions.report.web.event.av.a(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
    at com.dnb.asip.report.viewer.ReportViewerTag.doEndTag(ReportViewerTag.java:94)
    at org.apache.jsp.Reports.JSP.VIPReport_jsp._jspService(VIPReport_jsp.java:247)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:534)
    any help woul be greatly appreciated.
    some times i get the below error
    "com.crystaldecisions.reports.queryengine.bo: The position is already past the end of the rowset." I am getting very wired errors but not in the same page everytime. what could be the issue?
    Thanks,
    Prem

    hi,
      These are the other exception which i get while clicking the buttons in my report after navigating for sometime.
    I get DatabaseVerify error for all the subreports in my report since i have checked verify on first refresh option. can i remove that option? I am using a JDBC/JNDI connection.So the database will change in the runtime depending upon development ,CERT or production environment
    here are few other wierd errors that occurs to me. All these error doesnt occur consistently,They all occur after accessin the report for some period of time(10 mins)
    1. Exception:java.lang.outofMemory
    2. A message is shown as Error 1 in the UI but the log shows 'the Unable to fecth data for subreport exception',  agian the Message in the UI is not conistent sometime it is 1 and sometimes it is 0
    3. when i click on the prevoius,last,nextor first after acessing the report for a lon time i get this exception
    RCAgent2 detected an exception: Error fetching total page count: Unable to fetch data for the subreport 'Subreport74' at this position.
    at com.businessobjects.reports.sdk.b.b.a(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    4.When i click on the search button some times i get the below exception
    Exception:
    com.crystaldecisions.reports.formatter.formatter.c: Invalid data position
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.aB(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.b.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.b.do(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.b.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.b.a(Unknown Source)
    at com.businessobjects.reports.sdk.b.b.try(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.findText(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.findText(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.findText(Unknown Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.findText(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.u.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
    at com.crystaldecisions.report.web.event.av.a(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
    at com.dnb.asip.report.viewer.ReportViewerTag.doEndTag(ReportViewerTag.java:92)
    at org.apache.jsp.Reports.JSP.VIPReport_jsp._jspService(VIPReport_jsp.java:251)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: com.crystaldecisions.reports.dataengine.ag: Invalid data position
    at com.crystaldecisions.reports.dataengine.bk.V(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.n(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.n(Unknown Source)
    ... 71 more
    4.Too many open files Error message is shown in the UI wheni try to load my report.
    5. I get the below exception when accessin the report for a long time.
    Exception:
    JRCAgent2 detected an exception: java.lang.NullPointerException
    at com.crystaldecisions.reports.dataengine.bk.new(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.do(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.int(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.G(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.eA(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.E(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.aB(Unknown Source)
    at com.businessobjects.reports.sdk.b.b.byte(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPage(Unknown Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b2.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
    at com.crystaldecisions.report.web.event.av.a(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
    at com.dnb.asip.report.viewer.ReportViewerTag.doEndTag(ReportViewerTag.java:94)
    at org.apache.jsp.Reports.JSP.VIPReport_jsp._jspService(VIPReport_jsp.java:237)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:534)
    Am i missing out something very basic:-s Do i need to put any entry in my CRConfig.xml?
    I am using JDTS JDBC Driver to connect to my Database and JBoss4.04 A is my application server
    Sincerely,
    Prem

  • Unable to fetch data using control-blocks

    Hi,
    I have created two non base table text items(from_date, to_date) and if values are not entered from front end i.e. null then hadrcoded in pre_query trigger to default values as from_date (system date-present month-last year) and to_date(system date-present month-present year).when i have pressed the fetch button without giving values to from_date and to_date,it is retrieving data in default period,which i ahave hardcoded in PRE_QUERY trigger.But even i enter values dynamically from front end and when ever i press fetch button ,it is retrieving data in default period instead giving data in specified duration what i have entered dynamically from front end. i.e. it is not accepting values what i have entered.
    any one please help me.
    oracle forms 10g version:10.1.2.0.2
    Thanks and Regards
    Ram

    hi,
    Thanks for ur feedback.
    here query is executed. My problem is,unable to fetch data in specified period,what i have entered dynamically.Even i entered dynamically,it is fetching data in default period(Which i have hardcoded in PRE_QUERY).
    below code is ,what i have hardcoded in PRE_QUERY
    :GLOBAL.DFROMDT := NULL;
    :GLOBAL.DTODT := NULL;
    IF :HEADER_BLOCK.NBTFROMDT is NULL THEN
    SELECT TO_DATE('10'||'/'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MM')||'/'||
    TO_CHAR(ADD_MONTHS(SYSDATE,-12),'YYYY'),'DD/MM/YYYY')
    INTO :HEADER_BLOCK.NBTFROMDT FROM SYS.DUAL ;
    END IF;
    IF :HEADER_BLOCK.NBTTODT IS NULL THEN           
         SELECT SYSDATE INTO :HEADER_BLOCK.NBTTODT
         FROM SYS.DUAL;
    END IF;
    IF :HEADER_BLOCK.NBTFROMDT IS NOT NULL
    OR :HEADER_BLOCK.NBTTODT IS NOT NULL THEN
    :GLOBAL.DFROMDT := :HEADER_BLOCK.NBTFROMDT;
    :GLOBAL.DTODT := :HEADER_BLOCK.NBTTODT;
    END IF;
    IF :DETAIL_BLOCK.nbtFjdDrCrInd IS NOT NULL THEN
         svWhere_String := 'WHERE FJH_VCHR_DT BETWEEN '''||nvl(:GLOBAL.DFROMDT,TO_DATE(:GLOBAL.DFROMDT,'DD/MM/YYYY'))||''' AND '||
    ''''||NVL(:GLOBAL.DTODT,TO_DATE(SYSDATE,'DD/MM/YYYY'))||''')';
         Set_Block_Property('DETAIL_BLOCK',DEFAULT_WHERE,svWhere_String);
    ELSE
         Set_Block_Property('DETAIL_BLOCK',DEFAULT_WHERE,' ');
    END IF;

  • Entity Framework Query - Unable to fetch data

    I am working on a WPF application and using Entity framework 6.0
    I have written following query to fetch data from database but could not fetch any data:
    var customersList = context.Customers.Include(x => x.ReturnedCustomerItems.Select(y => y.ReturnedLotItem)).Where(x => x.IsDeleted != false).ToList();
    Notes:
    1. context: Database Context Object
    2. Customers: DbSet for Customer's table
    3. ReturnedCustomerItems: List of Customer Items to be returned.
    4. ReturnedLotItem: Lot Item corresponding to Returned Customer Item. Each Customer Item will have a corresponding lot item..
    Following is the SQL Query I have written to check whether data exits inside database:
    select * from
    transportapp.dbo.customer cust,
    transportapp.dbo.ReturnedCustomerItem ret,
    transportapp.dbo.ReturnedLotItem item
    where
    cust.CustomerId = ret.CustomerId
    and ret.BookingItemId = item.BookingItemId
    As output I got the following data records:
    Following is the Table structure generated by Entity Framework:
    CREATE TABLE [dbo].[ReturnedCustomerItem] (
    [BookingItemId] INT NOT NULL,
    [IsDeleted] BIT NOT NULL,
    [CustomerId] INT NOT NULL,
    [ReturnCharge] DECIMAL (18, 2) NOT NULL,
    [DemurrageCharge] DECIMAL (18, 2) NOT NULL,
    [Weight] DECIMAL (18, 2) NOT NULL,
    [Quantity] INT NOT NULL,
    [ReturnDate] DATETIME NOT NULL,
    [Status] NVARCHAR (100) NULL,
    CONSTRAINT [PK_dbo.ReturnedCustomerItem] PRIMARY KEY CLUSTERED ([BookingItemId] ASC),
    CONSTRAINT [FK_dbo.ReturnedCustomerItem_dbo.Customer_CustomerId] FOREIGN KEY ([CustomerId]) REFERENCES [dbo].[Customer] ([CustomerId]) ON DELETE CASCADE,
    CONSTRAINT [FK_dbo.ReturnedCustomerItem_dbo.ReturnedLotItem_BookingItemId] FOREIGN KEY ([BookingItemId]) REFERENCES [dbo].[ReturnedLotItem] ([BookingItemId])
    CREATE TABLE [dbo].[ReturnedLotItem] (
    [BookingItemId] INT NOT NULL,
    [IsDeleted] BIT NOT NULL,
    [IsReturned] BIT NOT NULL,
    [ReturnCharge] DECIMAL (18, 2) NOT NULL,
    [DemurrageCharge] DECIMAL (18, 2) NOT NULL,
    [Weight] DECIMAL (18, 2) NOT NULL,
    [Quantity] INT NOT NULL,
    [LotId] INT NOT NULL,
    [LotItemId] INT NOT NULL,
    CONSTRAINT [PK_dbo.ReturnedLotItem] PRIMARY KEY CLUSTERED ([BookingItemId] ASC),
    CONSTRAINT [FK_dbo.ReturnedLotItem_dbo.BookingItem_BookingItemId] FOREIGN KEY ([BookingItemId]) REFERENCES [dbo].[BookingItem] ([BookingItemId]),
    CONSTRAINT [FK_dbo.ReturnedLotItem_dbo.ReturnedLot_LotId] FOREIGN KEY ([LotId]) REFERENCES [dbo].[ReturnedLot] ([LotId]) ON DELETE CASCADE,
    CONSTRAINT [FK_dbo.ReturnedLotItem_dbo.LotItem_LotItemId] FOREIGN KEY ([LotItemId]) REFERENCES [dbo].[LotItem] ([BookingItemId]) ON DELETE CASCADE
    I am unable to debug the LINQ expression where I am going wrong. Need help in identifying the mistake.
    Thanks!!
    NB

    The best way of debugging the SQL is to change the where portion
    1) First eliminate the 'where'
    2) Run with only one where statement  : cust.CustomerId
    = ret.CustomerId
    3) Run with the other where : ret.BookingItemId
    = item.BookingItemId
    Then compare the 3 results.  Your database may not contain any data that has both where statements true.
    jdweng

  • Unable to fetch data in embedded Xcelsius PDF file on disconnected system

    I have an Xcelsius 2008 document with QaaWS. I am able to export it to the PDF and fetch data using QaaWS.
    I would like to know, it is possible for the embedded Xcelsius file in PDF to fetch data when the PDF file is sent to customers outside the network.
    We are using Business Objects XI 3.1, Xcelsius 2008, QaaWS, MS SQL Server 2008
    Thanks in advance.

    Hi,
    When you send the PDF file for the dashboard you have created in Xcelsius, it takes it with the data available in embeded excel.  You need not send the data separetly with the PDF.
    However, if the data changes, you need to save the dashboard again in PDF format and send it to the user community.
    Hope I answered your question.
    Regards,
    Rashmi

  • Unable to fetch data from R/3

    hi
    i have a few questions regarding data extraction from R/3 into BI 7.0. I am giving the steps that i followed for the same.
    1. Created 2 char infoobjects vbeln,posnr. 1 keyfigure 0Gross_wt (unit 0UNIT_OF_WT)
    2. In R/3 went into RSA5 activated SAP-R/3(SAP Application components) >> SD >> Activated 2LIS_11_VAITM (Sales Document Item Data)
    3. In RSA6 double-clicked 2LIS_11_VAITM - all fields i.e POSNR, POSNR and BRGEW are present. these are the fields that I am mapping in the proposal.
    4. In BI, RSA1 >> source systems >> SAP (RFC to R/3) >> SAP Application components >> Sales and Distribution >> replicate metadata >> got 2LIS_11_VAITM in the list (but under sales Master Data, There is no App. Comp. for item data).
    5. Checked fields in the datasource.
    6. Created infopackage >> in schedule >> Start data fetch >> Got mesage : Data was requested.
    7. In Infoprovider >> created an Infocube >> added the chareacteristics and keyfigures to it.
    8. created Transformation >> mapped the fields >> activated >> created DTP with : Extraction  mode = Full >> Update >> error handling = request green >> activate.
    9. Execute tabe >> executed.
    10.Monitor message >> No more data available >> 0 records updated.
    a. What am i doing wrong? data is available in R/3 tables VBAk and VBAP.
    I tried the same steps for uploading Customer as Master data under the infoarea and was able to get the records in BI.
    b. How do i create Transfer rules and Update rules while fetching data. Could you give me the steps.
    c. Are the steps the same if i try using an ODS object instead of an Infocube?
    Please help
    Thanx
    Sujai

    Goto SBIW tcode in the source system.
    And follow the path.
    Business Information Warehouse -> Settings for Application-Specific DataSources -> Logistics -> Managing Extract Structures -> Initialization -> Filling in the Setup Table -> Application-Specific Setup of Statistical Data
    Select your component.
    Also before filling you need to delete them.
    You can do it in tcode LBWG.
    Regards.

  • Any sample program to fetch data with JSP from MySQL

    Hi,
    Anybody can you ple give me a sample code to fetch data from MySQL and show it.
    Database server : localhost
    Databasename : test
    Database User : root
    Database Password : (database have no password)
    Table Name : category
    Table column name : catName
    I am trying the following code, but it gives error:
    exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    <%@ page import="java.sql.*" %>
    <%
    String connectionURL = "jdbc:mysql://localhost:3306/test";
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    %>
    <html><body>
    <%
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    connection = DriverManager.getConnection(connectionURL, "root", "");
    statement = connection.createStatement();
    rs = statement.executeQuery("SELECT * FROM category");
    while (rs.next()) {
    out.println(rs.getString("catName")+"<br>");
    rs.close();
    %>
    </body></html>
    any help is appreciated.
    ---Sujoy

    Just replace the following code. I think it will work for u.
    <%@ page import="java.sql.*" %>
    <%
    try{
    String connectionURL = "jdbc:mysql://localhost:3306/test";
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    Class.forName("com.mysql.jdbc.Driver");
    connection = DriverManager.getConnection(connectionURL, "root", "");
    statement = connection.createStatement();
    rs = statement.executeQuery("SELECT * FROM category");
    %>
    <html><body>
    <table>
    <%
    while(rs.next())
    %>
    <tr><td><%=rs.getString("catName")%></td></tr>
    <%
    %>
    </table>
    </body>
    </html>
    <%
    rs.close();
    statement.close();
    connection.close();
    catch(Exception e)
           e.printStackTrace();
    finally()
      try{
       rs.close();
       statement.close();
       connection.close();
      catch(Exception e)
            e.printStackTrace();
    %>

  • Suggestion on using SwingThreads to fetch data with Stateless Sessin Beans

    Hi,
    I have developed a GUI application using Swing.
    Using this GUI user will be able to view data (Tabular representation)fetched from database using Stateless session beans. In the application there will be two tabs and data should be fetched based on filtering parameters like Id which is a combo box. So if the user changes the comboBox selection, the data should be updated in two tabs irrespective of current tab focus.
    Currently I'have not used any Threading concept while fetching data. I have made calls based on Tab focus. But plans to use SwingThread SwingUtilities class. But it has problems of asychronous communication. So if anyone has faced problems using swing thread for doing database access using stateless session beans can throw somelight on this to avoid problems which may come later.
    In simpler terms using Swing threads have to make two or three EJB calls and fetch data from database and update the Table data.
    Thanks.

    Your user response time should not necessarily increase. You could load your data for the selected tab first and update the display after each response. This is simply showing information as soon as it becomes available rather than waiting for the entire operation (2 remote calls) to complete.
    If you use 2 Threads you might get this anyway but should ensure that your EJB calls happen in parallel otherwise you should work out the best order for them yourself.
    I'm not sure I'd say that you'd get synchronisation issues. You might get data issues whereby, as you rightly say, one of your calls returns an error. This shouldn't cause too many problems but you will need to make sure you've got suitable error-handling code and the ability to convey errors to the user.
    Personally, if the calls were dependent on each other I'd make them one after another in the same Thread rather than trying to coordinate two concurrent remote calls.
    If you're worried about the overhead of two remote calls in series then you can always expose another stateless session bean method that will perform both calls (or however many you want) for you in one remote call, thereby cutting down the overhead and simplifying your client development.
    Hope this helps.

  • Unable to load data with impdp

    Hi friends,
    I've encountered with follwing errors while loading data through impdp utility.
    ORA-31626: job does not exist
    ORA-31633: unable to create master table "TRACE.SYS_IMPORT_FULL_05"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPV$FT", line 863
    ORA-00955: insufficient privileges
    I think problem is with last line ORA-00955: insufficient privileges what are you opinion kindly tell me what necessary priviliges user should have to import/export dump file.
    Looking for you Help and suggestion
    Regards,
    Abbasi

    Is this dumpfile consists of onlyTRACE schema objects or other schema objects?
    no need to grant dba priviliges to trace, you can import using sys/system user.
    impdp system/****@TNRDB directory=tnr_dump_dir dumpfile-tnrsms.dmp logfile=loading.logThanks

  • User able to select the table,yet unable to fetch data..Strange!!

    Hi Experts,
    I have a USER who is being granted a SELECT priv on particular table. He tried to fetch the data, but yeilds 0 bytes at the end..
    Here is a detail:
    GRANTEE OWNER TABLE_NAME GRANTOR PRIVILEGE GRA HIE
    UMA DNBPRIME DNB_SKAR_PEOPLE DNBPRIME SELECT NO NO
    SQL> connect uma/******
    Connected.
    SQL> select count(*) from dnbprime.dnb_skar_people where fragmentindicator = 1304;
    COUNT(*)
    0
    For me it is quite strange, but I guess some security policy may be in place. But the issue is my client wants to fetch the data. What should I do Now.
    Regards,

    >
    So It seem s I was bit right..There are some FINE GRAINED ACCESS restrictions in place..
    >
    Based on what? Just because SB suggested it?
    If you did some checking and found there is some RLS in place post what you did and what the results were. This forum is to help everyone understand what is happening not just to answer your question.
    >
    I have a USER who is being granted a SELECT priv on particular table. He tried to fetch the data, but yeilds 0 bytes at the end..
    >
    That user was granted privileges to see their data. They don't have any data to see.
    >
    Any workaround to fetch the data.
    >
    Sure - look through your DBAs desk and computer when they are at lunch. Often they will leave their password written down somewhere and you can sneak a copy of it.
    That way you can violate your company's security policy whenever you want and if anything bad happens they will blame the DBA.
    The 'workaround' is to get permission for the RLS policy to be changed or permission for the user to use a different account that can see the data.

  • Adaptive RFC problem-unable to fetch data.

    Dear experts,
    I am porting a webdynpro application from a sandbox server to the develpment server.The application talks to six different functional modules via JCO connections.Out of the six , two of them are custom modules.The problem is that the application is not able to retrieve the details from one of the two custom modules.Rest all are working fine.I have created the same JCO destinations as the sandbox server.The two funtional modules are also copied from the sandbox R/3 to the development R/3.Also the webdynpro code is the same.
    When i execute the faulty FM in the backend , its working fine .However the application is not able to retrieve the data from it.I tried isolating the FM and creating a test application based on the FM.There also its not giving any data.When i re-imported it to the test project it did give some delta warnings.I suspect something wrong with FM. But don't know what is wrong.
    Any help will be appreciated.
    Thanks,
    Karambir Singh

    hi,
    if JCOs are wotking fine then check these for faulty FM.
    1) Through external debugging check out if proper values are being sent to backend or not(for external debugging goto transaction code se37, open your bapi->goto Utilities->Setting->Debugging->Here check if "Act" check box is activated or not), then put a break point in code and run application from WD.
    2) If proper values are sent to backend then check in WD if output node is recieving values as output or not, using
    wdContext.node<output node containing values>.size()
    3) If proper values are coming in output node ie if it is showing size non zero for valid parameter in import then check if the node is properly bind to UI element .
    If you are using table control then best way is use Apply template method in the context menu of RootUIElement of view.
    4) or finaly check if any exception is thrown while executing model object.
    if this doesnt solve your problem then please post the error or exception details if any.
    hope it helps
    regards

  • Fetching Data with dates

    Hi Experts,
    I am having this scenario.
    PERNR          BEGDA          ENDDA
    000001          01.01.2006     13.01.2007
    000001          14.01.2007     31.12.9999
    000002          14.01.1982     12.11.2006
    000002          13.11.2006     31.01.2007
    000002          01.02.2007     31.12.9999
    This is the scenario my requirement is like that if I will enter PERNR = 1 then it will display 14.01.2007 record. And if I will enter PERNR = 2 then it will display 13.11.2006.
    Regards,
    Rajneesh Gupta

    i don know why u r such awkward requirements.but instead of going for simple HR,u shud go for ABAP-Hr and then write ur code.use LDB PNP.
    and use Get pernr event and then move ur concerned data to ur output internal table.
    Get pernr event will fetch all the Infotype records for the concerned pernr and then u can have particular one in ur iutput table as per ur requirement.
    demo code for using LDBs -
    tables: pernr.
    infotypes: 0021.
    *eject
    *& Constants                                                           *
    constants: c_1(1)       type c               value '1' .
    data: begin of t_output occurs 0,
           num_dep(2) type n,
           pernr like pernr-pernr.
    data: end of t_output.
    data: count type i.
    *eject
    *& Initialization                                                      *
    Initialization.
    Initialize Selection-Screen values
    perform init_selction_screen.
    Start-of-selection.
    get pernr.
      clear t_output.
    Read Infotype 0021
      rp-provide-from-last p0021 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    Gather all the required information related to the emp
      describe table p0021 lines count.
      move: pernr-pernr to t_output-pernr,
            count to t_output-num_dep.
      append t_output.
      Clear count.
    *eject
    *& End-of Selection                                                    *
    end-of-selection.
      perform print_report.
    *eject
    *&      Form  print_report
    *Description:
    FORM print_report .
    Print the report
      loop at t_output.
      skip 1.
      at sum
      write: 2 t_output-pernr,
             15 t_output-num_dep.
      endloop.
    ENDFORM.                    " print_report

  • Unable to fetch data for the second time in an ADOBE form

    Hi All,
    I am creating a PDF form and its data is based on the output parameter of an interface, when i drag and drop an object from the data view into the body page twice, only the first time the value is getting printed and from the second time it is not printing any data.
    Kindly let me know if any one have solution for the same or if i am not clear any where.
    Thanks in advance.
    Warm Regards,
    Kasi Raaman.R

    The pbm is now solved

  • Unable to load data with data source 2LIS_04_P_COMP

    trying to load ARBPL,MATNR and COMP of PP detailed setup.
    Due to the design error (as per SAP) I am trying to load (instead of deactivating the MATNR datasource)from each datasource seperately, each time deleting the setup table.( that is : load setup table for B confirmations and then run init in BW take it to delta. then delete the setup table fill setup table with goods issue (c) and run init in bw aN TAKE IT DELTA)
    i could finish the first step,load confirmations and run delta, but when iam doing it for COMP OR MATNR the setup tables are filling( as shown in np)but no records are being brought into BW when i ran init.
    please help

    Hello Experts
    Kindly let me know what may cause this. or let me know if any one is also facing the same issue.
    Regards

  • Unable to fetch data (socket not connected)????

    What the heck does that mean?  I was able to get on Facebook this morning but now its giving me that error message.  I rebooting and its still doing the same thing.  Any ideas??

    Hi
    Check for the outbound queue Tx SMQ1 in R3, and inbound queue Tx SMQ2 in SRM and also the log Tx SLG1 in SRM.
    What errors you are getting...?
    Regards
    Reddy

Maybe you are looking for

  • Applications not working after upgrade from apex 3.2 to apex 4

    hi, we've created an application with apex 3.2 which works fine. today we upgraded apex 3.2 to apex 4. after the upgrade the application doesn't work anymore. we recognized the following things: - interactive reports don't work anymore - tabs don't w

  • Excise number Range Maintenance

    How to maintain Excise number Range and in which object we have to maintain number range for domestic /export etc

  • Ipod not working ... and not recognized by itunes suddenly

    Sorry if you see this mail somewhere else. The 'new post' was not showing. I cannot seem to start a new thread. There is no 'new topic' at the top of my screen. So, I am going add this this thread as its the close to my problem My ipod, one day sudde

  • Heres a new one !make path from selection  adobe CS4 problems

    Hello   Ive had CS4 for about a week and i Tried make a path from selection with alliptical tool and it comes out all wonky  only rectangle tool is true to the its shape anything else is bugged. Ive deleted the settings folder on start up,reinstalled

  • Drilldown on line chart w/3 series to 3 different pie charts w/ DV

    Hello experts,     My situation is the following. I have a Line chart representing sales on 3 different series(actual, budget and last year) along the 12 months. Then 3 different pie chart that link the office sales of each serie and each month. I su