Query returnining diff values

Dear all,
I have this query
This query retuns the right value for other users.. whereas the same query returns no value for some other user.. (this user has select privileges on the tables department,invoice_rec)..
What could be the reason ?
Kai
Edited by: KaiS on Mar 4, 2009 10:00 AM

Does the other user have a copy of the current schema? I mean is he looking at his own data and not from the schema that you are connected to?

Similar Messages

  • Query returning diff values

    Dear all,
    We have EBS 11.5.10.2 installed on solaris
    Apps schema holds all objects and public synonyms created for all the objects in apps schema.
    now when I run the query from apps as :
    select * from PA_REP_UTIL_ORG_GE_V;
    am getting the error :
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kksfbc-reparse-infinite-loop],
    [0xFFFFFFFF7C7432B8], [], [], [], [], [], []
    whereas, when sys is querying the same. it gives the value..
    raised a SR with oracle also and they told to apply one patch.. but issue still remains..
    Please advise
    Kai

    Hi We have similar problem in one of our rac environment. Oracle asked us to upgrade, since business didn't allow we did a temporary work around of recompiling below object coming out of below query. We put this one in crontab and ran every hr. This worked perfectly fine for us.
    set pagesize 10000
    column d_name format a20
    column p_name format a20
    select do.obj# d_obj,do.name d_name, do.type# d_type,
    po.obj# p_obj,po.name p_name,
    to_char(p_timestamp,'DD-MON-YYYY HH24:MI:SS') "P_Timestamp",
    to_char(po.stime ,'DD-MON-YYYY HH24:MI:SS') "STIME",
    decode(sign(po.stime-p_timestamp),0,'SAME','*DIFFER*') X
    from sys.obj$ do, sys.dependency$ d, sys.obj$ po
    where P_OBJ#=po.obj#(+)
    and D_OBJ#=do.obj#
    and do.status=1 /*dependent is valid*/
    and po.status=1 /*parent is valid*/
    and po.stime!=p_timestamp /*parent timestamp not match*/
    order by 2,1;
    hth,
    http://borndba.com
    missed the script

  • Report using either query or direct value

    Hi,
    I'm using Reports 6i.
    I'm having a report in which most of the content is static text. only 1 or 2 values i'm fetching from database to fill up the content.
    I have a requirement like, if the user directly supply this value, then i have to run this report with the provided value without querying.
    In case they dont suppy the values, then the report should query and take values from the database.
    Whether such a report is possible?
    Thanks
    Divya

    Hi,
    Thanks for the reply.
    But if P_Param is not null then the report should take the parameter value and run the report.
    Suppose my report contents is like this
    This is a test report run by USERWhere user is the field.
    If i supply user say as 'Divya' , then i should get the output as
    This is a test report run by DivyaIf i didn supply user, and instead another parameter say id is supplied, then it should query and take the username and run
    Both should happen in single report.
    As you suggested, if the user param is null, then nothing comes.
    This is just a sample case i told. my original req involves more than one param
    Thanks

  • BW Query variable default value put in Crystal report variable question

    Why BW Query variable default value put in Crystal report variable for BO InfoView to open crystal report.
    I using Analyzer to open bw query,variables had default value ,but crystal report can't had variable default value ,and can't search variableĀ  value.
    pho:
    [http://file.itpub.net/f/e38876ad4f6efb7e73980488e7d71f8d/4ae940e9/day_091029/20091029_2b04da1232144feba180OrB23SNvXtoT.gif/p/1.gif]
    [http://file.itpub.net/f/d93ddfe61e0eaf80429726c61f1a02ff/4ae940e9/day_091029/20091029_3211ffe04bf0302fbab5FRKnbwmH80p7.gif/p/BW_QUERY_Crystal.gif]
    Edited by: flying on Oct 29, 2009 8:20 AM

    I Know what to do .
    but Crystal report date variable value are Garbage characters "###".
    PHO:
    [http://file.itpub.net/f/39a8510104476707ae21c945db93ecba/4ae97949/day_091029/20091029_32dcbb7e7d99141483aesJ9KBJHXN0Kj.gif/p/2.gif]

  • IChart & Fixed Query /w scooter values in legend (xMII 11.5.1)

    Hello all, this is my first post here and I hope that I can get some help.
    Environment Details:
    Server: Windows 2003, xMII 11.5.1, Java Plugin 1.4.2_13
    Client: Windows XP, IE6, Java Plugin 1.4.2_13
    My problem is that I cannot get scooter values to show in the legend with a simple iChart & Fixed Query.  At least not without more problems.  Let me explain...
    The following chart & query does not show scooter values in the legend (values are shown in the upper left hand corner for the selected item though):
    <applet name="ProcessDataApplet" height="421" width="1259" code="iChart" archive="illum8.zip" codebase="/Illuminator/Classes" "mayscript="true">
    <param name="Mode" value="FixedQuery" />
    <param name="QueryTemplate" value="Allvac/AMP/QueryTemplate" />
    <param name="DisplayTemplate" value="Allvac/AMP/DisplayTemplate" />
    <param name="Server" value="MONROE_VAR_ARMS" />
    <param name="Query" value="SELECT [TIMESTAMP],[ACTUAL_FURNACE_CURRENT],[ACTUAL_FURNACE_VOLTAGE],[RAM_VELOCITY] FROM [PRODUCT_HEADER] INNER JOIN [PRODUCT_AUDIT_DATA] ON ([PRODUCT_HEADER].[PRODUCT_KEY] = [PRODUCT_AUDIT_DATA].[PRODUCT_KEY]) WHERE [PRODUCT_HEADER].[PRODUCT_KEY] = '525cb615-1b15-4b07-aa7c-9f1df9c47ba3' AND [TIMESTAMP] >= '02/27/2008 03:21:22' AND [TIMESTAMP] <= '02/27/2008 15:14:34' ORDER BY [TIMESTAMP] ASC" />
    <param name="RowCount" value="8558" />
    <param name="ChartType" value="Line" />
    <param name="AxisValueColumn" value="TIMESTAMP" />
    <param name="XAxisFontSize" value="10" />
    <param name="LegendWidth" value="40" />
    <param name="LegendFontSize" value="10" />
    <param name="GlobalServerScaling" value="false" />
    <param name="ZeroBasedScale" value="true" />
    <param name="UseScreenResolution" value="false" />
    <param name="EnableDoubleClickRefresh" value="false" />
    <param name="ShowMouseTracking" value="true" />
    <param name="ShowScooter" value="true" />
    <param name="AutoScale.1" value="true" />
    <param name="Decimals.1" value="2" />
    <param name="AutoScale.2" value="true" />
    <param name="Decimals.2" value="2" />
    <param name="MinRange.3" value="0.00000" />
    <param name="MaxRange.3" value="0.40000" />
    <param name="Decimals.3" value="2" />
    </applet>
    I went one step further to see if I could get the scooter values shown in the legend.  I modified the query to use the StartDate & EndDate placeholders like so:
    SELECT [TIMESTAMP],[ACTUAL_FURNACE_CURRENT],[ACTUAL_FURNACE_VOLTAGE],[RAM_VELOCITY] FROM [PRODUCT_HEADER] INNER JOIN [PRODUCT_AUDIT_DATA] ON ([PRODUCT_HEADER].[PRODUCT_KEY] = [PRODUCT_AUDIT_DATA].[PRODUCT_KEY]) WHERE [PRODUCT_HEADER].[PRODUCT_KEY] = '525cb615-1b15-4b07-aa7c-9f1df9c47ba3' AND [TIMESTAMP] >= [SD] AND [TIMESTAMP] <= [ED] ORDER BY [TIMESTAMP] ASC
    I also added my initial StartDate & EndDate parameters:
    <param name="StartDate" value="02/27/2008 03:21:22" />
    <param name="EndDate" value="02/27/2008 15:14:34" />
    NOW the scooter values are shown in the legend, which is great, but all of a sudden the zoom is broken.  When I select an area to zoom and then click the zoom button, it zooms to a completely different area of the chart.  This is worse than my original problem.
    Can someone please help me out with this?  I have a feeling I'm leaving out something simple, but I can't find it.
    By the way, my display template and query template used in this example are empty so that I could show all parameters to you.
    Thanks,
    Bryan

    I removed scaling and accuracy parameters.  I also removed some parameters that controlled styling.  I added global auto scaling. 
    Now X & Y are updating properly on zoom.  Although unzoom isn't working for start date and end date.  They stay at the zoomed date.  The post data also shows the zoomed dates being sent to the server after unzoom.  The Y range updates properly on unzoom.
    Here is my updated applet html:
    <applet name="ProcessDataApplet" height="421" width="1259" code="iChart" archive="illum8.zip" codebase="/Illuminator/Classes" "mayscript="true">
    <param name="Mode" value="FixedQuery" />
    <param name="InitialUpdate" value="true" />
    <param name="QueryTemplate" value="Allvac/AMP/QueryTemplate" />
    <param name="DisplayTemplate" value="Allvac/AMP/DisplayTemplate" />
    <param name="Server" value="MONROE_VAR_ARMS" />
    <param name="Query" value="SELECT [TIMESTAMP],[ACTUAL_FURNACE_CURRENT],[ACTUAL_FURNACE_VOLTAGE],[RAM_VELOCITY] FROM [PRODUCT_HEADER] INNER JOIN [PRODUCT_AUDIT_DATA] ON ([PRODUCT_HEADER].[PRODUCT_KEY] = [PRODUCT_AUDIT_DATA].[PRODUCT_KEY]) WHERE [PRODUCT_HEADER].[PRODUCT_KEY] = '525cb615-1b15-4b07-aa7c-9f1df9c47ba3' AND [TIMESTAMP] >= [SD] AND [TIMESTAMP] <= [ED] ORDER BY [TIMESTAMP] ASC" />
    <param name="RowCount" value="10000" />
    <param name="StartDate" value="02/27/2008 03:21:22" />
    <param name="EndDate" value="02/27/2008 15:14:34" />
    <param name="ChartType" value="Line" />
    <param name="GlobalAutoScale" value="true" />
    <param name="UseScreenResolution" value="false" />
    <param name="ShowMouseTracking" value="true" />
    <param name="ShowScooter" value="true" />
    <PARAM NAME="Trace" VALUE="true">
    </applet>
    This problem isn't making any sense to me.  The documentation makes it sound like showing the current values in the legend is as easy as setting ShowScooter = true.  This wasn't the case for me though.  I had to use the [SD] and [ED] placeholders in my fixed query before the values would show up in the legend.  But then zooming breaks.  It looks like we're heading in the right direction to get the zooming fixed, but at the cost of being able to scale each pen.
    The first thing you said to me in your first post was that I'm using a 3+ years old version of xMII.  Are you saying there is a good chance this is a bug?  I was pretty convinced from the beginning that this problem is a bug.  The customer I am working for set me up with an xMII 11.5.1 server because that is what they are using in production.  Is there an online document with a list of bug fixes between versions?  If this is a known bug in 11.5.1 then maybe I can get the go ahead to upgrade.

  • Read Query String Parameter Value in SSRS

    Hi,
    We have Project Server 2010 and Sharepoint Server 2010 env and using SSRS 2008 R2 for reporting purpose in Native mode.
    Here I am displaying the SSRS Project report in Project Server page using Report Viewer web part like below.
    Here I want to read projuid query string parameter value (Highlighthed above in URL ) in SSRS by using any way, so that I can pass that
    projuid value in my SSRS report parameter to filter and make this report dynamic.
    Right now I have to select the ProjectName (Label) which passes ProjUID
    as value from the Parameter, but I want it should read the projuid
    from URL so that this reports will display the project the data for the opened Project automatically
    Thanks and let me know in case we can achive this using OOTB or some custom functions.

    Hi,
    For the report parameter, you can get the value from database query or some embedded funcitons etc. or even some customerized function.
    You may consider to create your own code for the report to read the projuid from application or URL. The customer code can be used to get the values from the applicaiton or from the url etc. Then report can call the customer code function to get the value.
    refer link
    https://technet.microsoft.com/en-us/library/ms155798(v=SQL.100).aspx
    https://support.microsoft.com/kb/920769?wa=wsignin1.0
    Thanks,

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • How could I replace hard coded value in my sql query with constant value?

    Hi all,
    Could anyone help me how to replace hardcoded value in my sql query with constant value that might be pre defined .
    PROCEDURE class_by_day_get_bin_data
         in_report_parameter_id   IN   NUMBER,
         in_site_id               IN   NUMBER,
         in_start_date_time       IN   TIMESTAMP,
         in_end_date_time         IN   TIMESTAMP,
         in_report_level_min      IN   NUMBER,
         in_report_level_max      IN   NUMBER
    IS
      bin_period_length   NUMBER(6,0); 
    BEGIN
      SELECT MAX(period_length)
         INTO bin_period_length
        FROM bin_data
         JOIN site_to_data_source_lane_v
           ON bin_data.data_source_id = site_to_data_source_lane_v.data_source_id
         JOIN bin_types
           ON bin_types.bin_type = bin_data.bin_type 
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time     >= in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time     <  in_end_date_time   + numtodsinterval(1, 'DAY')
         AND bin_data.bin_type            =  2
         AND bin_data.period_length       <= 60;
      --Clear the edr_class_by_day_bin_data temporary table and populate it with the data for the requested
      --report.
      DELETE FROM edr_class_by_day_bin_data;
       SELECT site_to_data_source_lane_v.site_id,
             site_to_data_source_lane_v.site_lane_id,
             site_to_data_source_lane_v.site_direction_id,
             site_to_data_source_lane_v.site_direction_name,
             bin_data_set.start_date_time,
             bin_data_set.end_date_time,
             bin_data_value.bin_id,
             bin_data_value.bin_value
        FROM bin_data
        JOIN bin_data_set
          ON bin_data.bin_serial = bin_data_set.bin_serial
        JOIN bin_data_value
          ON bin_data_set.bin_data_set_serial = bin_data_value.bin_data_set_serial
        JOIN site_to_data_source_lane_v
             ON bin_data.data_source_id = site_to_data_source_lane_v.data_source_id
            AND bin_data_set.lane = site_to_data_source_lane_v.data_source_lane_id
        JOIN (
               SELECT CAST(report_parameter_value AS NUMBER) lane_id
                 FROM report_parameters
                WHERE report_parameters.report_parameter_id    = in_report_parameter_id
                  AND report_parameters.report_parameter_group = 'LANE'
                  AND report_parameters.report_parameter_name  = 'LANE'
             ) report_lanes
          ON site_to_data_source_lane_v.site_lane_id = report_lanes.lane_id
        JOIN (
               SELECT CAST(report_parameter_value AS NUMBER) class_id
                 FROM report_parameters
                WHERE report_parameters.report_parameter_id    = in_report_parameter_id
                  AND report_parameters.report_parameter_group = 'CLASS'
                  AND report_parameters.report_parameter_name  = 'CLASS'
             ) report_classes
          ON bin_data_value.bin_id = report_classes.class_id
        JOIN edr_rpt_tmp_inclusion_table
          ON TRUNC(bin_data_set.start_date_time) = TRUNC(edr_rpt_tmp_inclusion_table.date_time)
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time     >= in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time     <  in_end_date_time   + numtodsinterval(1, 'DAY')
         AND bin_data_set.start_date_time >= in_start_date_time
         AND bin_data_set.start_date_time <  in_end_date_time
         AND bin_data.bin_type            =  2
         AND bin_data.period_length       =  bin_period_length;
    END class_by_day_get_bin_data;In the above code I'm using the hard coded value 2 for bin type
    bin_data.bin_type            =  2But I dont want any hard coded number or string in the query.
    How could I replace it?
    I defined conatant value like below inside my package body where the actual procedure comes.But I'm not sure whether I have to declare it inside package body or inside the procedure.
    bin_type     CONSTANT NUMBER := 2;But it does't look for this value. So I'm not able to get desired value for the report .
    Thanks.
    Edited by: user10641405 on May 29, 2009 1:38 PM

    Declare the constant inside the procedure.
    PROCEDURE class_by_day_get_bin_data(in_report_parameter_id IN NUMBER,
                                        in_site_id             IN NUMBER,
                                        in_start_date_time     IN TIMESTAMP,
                                        in_end_date_time       IN TIMESTAMP,
                                        in_report_level_min    IN NUMBER,
                                        in_report_level_max    IN NUMBER) IS
      bin_period_length NUMBER(6, 0);
      v_bin_type     CONSTANT NUMBER := 2;
    BEGIN
      SELECT MAX(period_length)
        INTO bin_period_length
        FROM bin_data
        JOIN site_to_data_source_lane_v ON bin_data.data_source_id =
                                           site_to_data_source_lane_v.data_source_id
        JOIN bin_types ON bin_types.bin_type = bin_data.bin_type
       WHERE site_to_data_source_lane_v.site_id = in_site_id
         AND bin_data.start_date_time >=
             in_start_date_time - numtodsinterval(1, 'DAY')
         AND bin_data.start_date_time <
             in_end_date_time + numtodsinterval(1, 'DAY')
         AND bin_data.bin_type = v_bin_type
         AND bin_data.period_length <= 60;
      --Clear the edr_class_by_day_bin_data temporary table and populate it with the data for the requested
      --report.
      DELETE FROM edr_class_by_day_bin_data;
      INSERT INTO edr_class_by_day_bin_data
        (site_id,
         site_lane_id,
         site_direction_id,
         site_direction_name,
         bin_start_date_time,
         bin_end_date_time,
         bin_id,
         bin_value)
        SELECT site_to_data_source_lane_v.site_id,
               site_to_data_source_lane_v.site_lane_id,
               site_to_data_source_lane_v.site_direction_id,
               site_to_data_source_lane_v.site_direction_name,
               bin_data_set.start_date_time,
               bin_data_set.end_date_time,
               bin_data_value.bin_id,
               bin_data_value.bin_value
          FROM bin_data
          JOIN bin_data_set ON bin_data.bin_serial = bin_data_set.bin_serial
          JOIN bin_data_value ON bin_data_set.bin_data_set_serial =
                                 bin_data_value.bin_data_set_serial
          JOIN site_to_data_source_lane_v ON bin_data.data_source_id =
                                             site_to_data_source_lane_v.data_source_id
                                         AND bin_data_set.lane =
                                             site_to_data_source_lane_v.data_source_lane_id
          JOIN (SELECT CAST(report_parameter_value AS NUMBER) lane_id
                  FROM report_parameters
                 WHERE report_parameters.report_parameter_id =
                       in_report_parameter_id
                   AND report_parameters.report_parameter_group = 'LANE'
                   AND report_parameters.report_parameter_name = 'LANE') report_lanes ON site_to_data_source_lane_v.site_lane_id =
                                                                                         report_lanes.lane_id
          JOIN (SELECT CAST(report_parameter_value AS NUMBER) class_id
                  FROM report_parameters
                 WHERE report_parameters.report_parameter_id =
                       in_report_parameter_id
                   AND report_parameters.report_parameter_group = 'CLASS'
                   AND report_parameters.report_parameter_name = 'CLASS') report_classes ON bin_data_value.bin_id =
                                                                                            report_classes.class_id
          JOIN edr_rpt_tmp_inclusion_table ON TRUNC(bin_data_set.start_date_time) =
                                              TRUNC(edr_rpt_tmp_inclusion_table.date_time)
         WHERE site_to_data_source_lane_v.site_id = in_site_id
           AND bin_data.start_date_time >=
               in_start_date_time - numtodsinterval(1, 'DAY')
           AND bin_data.start_date_time <
               in_end_date_time + numtodsinterval(1, 'DAY')
           AND bin_data_set.start_date_time >= in_start_date_time
           AND bin_data_set.start_date_time < in_end_date_time
           AND bin_data.bin_type = v_bin_type
           AND bin_data.period_length = bin_period_length;
    END class_by_day_get_bin_data;

  • Query for a Value Set

    Is there any way to get one record for each of orgs? I would like to use this query in a value set but I can put the word distinct in a value set SQL statement. Any Ideas?
    SELECT
    haou.NAME ORGANIZATION_NAME
    FROM
    hr.per_all_assignments_f paaf,
    hr_all_organization_units haou
    WHERE haou.Organization_id = paaf.Organization_id
    AND paaf.primary_flag = 'Y'
    AND paaf.assignment_type = 'E'
    AND sysdate BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    order by 1

    Found it...
    select name from hr_all_organization_units b
    where organization_id in (select organization_id from per_all_assignments_f a
    where a.organization_id = b.organization_id )
    order by 1

  • Query range of values

    I've been creating a query screen for users using a QBE report. Is there a way I can have the users query using one value or a range of 2 values for a field?
    Thanks,
    Hope

    If you don't need the other features of QBE reports (updating, deleting etc) then you might want to consider using a SQL report with a query like
    select * from scott.emp where deptno between :dept1 and :dept2
    The customization screen allows you to enter values for dept1 and dept2.

  • Problem when querying OLAP for Value based hierarchy

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

  • Fiscal Year Period - Query Designer - Characteristics Value

    Hi Experts,
    In query designer, characteristics value for 0FISCPER by default shows value of fiscal year variant V9. But for Fiscal year variant V9, 002.2014 is November 2013.
    Now user want to display the correct period and its description (002.2014 is February 2014) which implies need to use different variant. Please let me how this can be changed.
    Regards
    Suresh Kumar

    Hi Suresh,
    Try this
    Path: Financial Accounting >> Financial Accounting Global settings >> Fiscal Year >> maintain Fiscal year variant (maintain shortened fiscal year)
    Transaction Code: OB29
    Regards,
    Amit

  • Query contains double value - seems cache problem

    Hi experts,
    in a Query (integrated planning) based on an Aggregationlevel based on a Multicube.
    The Multicube contains an Realtime InfoProvider to store planning data and a normal InfoProvider to show actual values.
    The load of actual values to the InfoProvider can be executed several times a month via ProcessChain -
    itĀ“s a full load so the data loaded before will be deleted during the month in order to save the new monthly dataload.
    In the Query there were double values displayed for actual data after several loads during the month -
    but in the acutal InfoProvider only a single value is stored!
    It seems to be a buffer problem, since a deletion of all system buffers solves the problem - but this is not the way to handle the problem in productive area.
    How can the problem be solved?
    Setting of Planbufferquery of acutal data InfoProvider to not using Cache doesn't help.
    Thank you!
    Angie

    Hi,
    there is no data stored in acutal cube and the query column is restricted to actual cube.
    And actual cube only contains the value once, but the query can display the double value.
    If all buffers are reset, the query shows correct value - but this is not the way to handle the problem.
    What changes need to be made?
    Is there a setting in query cache or planningbuffer query cache or some other setting that can fix the problem?
    Best regards,
    Angie

  • How to force readObejct query with PK value to go to DB?

    The default behaviour for read-object queries with a PK value is to use the cache and not go to the database. How can we change this behaviour?
    We have cases that a row was deleted by some other process not through toplink, but the corresponding object still in the cache and if you use the readObject query with PK value, the object will be returned as result.
    Thanks in advance,

    There are several mechanisms to disable caching in TopLink. Note that disabling caching will affect your performance.
    In 9.0.4 you can use:
    - You can configure you cache type to use a WeakIdentityMap to ensure that only referenced objects are cached.
    - On descriptor you can call disableCacheHits() and alwaysRefreshCache() in code or click these options on the Caching/Identity tab in the Mapping Workbench.
    - Or to explicitly remove a deleted object from the cache uses session.removeFromIdentityMap(), but you must ensure there are no other objects referencing it.
    In 10.1.3 you can also use:
    - On descriptor you can call setIsIsolated(true) in code, or select isolated in the Caching tab in the Mapping Workbench.
    - Alternatively you can set a CacheInvalidationPolicy on your descriptor to ensure objects are not cached for longer than a specified time, or invalidated daily.
    - Or to explicitly invalidate a deleted object use, session.getIdentityMapAccessor().invalidateObject()

  • Single query return multiple value

    Hi ALL,
    I have a sql query as below :
    select order_number,
    (select decode(hcp.contact_point_purpose,'ABC',hcp.email_address,'CDE',hcp.email_address,null)
    from hz_contact_points,
    hz_parties hz
    WHERE hz.party_id=hcp.owner_table_id) Email
    FROM oe_order_headers_all h
    WHERE h.order_number='102'
    Actually the problem i am facing is the inner select query is returning multiple row , so my main query is erroring out, i need to capture the multiple row.
    in the above example the inner decode statement returning two mail address, i need to capture that, but while executing the whole query it is erroring out as saying single query returns multiple values.
    please help me on this to capture multiple values
    Thanks

    >
    select order_number,
    (select decode(hcp.contact_point_purpose,'ABC',hcp.email_address,'CDE',hcp.email_address,null)
    from hz_contact_points,
    hz_parties hz
    WHERE hz.party_id=hcp.owner_table_id
    /* a join is missing here that points to table oe_order_headers_all h*/) Email
    FROM oe_order_headers_all h
    WHERE h.order_number='102'
    >
    I can see a join missing in your select sub query.
    However, if you you are still getting the single query return multiple value error then you need to replace the sql sub query
    select decode(hcp.contact_point_purpose,'ABC',hcp.email_address,'CDE',hcp.email_address,null)
    from hz_contact_points,
    hz_parties hz
    WHERE hz.party_id=hcp.owner_table_id)by decode(hcp.contact_point_purpose,'ABC',hcp.email_address,'CDE',hcp.email_address,null)
    and join the two tables in you main query..
    Regards
    Biju
    ED: Provide test script and your expected output to get what you want exacly!
    Edited by: biju2012 on Sep 7, 2012 12:06 AM

Maybe you are looking for

  • Since I've uploaded IOS 7 and can't open PDFs now. Please help.

    Since I've uploaded IOS 7 and can't open PDFs now. Please help.

  • Rule File Consoldation Properties Detail

    I have two questions, I need to review all my post becasue i have asked this question before but can not find the details needed!!!!! so I have a BSO cube and in the Consolidation properties it is "~" in the load rule but i need to make all ~ Label o

  • Explanation of the merge layers options?

    i need a brief eeplaination of the merge layers options.

  • Oracle 8i Listener Vulnerability

    Hey I have read about the Oracle 8i listener vulnerability that if it is not password protected then denial of service attacks can occur along with other threats as well. this can be done through the lsnrctl utility but i was thinking how can this ut

  • Extract fails when namespace present

    I'm receiving xml results from a SOAP call, and am not able to extract attributes or elements from the xml when a namespace is present. The xml has a defined namespace at the top node, but is null 2 nodes down. Sample: <ImportLeadsResponse xmlns="htt