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

Similar Messages

  • 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;

  • 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 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.

  • 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

  • Ad-Hoc Query: Unable to fetch IT0008 fields......Help.

    Hi,
    I have build an infoset on ldb PCH and have enabled object type 'S'. The requirement is to get IT1005 and IT0008 fields in one query.
    The infotypes selected includes the PA infotypes 0001, 0002, 0007 & 0008.
    While building a query i get data from all PA infotypes except IT0008. Any fields selected from IT0008 is blank in the output.
    How could I get IT0008 data fields?
    Amit

    Hi,
    Try using infosets based on other logical data base PNP or PAP.
    InfoSets based on PCH database enable you to use InfoSet Query to select objects of one object type, such as business events, qualifications, and positions. so this may not allow IT0008. I am not sure. But using PNP LDB should help.
    If you have recieved answer to your question. Please allot points and close the question.
    Let me know if you need more information on this.
    Thanks,
    Dhiraj

  • Sql query required to fetch data in desired format.

    Hi All,
    Greetings,
    I have 1 table called sessioninfo. below are the table structure and table data,
    CREATE TABLE HR.SESSIONINFO
    REPORT_DATE DATE,
    REPORT_TIME VARCHAR2(100 BYTE),
    SESSION1 NUMBER,
    SESSION2 NUMBER,
    SESSION3 NUMBER,
    SESSION4 NUMBER,
    SESSION5 NUMBER,
    SESSION6 NUMBER,
    SESSION7 NUMBER,
    SESSION8 NUMBER,
    SESSION9 NUMBER,
    SESSION10 NUMBER,
    SESSION11 NUMBER,
    SESSION12 NUMBER,
    SESSION13 NUMBER,
    SESSION14 NUMBER,
    SESSION15 NUMBER,
    SESSION16 NUMBER,
    SESSION17 NUMBER,
    SESSION18 NUMBER,
    SESSION19 NUMBER,
    SESSION20 NUMBER,
    SESSION21 NUMBER,
    SESSION22 NUMBER,
    SESSION23 NUMBER,
    SESSION24 NUMBER,
    SESSION25 NUMBER,
    SESSION26 NUMBER,
    SESSION27 NUMBER,
    SESSION28 NUMBER,
    SESSION29 NUMBER,
    SESSION30 NUMBER,
    SESSION31 NUMBER,
    SESSION32 NUMBER,
    SESSION33 NUMBER,
    SESSION34 NUMBER,
    SESSION35 NUMBER,
    SESSION36 NUMBER,
    SESSION37 NUMBER,
    SESSION38 NUMBER,
    SESSION39 NUMBER,
    SESSION40 NUMBER,
    SESSION41 NUMBER,
    SESSION42 NUMBER,
    SESSION43 NUMBER
    REPORT_DATE     REPORT_TIME     SESSION1     SESSION2     SESSION4     SESSION5     SESSION6     SESSION7     SESSION8     SESSION9     SESSION10     SESSION11     SESSION14     SESSION15     SESSION16     SESSION17     SESSION18     SESSION19     SESSION20     SESSION21     SESSION22     SESSION23     SESSION24     SESSION25     SESSION26     SESSION27     SESSION30     SESSION31     SESSION32     SESSION35     SESSION36     SESSION37     SESSION38     SESSION40     SESSION41     SESSION42     SESSION43
    8/22/2011     7:01:00     2     1     2               2               1          2     1     2     1     1     1     1     1     2     1     1     0     1     2     2     0     1     1     2     2     2     2     1     1     2
    8/22/2011     7:15:41     1     2     2               2               2          3     1     2     2     1     1     1     1     2     3     1     3     2     2     5     1     1     2     1     2     1     2     1     1     1
    8/22/2011     7:30:45     1     1     4               3               2          3     2     2     3     2     1     2     2     1     2     1     2     2     2     2     2     3     2     1     2     2     2     2     1     2
    8/22/2011     7:46:10     1     2     1               2               2          2     3     3     3     1     1     3     4     3     1     5     3     3     2     2     3     3     2     3     3     2     3     2     2     2
    8/22/2011     8:01:05     5     5     7               4               2          3     3     5     2     6     2     3     2     3     4     4     3     3     4     4     2     4     3     4     2     3     4     3     3     4
    8/22/2011     8:15:48     2     4     4               4               5          3     3     3     3     4     3     4     4     4     3     3     5     4     4     4     7     3     3     4     3     3     3     5     4     5
    8/22/2011     8:30:50     4     5     3               5               4          3     5     5     5     4     5     5     6     5     4     6     7     3     3     5     7     5     4     4     4     4     5     8     3     4
    8/22/2011     8:45:42     4     7     5               5               6          5     4     5     4     4     6     4     6     4     7     5     4     4     7     5     7     5     5     5     6     3     7     6     5     5
    8/22/2011     9:01:24          5     6               6               5          3     6     8     6     7     6     4     5     4     7     7     5     6     4     7     5     4     5     4     4     5     6     11     4     6
    8/22/2011     9:15:56     5     6     4               4               4          6     6     4     13     5     8     5     4     6     3     5     4     6     8     5     5     6     7     5     5     7     5     7     6     8
    8/22/2011     9:30:45     7     7     5               5               12          7     4     5     5     6     15     8     6     7     9     9     5     6     5     5     6     5     5     8     9     9     7     5     7     8
    8/22/2011     9:45:41     5     10     7               8               7          6     7     5     6     8     8     7     7     9     5     6     7     9     7     8     6     11     6     10     8     10     6     12     9     12
    8/22/2011     10:01:00     8     5     5               9               6          7     6     7     5     7     7     7     9     6     6     7     7     7     11     8     7     8     10     8     6     5     7     6     9     6
    8/22/2011     10:16:16     6     8     6               14               9          7     7     10     8     8     23     11     16     6     6     4     8     10     9     7     7     10     7     14     12     7     5     10     11     6
    8/22/2011     10:31:09     7     9     8               9               8          7     8     8     9     7     20     11     6     8     9     9     11     8     14     11     12     7     8     7     12     10     12     8     7     11
    8/22/2011     10:46:11     7     8     10               8               12          7     7     9     8     9     8     11     10     12     9     8     9     7     8     6     8     9     10     10     9     8     9     18     7     9
    8/22/2011     11:01:10     8     7     6               9               13          8     10     9     11     9     10     8     7     8     11     14     6     9     12     8     8     7     17     13     12     7     16     19     14     9
    8/22/2011     11:15:40     11     12     9               10               10          11     8     10     9     10     10     8     7     9     8     10     6     10     11     10     8     13     14     8     10     13     9     10     12     10
    8/22/2011     11:31:45     8     7     10               11               10          12     11     11     8     13     30     11     8     8     8     7     8     12     7     10     9     10     12     15     11     11     10     9     9     11
    8/22/2011     11:46:05     9     7     8               7               12          6     11     8     6     9     8     10     7     8     14     9     8     13     8     23     13     7     12     8     12     8     12     10     9     9
    8/22/2011     12:01:22     9     10     10               11               11          10     13     7     9     13     11     11     10     10     8     10     13     12     12     11     10     8     7     8     10     9     20     23     10     9
    8/22/2011     12:16:02     8     9     11               10               9          11     12     9     22     9     7     7     6     9     10     11     9     8     9     8     25     6     9     10     12     18     16     10     7     7
    8/22/2011     12:31:11     18     11     8               14               9          11     5     8     9     7     8     7     8     7     21     10     13     7     6     10     8     7     10     8     7     10     7     10     10     10
    8/22/2011     12:46:15     10     7     11               12               8          13     16     14     23     10     8     10     11     33     9     15     13     16     14     9     10     25     11     7     11     11     9     9     11     8
    8/22/2011     13:00:57     13     16     8               10               16          12     6     9     10     7     22     11     11     8     7     15     8     11     10     14     8     15     9     10     10     10     10     8     8     9
    8/22/2011     13:15:57     6     21     14               26               7          10     9     13     10     12     13     7     8     18     11     10     10     9     25     17     8     21     7     11     7     18     17     9     17     6
    8/22/2011     13:30:53     9     12     6               5               9          14     6     9     7     15     10     6     8     12     8     9     7     9     10     12     7     8     13     11     13     7     8     10     7     10
    8/22/2011     13:46:05     6     13     8               9               10          10     8     22     8     11     8     10     10     11     8     10     6     9     9     8     8     7     11     7     9     8     8     7     10     8
    8/22/2011     14:00:46     13     8     8               11               9          12     8          9     14     9     9     11     14     10     9     11     14     8     16     23     9     6     12     8     8     9     9     9     18
    8/22/2011     14:15:46     8     13     9               7               9          29     7     9     18     10     10     7     9     9     17     10     10     10     12     10     13     12     15     7     12     8     13     9     8     9
    8/22/2011     14:31:13     9     11     11               20               10          9     8     9     9     9     8     25     9     7     11     8     9     10     12     7     10     23     11     9     10     9     10     9     9     9
    8/22/2011     14:45:52     9     12     12               13               25          11     17     8     12     9     11     10     11     10     11     8     21     11     8     7     9     25     11     10     11     10     13     11     8     8
    8/22/2011     15:00:52     7     33     11               9               7          12     9     11     12     10     34     10     11     9     7     9     11     10     9     29     11     10     13     8     10     13     17     15     14     12
    8/22/2011     15:16:16     8     10     6               25               13          10     9     9     13     13     15     10     10     17     8     12     10     11     61     9     9     9     26     10     10     12     10     11     13     9
    8/22/2011     15:31:07     9     10     9               11               11          9     14     14     12     12     19     12     8     11     11     9     9     12     0     11     10     7     24     11     11     9     19     22     10     9
    8/22/2011     15:45:44     7     10     9               25               14          11     23     10     34     11     7     8     7     7     15     16     8     5     9     9     10     10     7     9     7     7     10     10     21     13
    8/22/2011     16:00:59     27     9     12               10               11          9     16     16     16     19     10     10     11     9     7     17     10     10     6     27     11     12     9     20     9     10     18     12     12     9
    8/22/2011     16:15:42     12     9     8               8               9          18     10     9     25     11     8     8     16     10     13     11     23     33     12     8     11     20     9     8     9     22     10     8     11     10
    8/22/2011     16:31:03     10     10     9               14               9          14     10     15     9     14     9     10     11     22     8     9     10     13     8     10     10     8     11     13     10     9     11     10     11     9
    8/22/2011     16:45:44     10     9     10               11               13          10     10     12     8     9     10     9     16     7     8     9     8     14     7     10     11     5     7     11     8     9     10     11     20     11
    8/22/2011     17:00:46     9     12     10               9               11          7     12     10     9     7     11     8     9     7     8     12     10     10     8     15     12     12     8     6     6     10     9     10     9     9
    8/22/2011     17:16:04     7     7     7               20               9          9     9     8     9     8     10     20     8     17     31     10     10     9     8     17     9     8     8     16     8     6     14     10     9     9
    8/22/2011     17:31:22     6     7     9               9               8          6     8     7     8     9     5     18     8     7     8     7     7     12     13     11     16     8     7     25     9     8     22     12     14     10
    8/22/2011     17:45:56     12     6     11               8               8          8     7     6     7     7     7     15     9     8     10     10     13     14     5     9     9     19     9     6     5     14     17     9     14     6
    8/22/2011     18:00:53     8     8     6               8               7          8     5     8     6     7     6     8     16     5     7     7     9     15     8     8     6     8     6     8     9     7     10     7     6     10
    8/22/2011     18:16:04     6     7     6               19               12          12     9     9     8     6     6     7     12     8     7     7     5     6     7     7     7     10     6     7     8     6     6     6     6     9
    8/22/2011     18:31:00     7     6     9               6               11          6     6     6     6     9     6     5     7     7     12     9     18     8     5     5     5     7     5     6     10     6     10     10     15     8
    8/22/2011     18:45:43     17     13     22               11               5          6     6     6     12     4     5     5     5     4     5     5     9     8     4     6     7     5     6     6     7     5     6     7     6     5
    8/22/2011     19:00:57     7     7     4               7               15          17     6     7     10     8     4     6     6     4     5     6     5     13     7     5     6     3     5     5     6     6     16     7     6     4
    8/22/2011     19:15:47     5     4     6               5               4          4     4     4     6     3     5     5     6     4     3     10     6     6     4     7     5     6     6     6     7     5     4     4     8     5
    8/22/2011     19:30:39     5     5     7               4               8          12     3     5     3     5     6     6     4     5     4     4     5     6     4     6     5     4     4     6     7     4     4     6     4     3
    8/22/2011     19:45:39     5     5     15               5               6          6     6     4     5     8     6     6     6     4     6     5     7     4     3     5     3     3     3     4     6     7     6     4     5     5
    8/22/2011     20:01:02     3     4     4               5               3          6     4     5     5     4     2     3     4     4     5     6     4     4     5     4     5     5     4     5     3     5     5     3     4     5
    8/22/2011     20:15:38     6     4     3               4               5          5     4     2     5     3     4     6     4     4     4     5     2     2     4     4     5     4     3     2     4     3     5     4     3     4in short table contains the information about some sessions.
    now i want the output like below, (highest session for the report_date and report_time with the name of session)
    REPORT_DATE     REPORT_Hour     SESSION_CODE     SESSION_VALUE
    8/22/2011     7     Session30     5
    8/22/2011     7     Session24     5
    8/22/2011     8     Session41     8
    8/22/2011     9     Session19     15
    8/22/2011     10          
    8/22/2011     11          
    8/22/2011     12          
    8/22/2011     13          
    8/22/2011     14          
    8/22/2011     15          
    8/22/2011     16          
    8/22/2011     17          
    8/22/2011     18          
    8/22/2011     19          
    8/22/2011     20          How can i get using sql query.
    Any help appriciated.

    In version 11 you can use UNPIVOT.
    A sample with just three columns:
    SQL> with sessioninfo as (
      2     select date '2011-08-29' report_date, '7:12:34' report_time,
      3            1 session1, cast(null as number) session2, 11 session3 from dual union all
      4     select date '2011-08-29' report_date, '7:56:00' report_time,
      5            4 session1, 2 session2, cast(null as number) session3 from dual union all
      6     select date '2011-08-29' report_date, '14:44:44' report_time,
      7            cast(null as number) session1, cast(null as number) session2, 2 session3 from dual
      8  )
      9  select
    10  report_date,
    11  substr(lpad(report_time,8),1,2) report_hour,
    12  max(session_code) keep (dense_rank last order by session_value) session_code,
    13  max(session_value) session_value
    14  from sessioninfo
    15  unpivot(
    16     session_value for session_code in (
    17        session1 as 'Session1',
    18        session2 as 'Session2',
    19        session3 as 'Session3'
    20     )
    21  )
    22  group by
    23  report_date,
    24  substr(lpad(report_time,8),1,2)
    25  order by
    26  report_date,
    27  substr(lpad(report_time,8),1,2)
    28  ;
    REPORT_D RE SESSION_ SESSION_VALUE
    11-08-29  7 Session3            11
    11-08-29 14 Session3             2For your 43 columns you just need to expand the list in lines 17,18,19 - the rest will work fine.
    (Your best way would actually be to change your datamodel to be more useful in a relational database - having columns session1, session2,...,session43 is not a very useful datamodel. Storing a timestamp in a VARCHAR2 is also not very good for the database.)

  • 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.

  • 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

  • Re: select query unable to read data

    Hi Expert,
    for the below code i am getting error for data mismatch i.e FOR OBJEK AND JTAB-MATNR  As i am comparing objek with
    matnr it is throwing length mismatch error
    SELECT  OBJEK
             ATINN
             FROM AUSP INTO TABLE IT_CHAR2
            move line-matnr to line-objek.
             FOR ALL ENTRIES IN JTAB
             WHERE OBJEK EQ  JTAB-MATNR.
    Regards,
    Am

    Hi
    In the declaration of JTAB
    data : begin of JTAB occurs 0,
                  MATNR type AUSP-OBJEK " Instead of MARA-MATNR or simply MATNR You need to add it
    whenever you use FOR ALL ENTRIES the field in left side in the where condition should match length wise with that of the right side one
    Ex
    select objek
         from AUSP
         into table itab
    for all entries in JTAB
    where objek = jtab-matnr  " here JTAB-MATNR should have equal length of AUSP-OBJECK
    which is 50 char length(if i am not wrong) where as normal MATNR is of 18 char length
    Hope this serves the purpose
    Cheerz
    Ramchander Rao.K

  • 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

  • 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

  • WCF Data Service from Entity Framework 5 in SharePoint 2013

    not sure which forum is best, so im going to throw it in here.
    I am working on a proof of concept. I want to create a WCF Data Service within sharepoint 2013. not only do i want to do that, i want to use the Entity Framework 5 to expose the data via OData. Now, I have crawled the internet and seen various examples of
    how to create wcf data services and wcf services in sharepoint 2010/2013. and have tried to apply those as needed to create this POC. So.. what I have done so far. 
    MonitoringData.cs
    [BasicHttpBindingServiceMetadataExchangeEndpoint]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    [System.Runtime.InteropServices.Guid("0185abf6-e8b8-42e2-9965-6bb644338077")]
    public class MonitoringData : DataService<MonitoringServiceEntities>
    // This method is called only once to initialize service-wide policies.
    public static void InitializeService(DataServiceConfiguration config)
    // TODO: set rules to indicate which entity sets and service operations are visible, updatable, etc.
    // Examples:
    config.SetEntitySetAccessRule("*", EntitySetRights.AllWrite);
    config.SetServiceOperationAccessRule("*", ServiceOperationRights.All);
    config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V3;
    MonitoringData.svc:
    <%@ServiceHost Language="C#" Debug="true"
    Service="$SharePoint.Type.0185abf6-e8b8-42e2-9965-6bb644338077.AssemblyQualifiedName$"
    Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressDataServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    upon deployment, this error when hitting the https://server/_vti_bin/poc/monitoringdata.svc/$metadata
    "The type 'xxxxxxxx', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could
    not be found."
    Breaking out the google-fu, i found that adding the dll to the <compilation> section was needed for the web.config. so i did that. and now i just get a blank screen with no errors.
    so i crack open fiddler. i see the following 
    200 http
    tunnel to
    server:443 0
    401 https
    server /_vti_bin/poc/monitoringdata.svc/$metadata
    16
    401
    https server
    /_vti_bin/poc/monitoringdata.svc/$metadata
    0
    404
    https server
    /_vti_bin/poc/monitoringdata.svc/$metadata
    0
    best i can see is that im either not authorized, and its returning null (which shouldnt be the case) or something is just busted.
    The goal is to use ntml auth and https to connect to this service. any ideas?

    One thing I found was that it's never worth the trouble to place the WCF service in a web site running SharePoint, it's better to place it in a dedicated web site, as described in this article:
    http://sharepointdragons.com/2011/10/07/parallel-programming-in-sharepoint-2010-the-back-to-the-future-pattern/
    It's usually too much work to get the web.config settings right because of the settings it inherits from its parents.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com
    I'll say that it is one solution to move the WCF Service outside of sharepoint. but my "1000 mile" requirements makes this a necessity. 
    To broaden the scope of what I am doing, I have a custom SharePoint Service Application. this custom application has a proxy that used a restful interface. Now, with all the methods i will have to write (over 100, x3 for all of the "proxy to a proxy" scenarios)
    I wanted to explore the idea of using odata. so i can use the various clients to write their own queries instead of me writing them all and exposing them. especially since its all linq queries to a database underneath. I feel that I am missing some specific
    component to make this work, and its surely due to my incomplete knowledge of WCF or EF.

  • Unable to Update .mdf using Entity Framework

    I am trying to insert Data in an .mdf file using Entity Framework but there is no data saved in the database. (I am using VS 2013)
    Code against the button is
    private void BtnSubmit_Click(object sender, RoutedEventArgs e)
    Product record = new Product();
    record.ProductName = txtProductName.Text;
    AzadIndustryEntities1 Db = new AzadIndustryEntities1();
    Db.Products.Add(record);
    Db.SaveChanges();
    MessageBox.Show("Record Inserted");
    samEE

    My problem is solved. Going to explain it so that it could help others also.
    As the default property of .mdf file Copy to Output Directory is
    Copy always so when we debug our program a copy of the .mdf file is copied in the
    debug folder which is in the bin folder  (Select
    Show All Files in Solution Explorer to view the bin folder) so, whatever changes we make in database through
    code it is saved in the copied .mdf that is in the debug folder. When we
    debug our program again the same steps are performed again and the previous database is
    overwritten. To prevent such happening the property of .mdf file mentioned above should be set to
    Copy if newer so, if there is any change in the model only then the .mdf will be overwritten
    samEE

Maybe you are looking for

  • I cannot send email from my account.

    I cannot send email from my account.  Connections Doctor reports that I am signed in and connected.  I I have updated all of my keychain information and my passwords are current. 

  • Turning iMac DV 400 (G3 slot loader) on via the Apple Pro keyboard?

    I was looking at my iMac's Lowendmac profile (located here: http://lowendmac.com/imacs/400.shtml) when I noticed right at the bottom of the page under "Cautions" it mentions: "You must have the keyboard plugged directly into an iMac USB port to boot

  • Creating Photo folders in itunes?

    how can I create foto folders in itunes so that I do not have all fotos in one folder on my ipad?

  • Error in BizTalk Web Service publishing wizard BizTalk 2013

    Hi, I am facing an error when i am trying to publish a BizTalk orchestration as a Web Service. It is a very generic error message that is popping up. Failed to create project "http://localhost/mycode.Orchestrations_Proxy". Object reference not set to

  • Plantage du programme

    Bonjour Depuis peu, lorsque je charge un projet, Adobe Premiere plante et je ne sais plus quoi faire. Je l'ai déjà désinstallé 2 fois. Recently, when I load a project, Adobe Premiere stops and I do not know what to do. I have uninstalled 2 times.