Connect by Giving wrong data.

Hello All,
can somebody describe me the reason that when I run the inner query its giving perfect data but when I run it with by putting it in subquery (Like I mentioned below), It is not giving correct data and taking huge time. I really dont understand the logical reason of it as whatever inner query is giving data ,I should get the same in below mentioned query.
Can somebody help me?
SELECT * FROM (
SELECT distinct PROJECT_NUMBER,
BOM.ASSY_ITEM,
BOM.ASSY_ITEM_DESCRIPTION,
BOM.COMP_ITEM,
BOM.COMPONENT_ITEM_DESC,
BOM.QUANTITY BOM_QUANTITY,
BOM.INVENTORY_ITEM_STATUS_CODE,
SOL.PRODUCT_NUMBER SOL_ITEM,
SOL.QTY_ORDERED,
BOM.BOM_STRUCTURE,
SOL.SHIP_FROM_WAREHOUSE_ID,
SOL.ORGANIZATION_ID,
BOM.WAREHOUSE_ID,
BOM.WAREHOUSE_CODE
FROM (SELECT PT.TASK_NUMBER TASK_NUMBER,
OOL.INVENTORY_ITEM_ID,
OOL.ORDERED_ITEM SOL_ITEM,
OOL.QTY_ORDERED,
SHIP_FROM_WAREHOUSE_ID,
PPA.SEGMENT1 PROJECT_NUMBER,
MSI.PRODUCT_NUMBER,
OOL.ORGANIZATION_ID
FROM JAROSODS.OE_ORDERLINES_DET OOL,
JAROSODS.TASK_MAS PT,
JAROSODS.PROJECT_MAS PPA,
JAROSODS.ITEMWAREHOUSE_MAS MSI
WHERE PT.TASK_ID = OOL.TASK_ID AND PT.PROJECT_ID = PPA.PROJECT_ID AND
OOL.PROJECT_ID = PPA.PROJECT_ID AND
MSI.ITEMWAREHOUSE_KEY = OOL.ITEMWAREHOUSE_KEY AND
OOL.MD_SOURCE_SYSTEM = 1 AND PT.MD_SOURCE_SYSTEM in (0, 1) AND
PPA.MD_SOURCE_SYSTEM in (0, 1) AND
MSI.md_source_system in (0, 1)
AND MSI.PRODUCT_NUMBER IN ('1')
AND OOL.ORGANIZATION_ID IN ('1')
AND OOL.SHIP_FROM_WAREHOUSE_ID IN (OOL.SHIP_FROM_WAREHOUSE_ID)
) SOL,
(SELECT LEVEL,
MSIT.PRODUCT_NUMBER ASSY_ITEM,
MSIC.PRODUCT_NUMBER COMP_ITEM,
MSIT.WAREHOUSE_ID ORG_ID,
MP.WAREHOUSE_ID,
MP.WAREHOUSE_CODE,
MSIC.INVENTORY_ITEM_ID,
SUBSTR(MSIT.PRODUCT_NUMBER,
INSTR(MSIT.PRODUCT_NUMBER, '-', 1, 3) + 1) TASK_NUMBER,
--bic.COMPONENT_QUANTITY,
LPAD(' ', 8 * LEVEL) || MSIT.PRODUCT_NUMBER || ' ---> ' ||
MSIC.PRODUCT_NUMBER BOM_STRUCTURE,
BIC.QTY_COMPONENT QUANTITY,
MSIC.INVENTORY_ITEM_STATUS_CODE,
MSIT.ITEM_LONG_NAME ASSY_ITEM_DESCRIPTION,
MSIC.ITEM_LONG_NAME COMPONENT_ITEM_DESC
--msiC.description Component_item_desc
from JAROSODS.MFG_BOMBILLOFMATERIALS_DET bom,
JAROSODS.MFG_BOMINVCOMP_DET bic,
JAROSODS.itemwarehouse_mas msit,
JAROSODS.itemwarehouse_mas msic,
JAROSODS.WAREHOUSE_MAS mp
where 1 = 1 and msit.inventory_item_id = bom.ASSEMBLY_ITEM_ID and
msit.warehouse_id = bom.warehouse_id and
msic.inventory_item_id = bic.COMPONENT_ITEM_ID and
msic.warehouse_id = msit.warehouse_id and
mp.warehouse_id in (mp.warehouse_id) AND
bom.common_BILL_SEQUENCE_ID = bic.BILL_SEQUENCE_ID AND
mp.warehouse_id = msic.warehouse_id
--AND mp.warehouse_key = msic.itemwarehouse_key
and level in ('2') AND--------------------------------------------------parameter
TRUNC(SYSDATE) BETWEEN TRUNC(bic.effectivity_datetime) AND
NVL(TRUNC(bic.disable_datetime), TRUNC(SYSDATE))
start with msit.PRODUCT_NUMBER like ('%700433%')------------------------------parameteR
connect by prior bic.component_item_id = bom.assembly_item_id and
bom.md_source_system = 1 and bic.md_source_system = 1 and
msit.md_source_system in (0, 1) and
msic.md_source_system in (0, 1) and
mp.md_source_system in (0, 1)) BOM
WHERE BOM.INVENTORY_ITEM_ID = SOL.INVENTORY_ITEM_ID(+) AND
BOM.TASK_NUMBER = SOL.TASK_NUMBER(+) AND
BOM.ORG_ID = SOL.SHIP_FROM_WAREHOUSE_ID(+))

ok

Similar Messages

  • TRUNC() giving wrong data in different versions of Oracle DB

    Hi All,
           I have two oracle data base versions. I need to insert into one temp table with select statement. When i use the same query in both environment am getting different results. Can you please help me on that.
    Version:1
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Version: 2
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE 10.2.0.5.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
    NLSRTL Version 10.2.0.5.0 - Production
    Query we used:
    insert into my_temp_table
    select v_name,trunc(d_charge_date)
    from table1;
    my_temp_table structure:
    v_name               varchar2(30),   
    d_charge_date     date;
    Note: Date columns represented with mm/dd/yyyy format....
    in table1 i have data like this....
    v_name
    d_charge_date
    xxx
    12/2/2012
    yyy
    10/23/2010
    abc
    9/29/2013
    after the insertion into temp table am getting the result like below...
    select * from my_temp_table;
    If i run this query in version 1 am getting the correct data..
    v_name
    d_charge_date
    xxx
    12/2/2012
    yyy
    10/23/2010
    abc
    9/29/2013
    but if i run the same insert query in version 2 getting the wrong data
    v_name
    d_charge_date
    xxx
    12/2/2011
    yyy
    12/2/2011
    abc
    12/2/2011
    If i remove the trunc from the insertion statement i didn't get the wrong data like above...
      I don't know the exactly reason. So can you please help me to identify this cause...

    Hi i think the global temporary table having this issue in version b what i have mentioned above.
    insert into /*+append*/global_temporary_temp
    (v_policy_no,n_seq_no,d_next_chgdue_date,v_charge_freq,v_cntr_stat_code,v_iu_au_base,d_cntr_start_date)
    select distinct a.v_policy_no,a.n_seq_no,trunc(a.d_next_chgdue_date),a.v_charge_freq,b.v_cntr_stat_code,c.v_iu_au_base,b.d_cntr_start_date
    from table_a a,table_2 b,table_3 c
    where a.v_status = 'A'
    and a.v_charge_freq is not null
    and trunc(a.d_next_chgdue_date) <= trunc(sysdate)
    and b.v_cntr_stat_code in ('NB010')
    and a.v_policy_no = b.v_policy_no
    and a.n_seq_no = b.n_seq_no
    and a.v_plri_code = c.v_plan_code
    and a.v_parent_event_code = c.v_parent_event_code
    and a.v_charge_pcode = c.v_charge_pcode
    and a.v_charge_code = c.v_charge_code

  • Oralce query giving wrong data

    Hi all oracle experts :
    in oracle backend ( LOV ) user is selecting 'long text' instead of 'short text' and as a result user is getting wrong data Ship_To_Adress ( column ). here what i need is :
    Upon data is coming from Long_Text table - it should not bring the wrong data Ship_To address.. It should give no value on the report.
    feasibility of modifying query to maintain two Scenarios - Irrespective of Long or Short text - User should not give wrong 'Ship To' address on the pick ticket.
    please go through the following query and make necessary changes. thanks in advance for your precious time valuable advice
    looking the feasibility of modifying query to maintain two Scenarios - Irrespective of Long or Short text - User should not give wrong 'Ship To' address on the pick ticket.
    Thanks in advance
    Shiva
    SELECT
         wpsv.pick_slip_number          "Pick Slip #",
         wdd.source_header_number          "Sales Order #" ,
         wdd.source_line_number          "Sales Order Line #" ,
    nvl(round(ool.unit_selling_price,2),0) "unitsell price" ,
    (nvl(round(ool.unit_selling_price,2),0))*nvl(wpsv.primary_qty,0) "Extended sell rice",
         '*'||wpsv.transaction_id||'*'          "Task ID" ,
         wpsv.transaction_id               "Task ID#" ,
         msi.segment1               "Item",
         msi.description               "Item Description",
         msi.segment1 || ' - ' ||msi.description               "Item - Description",
         wdd.requested_quantity_uom          "UOM",
         wdd.serial_number               "Serial #",
         wnd.delivery_id               "Delivery#",
         wpsv.from_subinventory          "Pick from Sub-inventory",
         wpsv.from_subinventory          || ' - ' ||
              SELECT
                   segment1||'.'||segment2||'.'||segment3||'.'||segment4
              FROM
                   INV.MTL_ITEM_LOCATIONS
              WHERE
                   inventory_location_id     = DECODE(msi.reservable_type,2,wdd.locator_id,wpsv.from_locator_id)
         ) "Pick From",
              SELECT
                   segment1||'.'||segment2||'.'||segment3||'.'||segment4
              FROM
                   INV.MTL_ITEM_LOCATIONS
              WHERE
                   inventory_location_id     = DECODE(msi.reservable_type,2,wdd.locator_id,wpsv.from_locator_id)
         )                    "Pick from Location",
         wpsv.to_subinventory "Deliver to Sub-inventory",
              select
                   segment1||'.'||segment2||'.'||segment3||'.'||segment4
              from
                   inv.mtl_item_locations
              where
                   inventory_location_id     = wpsv.to_locator_id
         )                    "Deliver to Location",
         wpsv.primary_qty          "Quantity to be Picked",
         party.party_name||CHR(10)||
         DECODE(ship_loc.address1, NULL, '',ship_loc.address1||CHR(10))||
         DECODE(ship_loc.address2, NULL, '',ship_loc.address2||CHR(10))||
         DECODE(ship_loc.address3, NULL, '',ship_loc.address3||CHR(10))||
         DECODE(ship_loc.address4, NULL, '',ship_loc.address4||CHR(10))||
         DECODE(ship_loc.city, NULL, NULL, ship_loc.city || ', ') || DECODE(ship_loc.state, NULL, NULL, ship_loc.state || ', ') || DECODE(ship_loc.postal_code, NULL, NULL,      ship_loc.postal_code || ', ') || DECODE(ship_loc.country, NULL, NULL, ship_loc.country) SHIP_TO_ADDRESS,
         NVL(h.shipping_instructions, '-') shipping_instructions,
         NVL(h.shipment_priority_code,'-') shipment_priority_code,
    NVL(OL.MEANING,'-') "Freight Terms",
         NVL(FLV.meaning, '-') shipping_method,
         NVL(QQA.quote_attachment, '-'),
         RSA.name,
         NVL(h.packing_instructions, '-') packing_instructions,
         NVL(H.CUST_PO_NUMBER,'-') customer_po#
    FROM
    apps.oe_order_lines_all ool,
         APPS.WSH_PICK_SLIP_V               WPSV,
         WSH.WSH_DELIVERY_DETAILS          WDD,
         INV.MTL_SYSTEM_ITEMS_B          MSI,
         WSH.WSH_DELIVERY_ASSIGNMENTS     WDA,
         WSH.WSH_NEW_DELIVERIES          WND,
         APPS.ORG_ORGANIZATION_DEFINITIONS     ORG,
         WMS.WMS_DISPATCHED_TASKS          WDT,
         APPS.OE_ORDER_HEADERS_ALL          H,
         APPS.HZ_CUST_SITE_USES_ALL          SHIP_SU,
         APPS.HZ_PARTY_SITES               SHIP_PS,
         APPS.HZ_LOCATIONS               SHIP_LOC,
         APPS.HZ_CUST_ACCT_SITES_ALL          SHIP_CAS,
         APPS.HZ_PARTIES                PARTY,
         APPS.FND_LOOKUP_VALUES          FLV,
    APPS.OE_LOOKUPS OL,
              SELECT
                   OOH.header_id,
                   MAX(DECODE(rownum,1, FDST.short_text, ''))||CHR(10)||CHR(10)||MAX(DECODE(rownum,2, FDST.short_text, ''))||MAX(DECODE(rownum,3, FDST.short_text, ''))||CHR(10)||CHR(10)||MAX(DECODE(rownum,4, FDST.short_text, '')) quote_attachment
              FROM
                   APPS.FND_ATTACHED_DOCUMENTS     FAD
                   , APPS.FND_DOCUMENTS_TL          FDT
                   , APPS.FND_DOCUMENTS_SHORT_TEXT     FDST
                   , APPS.FND_DOCUMENTS               FD
                   , APPS.FND_DOCUMENT_CATEGORIES_TL     FDC
                   , APPS.OE_ORDER_HEADERS_ALL          OOH
                   , APPS.ORG_ORGANIZATION_DEFINITIONS OOD
              WHERE
                   OOD.organization_id =?Organization ? AND
                   OOH.ORDER_NUMBER = ?SO#? AND
                   OOH.org_id = OOD.operating_unit AND
                   TO_CHAR(OOH.header_id) = FAD.pk1_value AND
                   FAD.document_id = FDT.document_id AND
                   FAD.entity_name = 'OE_ORDER_HEADERS' AND
                   FDT.media_id = FDST.media_id AND
                   FDT.language = 'US' AND
                   FAD.document_id = FD.document_id AND
                   FD.category_id = FDC.category_id AND
                   FDC.language = 'US' AND
                   FDC.user_name ='APS_Pack/AR Invoice/CI/SO Ack Printing'
              GROUP BY
                   OOH.header_id
         ) QQA
         , APPS.RA_SALESREPS_ALL RSA
    WHERE
         wpsv.move_order_line_id     =wdd.move_order_line_id          AND
         (wdd.source_header_number = ?SO#? )                    AND
         wdd.inventory_item_id     = msi.inventory_item_id(+)          AND
         wdd.organization_id          = msi.organization_id(+)          AND
         wdd.delivery_detail_id     = wda.delivery_detail_id          AND
         wda.delivery_id          = wnd.delivery_id(+)               AND
         wdd.organization_id = org.organization_id               AND
         wdt.TRANSACTION_TEMP_ID(+)=wpsv.transaction_id          AND
         wdt.organization_id (+)      =?Organization ?               AND
         wdd.organization_id          =?Organization ?               AND
         wdd.source_header_number      = h.order_number               AND
         h.salesrep_id = RSA.salesrep_id(+) AND
         h.org_id = RSA.org_id(+) AND
         h.org_id                = org.operating_unit               AND
         SHIP_PS.party_id          = PARTY.party_id(+)           AND
         H.ship_to_org_id          = SHIP_SU.site_use_id(+)           AND
         SHIP_SU.cust_acct_site_id     = SHIP_CAS.cust_acct_site_id(+)      AND
         SHIP_CAS.party_site_id     = SHIP_PS.party_site_id(+)           AND
         SHIP_LOC.location_id(+)     = SHIP_PS.location_id           AND
         H.shipping_method_code     = FLV.lookup_code(+)          AND
         FLV.lookup_type(+)          = 'SHIP_METHOD'               AND
         FLV.language(+)          = 'US'                    AND
         QQA.header_id(+)           = TO_CHAR(H.header_id)           AND
         wpsv.line_status          = 'UNPICKED'               AND
    H.FREIGHT_TERMS_CODE=OL.LOOKUP_CODE(+)
    AND OL.LOOKUP_TYPE(+) ='FREIGHT_TERMS' AND
    OOL.header_id = wdd.source_header_id(+) AND
    OOL.line_id = wdd.source_line_id(+) AND
         EXISTS(
              SELECT
                   'Y'
              FROM
                   INV.MTL_ONHAND_QUANTITIES_DETAIL OHQ
              WHERE
                   WDD.inventory_item_id     = OHQ.inventory_item_id     AND
                   WDD.organization_id     = OHQ.organization_id     AND
                   WPSV.from_subinventory = OHQ.subinventory_code
              GROUP BY
                   'Y'
              HAVING
                   SUM(transaction_quantity) >0
    ORDER BY
         2, 11, 12, 6, 3

    Thank you very much indeed for your reply - yes youre right. in oracle backend there are dropdown selections : 1) short text and 2) long text. as per the table user has to select short text so that he will get the correct output , but if by mistake user selects long text then the table is pulling wrong data. so here we need the query to be changed if user selects long text report shouldnt show any data..
    i am not sure but as per my little knowledge in oracle i believe that the problem is lying in the folloiwng query line.. please help me out in this regard. i have a screen shots of oralce backend where user is selecting long text / short text but here theres no option of inserting the files...
    DECODE(ship_loc.address1, NULL, '',ship_loc.address1||CHR(10))||
    DECODE(ship_loc.address2, NULL, '',ship_loc.address2||CHR(10))||
    DECODE(ship_loc.address3, NULL, '',ship_loc.address3||CHR(10))||
    DECODE(ship_loc.address4, NULL, '',ship_loc.address4||CHR(10))||
    DECODE(ship_loc.city, NULL, NULL, ship_loc.city || ', ') || DECODE(ship_loc.state, NULL, NULL, ship_loc.state || ', ') || DECODE(ship_loc.postal_code, NULL, NULL, ship_loc.postal_code || ', ') || DECODE(ship_loc.country, NULL, NULL, ship_loc.country) SHIP_TO_ADDRESS,
    Thank you very much once again
    Shiva

  • Iphoto date change giving wrong date

    When I try to change the date of a scanned photo I get a strange and incorrect date in response.
    For example if I put in 25/01/1985 I get a return date of 12/11/573. Each time I try to input the correct date the return date is earlier and earlier.
    I have tried changing the file date through terminal. I have tried resetting the system date but the changed photo date still won't move to the one I input.
    Does anyone know how to fix this?
    Cheers
    Paul

    Hi
    Yep that is where I made the previous changes. I went back there and reset everything to default settings. I also went into the Date and Time pane and changed automatic time, date and zone settings on and off, trying various combinations. But no joy. The photo date won't accept the one I give it.
    This is really annoying. I am otherwise very happy with the Mac. Such a shame that a part of the iPhoto functionality is ruined by this. I was looking forward to having my photos in chronological order.
    Oh well. Hopefully Apple will do something to fix the issue soon.
    Thanks for trying to solve it anyway.
    Regards
    Paul

  • ChooseDate giving wrong date

    Hello:
    I'm using a ADF chooseDate / selectInputDate but i noticed that when i select a day in winter period (30/Oct - 26/Mar) the day comes up minus 1, i.e. if i select 10/March the day it appears on my selectInputDate will be 09/March.
    Why and hpw can i correct this?
    Thanks.

    Here is an excerpt of a bug I logged a few months ago:
    PROBLEM STATEMENT:
    Date picker for af:selectInputDate (Calendar) doesn't return the correct date
    under certain conditions:
    - when the current date is outside the Daylight Saving time
    (called "Summer Time" in Europe)
    - when the Time Zone of the PC is set to GMT
    - when the date that's selected in the Calendar is between the 1st of April
    and the 31st of October
    For example, suppose you're the 1st of March in GMT Time Zone and that you
    select 01-APR-2006 in the calendar:
    31-MAR-2006 will be returned.
    Also, the next time you open the Calendar, the date - 1 day is selected in
    the Calendar.
    For example, if you open the calendar on a selectInputDate with value
    31-MAR-2006, the calendar will display 30-MAR-2006 as the selected date.It seems it's your problem - could you confirm (what's your time zone) ?
    The bug is fixed in JDeveloper 10.1.3.1 (not yet available).
    In case you have access to MetaLink, the bug reference is 5125718 - DATEPICKER (SELECTINPUTDATE) RETURNS A ONE HOUR DIFFERENT DATE
    Regards,
    Didier.

  • Report is giving wrong data for a material

    Hi Gurus,
    The labor cost direct for a material has to be a 0.21 but it is showing -2.1 for that particular material. This is a custom report(its a Z report). . This report is also used for filing for US customs for materials import and export.
    Can anyone please suggest their ideas in changing the direct labor cost for that particular material.
    Thanks,
    Kiran
    Edited by: Kumar&amp;kumar on Nov 2, 2010 2:09 PM

    hi
    good
    NEW-PAGE PRINT ON should be work in the background also,check your syntax with the below syntax,if still it is going to the different printer in the background than check with the configuration setting of printer for the particular report that you r printing,sometime it happens that even in the foreground the correct printer ideanfies but in the background that same printer didnt identify.
    NEW-PAGE PRINT ON
        NEW-SECTION
        PARAMETERS pripar
        ARCHIVE PARAMETERS arcpar
        NO DIALOG.
      DO 440 TIMES.
        WRITE (3) sy-index.
      ENDDO.
      NEW-PAGE PRINT OFF.
    ENDFORM.
    thanks
    mrutyun^

  • Excel SSAS Tabular error: An error occurred during an attempt to establish a connection to the external data source

    Hello there,
    I have an Excel report I created which works perfectly fine on my dev environment, but fails on my test environment when I try to do a data refresh.
    The key difference between both dev and test environments is that in dev, everything is installed in one server:
    SharePoint 2013
    SQL 2012: Database Instance, SSAS Instance, SSRS for SharePoint, SSAS POWERPIVOT instance (Powerpivot for SharePoint).
    In my test and production environments, the architecture is different:
    SQL DB Servers in High Availability (irrelevant for this report since it is connecting to the tabular model, just FYI)
    SQL SSAS Tabular server (contains a tabular model that processes data from the SQL DBs).
    2x SharePoint Application Servers (we installed both SSRS and PowerPivot for SharePoint on these servers)
    2x SharePoint FrontEnd Servers (contain the SSRS and PowerPivot add-ins).
    Now in dev, test and production, I can run PowerPivot reports that have been created in SharePoint without any issues. Those reports can access the SSAS Tabular model without any issues, and perform data refresh and OLAP functions (slicing, dicing, etc).
    The problem is with Excel reports (i.e. .xlsx files) uploaded to SharePoint. While I can open them, I am having a hard time performing a data refresh. The error I get is:
    "An error occurred during an attempt to establish a connection to the external data source [...]"
    I ran SQL Profiler on my SSAS Server where the Tabular instance is and I noticed that every time I try to perform a data refresh, I get the following entries:
    Every time I try to perform a data refresh, two entries under the user name ANONYMOUS LOGON.
    Since things work without any issues on my single-server dev environment, I tried running SQL Server Profiler there as well to see what I get.
    As you can see from the above, in the dev environment the query runs without any issues and the user name logged is in fact my username from the dev environment domain. I also have a separated user for the test domain, and another for the production domain.
    Now upon some preliminary investigation I believe this has something to do with the data connection settings in Excel and the usage (or no usage) of secure store. This is what I can vouch for so far:
    Library containing reports is configured as trusted in SharePoint Central Admin.
    Library containing data connections is configured as trusted in SharePoint Central Admin.
    The Data Provider referenced in the Excel report (MSOLAP.5) is configured as trusted in SharePoint Central Admin.
    In the Excel report, the Excel Services authentication settings is set as "use authenticated user's account". This wortks fine in the DEV environment.
    Concerning SecureStore, PowerPivot Configurator has configured it the PowerPivotUnnattendedAccount application ID in all the environments. There is
    NO configuration of an Application ID for Excel Services in any of the environments (Dev, test or production). Altough I reckon this is where the solution lies, I am not 100% sure as to why it fails in test and prod. But as I read what I am
    writing, I reckon this is because of the authentication "hops" through servers. Am I right in my assumption?
    Could someone please advise what am I doing wrong in this case? If it is the fact that I am missing an Secure Store entry for Excel Services, I am wondering if someone could advise me on how to set ip up? My confusion is around the "Target Application
    Type" setting.
    Thank you for your time.
    Regards,
    P.

    Hi Rameshwar,
    PowerPivot workbooks contain embedded data connections. To support workbook interaction through slicers and filters, Excel Services must be configured to allow external data access through embedded connection information. External data access is required
    for retrieving PowerPivot data that is loaded on PowerPivot servers in the farm. Please refer to the steps below to solve this issue:
    In Central Administration, in Application Management, click Manage service applications.
    Click Excel Services Application.
    Click Trusted File Location.
    Click http:// or the location you want to configure.
    In External Data, in Allow External Data, click Trusted data connection libraries and embedded.
    Click OK.
    For more information, please see:
    Create a trusted location for PowerPivot sites in Central Administration:
    http://msdn.microsoft.com/en-us/library/ee637428.aspx
    Another reason is Excel Services returns this error when you query PowerPivot data in an Excel workbook that is published to SharePoint, and the SharePoint environment does not have a PowerPivot for SharePoint server, or the SQL Server Analysis
    Services (PowerPivot) service is stopped. Please check this document:
    http://technet.microsoft.com/en-us/library/ff487858(v=sql.110).aspx
    Finally, here is a good article regarding how to troubleshoot PowerPivot data refresh for your reference. Please see:
    Troubleshooting PowerPivot Data Refresh:
    http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshooting-powerpivot-data-refresh.aspx
    Hope this helps.
    Elvis Long
    TechNet Community Support

  • Report returns wrong data when run on server

    Hi,
    I'm runing CRS XI R2 on Windows Server 2003 SP2.  When I refresh a report in the Crystal Reports XI Designer, I'm getting correct data.  But when I schedule the report to run on the server it returns wrong data.  The data is different from what I see when I refresh it from the designer.  In the report I have running totals set up to count customers that meet a certain criteria.  The report is very large.  It take almost 2 hours to refresh.
    I was wondering what is causing the difference in running total data between refreshing it on the designer and running it on the server.  Is it returning wrong data b/c of it not reading all the records?  Should I be making any changes to the server settings?  I saw that under pageserver, there are options for  setting the 'Minutes Before an Idle Report Job is Closed' and 'Database Records To Read When Previewing Or Refreshing a Report".  Do either of those have anything to do with the report returning incorrect data when being scheduled to run on the server?
    Thanks,
    Kim

    Hi Xuandao,
    You would need to Use Cell Binding and Trigger concept to accomplish this.
    Its simple, however, you would have to work on a trial and error basis to understand this concept as implementing the same is subject to your dashboard and WEBI Design.
    Open you LiveOffice.
    Insert your WEBI, Now, go to Object Properties of your WEBI, select the second tab that says Prompt, Here, it lists the prompts that you have for your WEBI. This would also enlist your BEx variables as well. Select this BEx variable and click on the button that says Prompt at the bottom of this window. Here, select choose Excel Data Range and click on the cell select button on the right (small button that lets you choose what cell you want to bind this prompt to), Now select a free cell that would not be even populated later on when you run the dashboard say A1 (remember the value that you select). Click on OK and again OK. The WEBI Refreshes and you can see all the prompt values at the cell A1. These are all the possible values stored for your BEx prompt variables (these values are fetched from BW system dynamically).
    Now, save this LiveOffice, Go to you dashboard. Connect your dashboard to your Live office. Go to Data-> connections-> Now, select the WEBI and in the right hand pane  go to Usage tab, here, Click on Trigger cell button on the right hand side and select A1 in you LiveOffice.
    It should work fine.
    Let me know.
    Rgds,
    Sreekul Nair

  • Bridge CS6 occasionally displaying wrong 'Date Created' for .NEF's

    I noticed this problem only recently, and this the third time it happens (that I know of).
    Sometimes my Bridge puts a wrong Date Created (not Date File Created or Date File Modified) on a NEF RAW file, whilst the next one (taken perhaps just a few seconds or a minute later) has the proper date. Strangely the Date File Created & Modified do show the proper creation date.
    Example to clarify:
    Metadata viewed on my D90 itself
    Photo 1 taken on: 30/09/2013, 9:03:26 PM (DD-MM-YYYY)
    Photo 2: 30/09/2013, 9:07:52 PM
    Photo 3: 30/09/2013, 9:08:12 PM
    Photo 4: 30/09/2013, 9:08:34 PM
    Photo 5: 30/09/2013, 9:08:54 PM
    Photo 6: 30/09/2013, 9:09:34 PM
    viewing in bridge:
    Photo 1: Date Created: 30/09/2013, 9:03:26 PM
                   Date File Created: 30/09/2013, 9:03:26 PM
                   Date File Modified: 30/09/2013, 9:03:26 PM
    Photo 2: Date Created: 30/09/2013, 9:07:52 PM
                   Date File Created: 30/09/2013, 9:07:52 PM
                   Date File Modified: 30/09/2013, 9:07:52 PM
    Photo 3: Date Created: 23/09/2013, 7:42:02 PM
                   Date File Created: 30/09/2013, 9:08:12 PM
                   Date File Modified: 30/09/2013, 9:08:12 PM
    Photo 4: Date Created: 30/09/2013, 9:08:34 PM
                   Date File Created: 30/09/2013, 9:08:34 PM
                   Date File Modified: 30/09/2013, 9:08:34 PM
    Photo 5: Date Created: 04/09/2013, 10:14:45 AM
                   Date File Created: 30/09/2013, 9:08:54 PM
                   Date File Modified: 30/09/2013, 9:08:54 PM
    Photo 6: Date Created: 04/09/2013, 10:15:06 AM
                   Date File Created: 30/09/2013, 9:09:34 PM
                   Date File Modified: 30/09/2013, 9:09:34 PM
    As you can see, it's not a 'stable' deviation.
    I could live with it, apart from one problem: the batch rename function only has 'Date Created' as option for renaming with date.
    It's also quite annoying for my photography study, since my teachers might get confused by the wrong date in the Metadata when I turn my photo in.
    I tried compacting the cache whilst my camera's SD card wasn't connected (so the files aren't 'available' anymore), no difference.
    Another thing I tried was to hook my SD card up on a different computer, same result.
    So it might be my SD card, but that doesn't explain why the correct date is shown on my D90 itself, though.
    If anybody here has an idea how to fix / avoid this problem, help is much appreciated.
    Greetings,
    Alex

    I have never inserted the 8GB card in the D3000 before just a minute ago.
    And I just took 7 rapid photo's of my previous post (~1s interval)
    All 7 displayed actual date in my camera, the first 4 displayed a wrong date in bridge (24/09/2013, times; 2:12:16PM, 2:12:20PM, 3:09:24PM and 3:10:26PM). Last 3 displayed proper time in bridge.
    So yea, I'm pretty sure something is wrong. I'll try formatting the SD card (as suggested before) but however you look at it, this doesn't add up.
    edit:
    Well I figured out one thing: if I view the photo's directly on my SD card through bridge, it shows the same date for Date Created, Date File Created and Date File Modified.
    Quite logical, to be honest, since I am viewing the date the file was created on the camera.
    However, if I export photo's with Adobe Photo Downloader (or whatever it's called again), it displays the date those copies were created (by Date File Created). Date File Modified is still ~the same as Date Created since it hasn't been modified since the original creation.
    edit2:
    The formatting seems to have solved the issue, for now anyway. Still have no clue why the SD card got such (occasional) cases of drunkness.

  • Why is CS4 putting wrong dates on files?

    Moved my CS4 from XP computer to new Windows7 computer. All seemed fine for a week.
    Now when I create or change a file, it does not put correct date on file (e.g., instead of 5/30/11 it will put 3/26/10 or on 6/2 it will show a date of 5/3/11 on the file). Wrong date shows in Explorer too but when I right click the file, the correct date is shown in properties. I can open the file in Adobe if I type in the filename.
    System date, clock, etc. are all fine.  No other program (Access, Word, Flash) does this
    Don't know if there's a connection but I did move over my preference/preset files from the XP just before this happens. I'd appreciate any help....thanks

    Aha!  Your Explorer view is displaying the Date Taken, which is of course the date the image was originally captured (and which is stored in the EXIF data within the file).
    That it is different from the Modification Date normally seen in Details view is because Explorer tries to show you a view of your files that can differ depending on the types of files it senses you have in the folder.  A real head-scratcher if you don't expect it.
    You can alter this behavior, on a folder by folder basis, by right-clicking the folder, choosing Properties, clicking the Customize tab, then choosing General Items.
    What many don't know is that you can set the behavior Windows-wide to ALWAYS show General Items views for all new folders (i.e., circumventing the derivation of what Customization to make by looking at the files) by this process, excerpted from my Windows 7 tuning guide.  Note that it involves adding an item to the registry with regedit - BE VERY CAREFUL WITH THIS:
    Configure Explorer
    Do not set Folder Types but use "General Items" for all by adding the following string value to the registry:
    [HKEY_CURRENT_USER\Software\Classes\Local Settings\
    Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
    FolderType                           REG_SZ                NotSpecified
    -Noel

  • Adobe form is printing wrong data for the first print attempt

    Hi All,
    I need a quick help from Adobe print form gurus. Until now i dint get an issue on printing adobe interactive form from my portal. For eg., when i am giving a print for the first attempt, it was printing the form with wrong data in form fields and whereas when i tried to print it for the second time, then it is printing properly with right information.
    Please help.
    Regards,
    Praveen Kambala.

    Hi Praveen,
    Find out the data what is being printed for the first time, and check what is the flag that is making the change.  Hope that should resolve your issue.
    Thanks,
    Rakesh.

  • Exit button not working when entering wrong date

    how do I get the message not to appear by day Invalid (Frm-50004) in forms

    dear Shrikant,
    i have one item start_date whose data type is Date and format mask is DD/MM/RRRR ,
    when i m entering worng date it is showing below message which i kept on ON-ERROR trigger of start_date item with an error code 50004 ;
    "FRM-50004: Day must be between 1 and last of month."
    as i m entering wrong date i want to exit my form but my exit button is not working properly.
    The message appears several times, about 3 or 4 times, because the focus is on the text item to the date, and is firing the trigger ON-ERROR, debugging the code, you notice that after the message back running the line "IF", because the error frm-50004 can not be erased, is giving this error all the time because the focus is on her text item!
    i have kept my push buttons mouse and keyboard navigation property to "NO".
    then also it is not working tell me if any solution is there.

  • Terminated with error: br REP-501: Unable to connect to the specified data

    Dear All,
    Oracle DB 10g installed on Windows 2003 Server machine and client is Windows 7 Pro. Forms are running fine. If I run report by puting everything in URL it is also giving result. But only when i am trying to call report via form I get an error REP-501: Unable to connect to the specified data. The report log file contains below result. Is this something to to AUTHID=ANONYMOUS??? I need your assistance in this regard as I have been facing this problem since quite a long time now.
    [2011/10/22 3:55:55:34] Info 56013 (ConnectionManager:release): Connection 0 is released
    [2011/10/22 3:55:55:34] Info 50132 (JobObject:reset): jobid = 72 Get command line: REPORT=E:\AuditSys\twoconsecutive_estimate.jsp USERID=AUDITSYS@customerdb P_USERID="MAJAN" P_REPORTNAME="Bills which have been estimated for 3 months consecutively" P_REGIONCODE="" P_TARIFF="" P_PRIGOV="" P_AREAFROM="2" P_AREATO="91" P_BILLMONTH="9" P_BILLYEAR="2011" P_MONTHS="3" BATCH=YES DESTYPE=cache DESFORMAT=HTML AUTHID=ANONYMOUS
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): Job queue for jobid = 72 is 0
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): jobid = 72 is in current queue
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): Calling findDuplicatedJob for jobid = 72
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager:findDuplicatedJob): Found no duplicated job for job 72
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): No Duplicate jobs for jobid = 72
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): Job 72 is Enqueued
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager:firstToRun): job 72 is first to run
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager.runJobLocal): Trying to get engine for Job 72
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:getIdleEngine): Target max engines = 1
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:getIdleEngine): rwEng-0 is used = true
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:getIdleEngine): rwEng-0 state is 1
    [2011/10/22 3:55:55:34] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Reserved
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager.runJobLocal): Job 72 got Engine rwEng-0
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager:runJobInEngine): Job 72 calling setCommand on engine rwEng-0
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 3
    [2011/10/22 3:55:55:34] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Running
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 5
    [2011/10/22 3:55:55:34] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Idle
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager:runJobInEngine): Send job 72 to engine rwEng-0
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 3
    [2011/10/22 3:55:55:34] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Running
    [2011/10/22 3:55:55:96] State 56016 (JobManager:updateJobStatus): Job 72 status is: Terminated with error:
    REP-501: Unable to connect to the specified database.
    [2011/10/22 3:55:55:96] Debug 50103 (JobManager:notifyWaitingJobs): Master job 72 notify its duplicated jobs.
    [2011/10/22 3:55:55:96] Debug 50103 (JobManager:updateJobStatus): Finished updating job: 72
    [2011/10/22 3:55:55:96] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 1
    [2011/10/22 3:55:55:96] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Ready
    [2011/10/22 3:55:55:96] Exception 501 (): Unable to connect to the specified database.
    Thanks,
    Zia

    Dear guys, it is quite an urgency here and I am not getting any clue from anywhere else .... please give me some tips to handle the issue if anybody has some...
    Regards,

  • Tecra A10 - Wrong date and error messages

    Hello, Toshiba Tecra A10, PTSB0A-002001 running XP pro,
    I keep getting the wrong date & error messages on my laptop when I leave my laptop for long periods off without charging, so I guess that the Cmos battery is no good, so I am asking: what is cmos battery number and where can I purchase one?
    Thanks

    Hi joe75,
    Before you exchange the CMOS battery: Leave the AC/DC adapter connected for at least 24 hours. During this procedure the CMOS battery will be recharged and the notebook should be able to store the correct date & time settings again.
    Check this!!!

  • Access Table displays the wrong data

    I have successfully used Migration Workbench to migrate my tables and data into an oracle 10g database.
    I chose Modify Access Database from the MWB options in order to continue to use Access as the Frontend.
    At this point the forms do not work.
    What I noticed is that the oracle link tables _R have the wrong data in them when opened via Access.  But if I query the oracle db the data is correct.  I added a primary key but this did not help. Any suggestions ?
    Also I had to re load the code modules that run the application they disappeared during the migration process. Is that normal?
    Thanks for your help

    The table had the wrong columns and the wrong data, basically it was mapped to the wrong table.
    I checked the properties from the table detail window, much more helpful than right clicking on the object and choosing properties which only show you the DSN connection. The detailed description as shown below shows the table is incorrect
    ODBC;DSN=marilyn2;DBQ=ORCL ;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;MTS=F;MDI=F;CSR=F;FWC=F;PFC=10;TLO=0;;TABLE=BODYSHOP_EXTRACT.CONTRACTS_INFORMATION_TABLE.
    Can I just delete the linked table and import the correct table using Link Manager? Or do I need to use OMWB & Modify Access through the tool?
    Last question for today thanks

Maybe you are looking for

  • Print Image in Oracle Report

    I have an scan image in my report. I can see the image in the Layout editor but when the report runs all that comes out is a blank piece of paper. The image does not print. The version of reports is 2.5. Does anyone have any idea why the image does n

  • Access call logs in wp8.1

    Hi All , Am Developing Windows Phone App in WP8.1, One of my Requirement is to access Call Logs from Phone? Is there a Way to access the same? Any Suggestion would be of great help Thanks Arjun

  • How do I press, add, NOT RELEASE and drag?

    When I press the mouse-button in my panel, my program will add a component under the mousepointer. I would like to start dragging this component, without first releasing the button and then grabbing the component by pressing a second time. Can it be

  • What is command line in smartform?

    Hi Can anybody tell me what is command line in smartform? <MOVED TO CORRECT FORUM BY MODERATOR> Edited by: Alvaro Tejada Galindo on Jun 20, 2008 8:43 AM

  • My iphone 5 is stuck rotated to the left help please

    please help my iphone 5 is stuck rotated to the side the rotation lock is not on and ive even restored the phone and updated it but it still hasnt fixed it...