WHERE Predicate line works in Aqua Data Studio, not in Report Builder

I’m trying to get a query working in report builder which will pull data back when run in Aqua Data Studio. 
It returns a NULL set when working with the same data source from report builder. 
Here is the WHERE clause:
--WHERE SYSDATE < :REM_DATE 
-- troubleshooting line (=DateAdd("d", 3, Now()))
WHERE SYSDATE
< TO_DATE(TO_CHAR(TPOA.POST_DT,
'MM/DD/YYYY'),
'MM/DD/YYYY') +
3
AND TPOA.DEST_OTHER
IS NOT NULL
AND TPOA.AUTH_STATUS_IND =
'A'
The commented line works in Report Builder.  :REM_DATE has as its default expression =DateAdd(“d”, 3, Now()), used as a means of troubleshooting. 
There isn’t a way to populate :REM_DATE before use because forward dependencies aren’t allowed.
Also tried is this line for the first part of the WHERE:
WHERE SYSDATE
< TPOA.POST_DT + 3
As well, it works in AD but not in RB.
Here is the full query, which is the 2<sup>nd</sup> query in a UNION:
SELECT DISTINCT
TO_CHAR(TPOA.MATL_ASGN_DT,
'MM/DD/YYYY')
AS MATL_ASGN_DT
,TPOA.TE_24_NBR
,TPOA.POST_DT AS TE24_DATE
,SUBSTR(TPOA.DEST_PRODR_SUPP_CD,
1, 5)
AS DEST_PS_CD
,'N'
AS DEST_PO_IND
,SUBSTR(TPOA.SRC_PRODR_SUPP_CD,
1, 5)
AS SRC_PS_CD
,SUBSTR(TPOA.SRC_PRODR_SUPP_CD,
7, 2)
AS SRC_PS_CD_SFX
,TPOA.LPA_IND
,SUBSTR(TPOA.DEST_PRODR_SUPP_CD,
7, 2)
AS DEST_PS_CD_SFX
,SUBSTR(TPOA.DEST_CONT_ALT_ID,
1, 2)
AS DEST_PROJ_YR
,SUBSTR(TPOA.DEST_CONT_ALT_ID,
3, 4)
AS DEST_PROJ_SEQ
,TPOA.DEST_OTHER
,TPS.PRODR_SUPP_NM AS ABBR_NAME
,'SM'
AS FRM_IND
FROM VWARE.T_POST_ASG TPOA
LEFT OUTER JOIN SMDBA.T_PRODR_SUPP TPS
ON TPOA.SRC_PRODR_SUPP_CD = TPS.PRODR_SUPP_CD
--WHERE SYSDATE < :REM_DATE 
-- troubleshooting line (=DateAdd("d", 3, Now()))
WHERE SYSDATE
< TO_DATE(TO_CHAR(TPOA.POST_DT,
'MM/DD/YYYY'),
'MM/DD/YYYY') +
3
AND TPOA.DEST_OTHER
IS NOT NULL
AND TPOA.AUTH_STATUS_IND =
'A'
Michael Durthaler

Hi Michael,
What's the version of your Report Builder? When you run the query in query designer of Report Builder, have you got any error/warning message?
In this case, I would suggest you can try to SQL Server Profiler to capture some events do further investigation while run the query in Report Builder.
If you have any feedback on our support, please click
here.
Regards,
Elvis Long
TechNet Community Support

Similar Messages

  • Synchronization from SLD to LMDB is working fine, but data is not written to Software == Product Instance

    Dear Gurus,
    Synchronization from SLD to LMDB is working fine, but data is not written to Software ==> Product Instance section tab. What could be the problem ? Normally it should gather automatically, but pushed me to select manually lots of component ???
    Here is collecting is working fine !!!

    Hello Kemal,
    You have to ensure that your Technical System info is properly filled automatically.
    In LMDB you first create its Product System on LMDB Start Screen ProductSystem tab, after that please assign its respective Technical System. You probably need to run the Verification Check in order to confirm that your Product System has all Product Instances according on Technical System's Software Component Versions.
    Regards.
    Luis Roel

  • Data links Questions on Reports Builder

    We are currently using Reports Builder 10.1.2.3.0. We are trying to create a topology report. So, we have about 5 queries in the data models which are linked using a query links with Child Destination column in the child query.
    So, here is the example:
    Q1 --> Q2 (joined with Q1 child) --> Q3 (joined with Q2 child) --> Q4 (joined with Q3 child)--> Q5 (joined with Q4 child).
    So, the problem we are experiencing is when Q2 has same child twice, the Q2 query is actually sending the same child id to Q3 twice (or however many times its repeating). Is there any way to distinct the child so we get only one child sent to Q3?
    Here is an example:
    Q1
    Parent Child
    A1 B1
    A2 B2
    A3 B3
    Q2
    Parent Child
    B1 C1
    B1 C2
    B2 C1
    Q3
    Parent Child
    C1 D1
    C1 D1
    C2 D3
    Any help or suggestion would be greatly appreciated. Thanks.
    Edited by: user613427 on Dec 12, 2011 1:17 PM

    You are on the right track, here is how our structure looks like:
    Query1
    Street, City
    Query 2
    City, State
    Query 3
    State, Country
    And Queries are linked using group links.
    Here is an example:
    Query 1 results:
    Street1 City1
    Street1 City2
    Query 2 results:
    City1 State1
    City1 State2
    City2 State3
    City2 State1
    Query 3 results:
    State1 Country1
    State1 Country1
    State2 Country4
    State3 Country5
    Note: example is not realistic, i know. just wanted to give you picture.
    So, the repeating frame for Query3 gets Stateid from Query2 one by one rather than collect it and distinct it, hence the duplicates. I hope this explains it.

  • Sorting not working correctly for date field in alv report

    Hi All,
    My report displays many rows also containing date type fields of bldat,budat .
    When I sort the report selecting field of type bldat budat the sorting is not correct for the year.
    Ex:
    Invoice doc dat
    01-25-2011
    01-21-2011
    02-02-2011
    10-25-2010
    11-20-2010
    If I use ascending then it is sorted as :
    Invoice doc dat
    01-21-2011
    01-25-2011
    02-02-2011
    10-20-2010
    10-25-2010
    Why the sorting is not working correct for year.(2010 records should have been first).
    The field wa_tab-bldat is of type char10.
    It is populated as wa_tab-bldat = bsak-bldat.
    Kindly suggest what can be done.

    The field wa_tab-bldat is of type char10
    Then what it does is correct.
    Refer to type datum...it will work

  • Where Motion 5 work even if I do not have Final Cut X?

    I do not have Final Cut Pro or FCP X. If I buy Motion 5 can I still install and work with it?

    It' heavy on memory so that is important, but it works independant and you won't regret it. Not easy in the beginning but don't give up, worth every cent.
    Good luck.

  • How do I apply filters or limit the rows on my report using a Date field in SQL report builder 3.0?

    I have a status of completed and a date field in the dataset. The date field is either empty or contains a date. All 2015 dates are holding dates.
    So how can I limit the report to only pull completed status with an empty date or a holding date?
    I have not been able to set an OR option on a date field filter and if I add two filters on the date column one for empty one for > 12/31/2014 then it treats it as an "and" and pulls nothing from the list I have in sharepoint.
    any help will be appreciated.

    Hi MB,
    In Reporting Services, the relationship of  filters is “And”, and there is no option to change the relationship from “And” to “Or”. While we can use “or” operator within the expression to create one filter to integrated all filters to work around this
    issue.
    We can add a filter as follows in the dataset to limit the rows in your report:
    Expression: =Fields!date.Value is nothing or Fields!date.Value>"12/31/2014"    Type: Boolean
    Operator: =
    Value: true
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • I am transmitting data over internet and WiFi ,it's working fine with internet but when I choose WiFi for data transmission data is not being transmitted. What may be the possible issues of data transmission failure over WiFi?  Please help me.

    I am transmitting data over internet and WiFi ,it's working fine with Internet but when I choose WiFi for data transmission data is not being transmitted. What may be the possible issues of data transmission failure over WiFi?     Please help me....
    Thanks in Advance.
    Neeraj@iDev

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • Data is not being displayed into DataGridview until Clicked inside the cells

    Hi,
    On a windows form, I have a DataGridView, its columns are auto-generated every time. Data is loaded after the user click a data-load button. However this is NOT working well, the data is not displayed until manually clicked inside the grid cells. The following
    is the code. Could you please help? Thanks!
     private void ButtonTestGrid_Click(object sender, EventArgs e)
                for (int i = 0; i < 10; i++)
                    this.MainDataGrid.Columns.Add(TestHelper.CreateTextBoxColumn("Col" + i.ToString(), 120));
                Dictionary<string, object>[] data;
                data = TestHelper.CreateTestData();
                this.MainDataGrid.EndEdit();
                TestHelper.LoadGridData(this.MainDataGrid, data);
                this.MainDataGrid.Refresh();
     public class TestHelper
            public static DataGridViewTextBoxColumn CreateTextBoxColumn(string name, int width)
                DataGridViewTextBoxColumn column = new DataGridViewTextBoxColumn();
                column.HeaderText = name;
                column.Name = name;
                column.ReadOnly = false;
                column.Width = width;           
                return column;
            public static void LoadGridData(System.Windows.Forms.DataGridView grid, Dictionary<string, object>[] data)
                int index;
                foreach (Dictionary<string, object> row in data)
                    index = grid.Rows.Add();
                    LoadRowData(grid, index, row);            
            public static void LoadRowData(System.Windows.Forms.DataGridView grid, int index, Dictionary<string, object> data)
                string name;
                for (int i = 0; i < grid.Columns.Count; i++)
                    name = grid.Columns[i].Name;
                    if (data.ContainsKey(name))
                        grid.Rows[index].Cells[name].Value = data[name];
            public static Dictionary<string, object>[] CreateTestData()
                Dictionary<string, object>[] dataList = new Dictionary<string, object>[5];
                Dictionary<string, object> data;
                for (int j = 0; j < 5; j++)
                    data = new Dictionary<string, object>();
                    for (int i = 0; i < 10; i++)
                        data.Add("Col" + i.ToString(), i);
                    dataList[j] = data;
                return dataList;

    There are different ways to bind the datagridview control to it's datasource, the question is where and what is your datasource? Is it from a database or XML file, or is it built on runtime...etc? 
    Based on your explanation I can understand that the Datagridview is binding correctly in the code behind since the rows of the grid are created. Because the row of the Datagridview are created only while it is binded correctly to it's datasource. The issue
    of the display seems something different and strange.
    Try also this way by using DataTable one the common ways used:
    static DataTable GetTable()
    // Here we create a DataTable with four columns.
    DataTable table = new DataTable();
    table.Columns.Add("Dosage", typeof(int));
    table.Columns.Add("Drug", typeof(string));
    table.Columns.Add("Patient", typeof(string));
    table.Columns.Add("Date", typeof(DateTime));
    // Here we add five DataRows.
    table.Rows.Add(25, "Indocin", "David", DateTime.Now);
    table.Rows.Add(50, "Enebrel", "Sam", DateTime.Now);
    table.Rows.Add(10, "Hydralazine", "Christoff", DateTime.Now);
    table.Rows.Add(21, "Combivent", "Janet", DateTime.Now);
    table.Rows.Add(100, "Dilantin", "Melanie", DateTime.Now);
    return table;
    Then to bind the above Datatable to the grid control:
    this.MainGrid.DataSource = null;//To clear before bind
    this.MainGrid.DataSource = GetTable();
    Fouad Roumieh

  • Report Builder with multiple data series

    I am not able to figure out how to create a bar chart using
    multiple data series in the Report Builder. I can do it with
    explicit CFML coding but not in the Report Builder. I am running MX
    version 7 with the current (as of 9/1/07) download of the Report
    Builder.
    My table contains visit information by site, with standard
    demographics on each visit (age, race, gender, etc.) I am trying to
    analyze the data by site, for example, race by site.
    I am using an SQL statement to sort and group by site &
    race. I can get a chart of the number of visits for each site or
    the total number of visits by race across all sites. But I can't
    get race by site. The SQL statement looks like this:
    SELECT race, site, COUNT(*) as counter
    FROM visit_info WHERE userid = #session.uid#
    GROUP BY site, race ORDER by site, race
    Every variation I have tried for showing race by site either
    leaves out part of the results or creates a bar chart that has the
    race and site categories as separate entities (White, Black,
    Chinese, Site1, Site2, Site3, etc). I've also tried creating a
    combined variable (site_race) but that doesn't seem to fare any
    better.
    Any help would be appreciated.

    Pop,
    Badunit's example is one possible arrangement that you might have described; that is, one column for X values and several columns for Y values. This is the case when you should respond that you are sharing X-values. With all the data in one table, you can select it all at once, so you don't have the problem with dragging additional series into the chart.
    The Numbers User Guide PDF's first chapter is the place to start getting your bearings - you will learn how to distinguish Header vs. Body rows and columns. It's worth the effort to take another look at it.
    Since you are using a Scatter Chart, it's important not to use a header column for X because X values must be Numeric, as opposed to Text.
    Jerry

  • External Data source not appearing in Data source type

    Hello,
    I use SQL Server 2012 BI Edition and use Data tools to create reports. I have a 3rd party Data source. While creating a new shared data source, I cannot get it to appear under the Data Source Type. Only the current built in types are available. For test
    purposes, I tried editing the RSReportServer.config and added a duplicate entry and it was shown in the dropdown. What should I do? 
    When this 3rd party data source is installed, under Tools --> Connect to Database, I am able to get that datatype and connect to my data source. I tried uninstalling and this option goes away. 
    Regards
    Vivek.

    Hi Vivek,
    Based on my research, the error always occurs when you load custom extensions in SQL Server 2012 Data Tools or use Report Builder 2.0 to run an SSRS 2008 or SSRS 2008 R2 report that uses a custom data processing extension in server mode. According to your
    description, it seems that you are not in those two scenarios. So I think this issue can be caused by that the Custom Data Process Extension is not deployed correctly in SQL Server Reporting Services.
    The following document about Implementing a Data Processing Extension in Reporting Services is for your reference:
    http://www.codeproject.com/Articles/22946/Implementing-a-Data-Processing-Extension
    Besides, please note that Report Builder is currently not extensible, and can't load custom data extensions or custom query designers. We can refer to the method posted by Robert to work around this issue:
    https://go4answers.webhost4life.com/Example/custom-data-sources-report-builder-30-15682.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Oracle Fussion Report Builder Not properly Work in 64 bit windows?

    Windows 7 64 bit Oracle Report Builder 11.1.1.3 not properly work
    Windows 2008 server 64 bit Oracle Report Builder 11.1.1.3 not properly work
    Data model Design Open (APPCRASH) vgs.dll
    copy paste not properly work
    windows donot send message many times
    very very slow working in design time
    goto end (delete in both operating system)
    but ii think report builder work only 32 bit windows????
    any body can help me what can i do for 64bit windows

    Reports Builder 11g doesn't work on 64-bit OS-system (linux also). You can only use an VM-maschine with 32-bit OS or wait until oracle fineshed the Builder for 64-bit.

  • Html marquee : stop() and start() work on firefox 26 but not on 27

    this html/javascript line works on firefox 26 but not on firefox 27
    <marquee onMouseOver='this.stop();' OnMouseOut='this.start();'>Hello</marquee>
    Why ?

    Thanks of lot, it works !

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.Not working in USA timezone.

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works fine in our side (Timezone,kolkata ,india even for Timezone,slvaniya,USA) but our USA client is telling that on changing the date it not starts from start-up sequence.Can anyone plz suggest the reason for it.

    This is the code which we have used.
    //////////Return if it is first time for the day or not//////////////
    + (BOOL)isFirstTimeToday {
    BOOL result = YES;
    NSDate *now = [[NSDate alloc] init];     /// represents the current time
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: now];
    NSDate *today = [gregorian dateFromComponents:components];
    [now release];
    [gregorian release];
    NSDate *savedDate = [[NSUserDefaults standardUserDefaults] objectForKey:LAST_TIME_VISITED];
    if (savedDate) {
    if ([today earlierDate:savedDate] == today) {
    result = NO;
    return result;
    ////////Stores the date/////////////
    + (void)userDidVisitReenforceScreenToday {
    [[NSUserDefaults standardUserDefaults] setObject:[NSDate todayAtMidnight] forKey:LAST_TIME_VISITED];
    ////////////What [NSDate todayAtMidnight] stores/////////////////////
    + (NSDate *)daysFromNowAtMidnight:(NSInteger)nOfDays {
    NSDate *date = [NSDate dateWithTimeIntervalSinceNow: (86400*nOfDays)];
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: date];
    NSDate *dateAtMidnight = [gregorian dateFromComponents:components];
    [gregorian release];
    NSLog(@"dateAtMidnight : %@",dateAtMidnight);
    return dateAtMidnight;
    + (NSDate *)todayAtMidnight {
    return [self daysFromNowAtMidnight:0];
    Please Suggest..

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    Try posting in the developer forums to see if you can get some assistance,you'll have to be a registered developer for access though.
    developer.apple.com

  • My MacBook running Mountain Lion does not allow me to view any videos on the Internet. The place where the video is supposed to be just shows black rectangle. Is there anything I can do to make videos on line work?

    My MacBook running Mountain Lion does not allow me to view any videos on the Internet. The place where the video is supposed to be just shows black rectangle. Is there anything I can do to make videos on line work? I discovered that Java quits immediately. Could that be the cause? If so, how do I fix it?

    My MacBook running Mountain Lion does not allow me to view any videos on the Internet. The place where the video is supposed to be just shows black rectangle. Is there anything I can do to make videos on line work? I discovered that Java quits immediately. Could that be the cause? If so, how do I fix it?

Maybe you are looking for

  • Error while trying to synchronize Audio and MIDI-HELP PLZ!!!

    Hi there, i have just started gettin the message wheneva i try and play audio/audio instr: 'Error while thrying to synchronize Audio and MIDI-Sample Rate 41222 recognized. Check conflict between Logic Pro and external device' I get lots of high frequ

  • How to update ArrayCollection at runtime?

    Am facing some problem with arraycollection.. am having an arraycolelction like this... var dpHierarchy:ArrayCollection = new ArrayCollection([ {Region:"Demand1"}, {Region:"Demand2"}, {Region:"Demand3"}, {Region:"Demand4"}] now what am looking for is

  • How do I enter a license number in Final Cut Pro X?

    I am taking a class that includes a license for Final Cut Pro X.  I was given a license number by my teacher and told to "download Final Cut from Apple and enter the license number".  When I download the trial I don't see any way to upgrade it to a f

  • Page display error - Oracle Enterprise Performance Management System Fusion

    We run this via internet explorer Our systems are Windows 7 and office 2010 & Internet Explorer 9 - Smart View version 11.1.1.3 500 One of the systems sometimes when refreshing the page / data the grid toolbar including the arrows and save button dis

  • Auto info fill in

    How do I set up in order that when filling out a form the blanks are automatically filled in with info such as name, address, email address and phone number.