Report not showing correct results

I am new to SSRS.  Using SQL 2008, Visual Studio 2010 shell.
I have a stored procedure that when I execute it through SSMS, it returns the correct results.  However, when my report runs through SSRS (using the same stored procedure).  I get inconsistent results.
I've been able to narrow it down to a specific parameter in my report where I pass in Id's.  This particular parameter gets its values from a query and is setup to use multiple values.  I have focused on two ID's which together are giving
me problems. 
The IDs are !'" and
!!T.
When I ONLY select !'" the report returns the correct results.
When I ONLY select !!T the report return the correct results.
When I select !'" and !!T the report only return the results for !!T.
I have no clue why SSRS doesn't like this.  Any help would be appreciated.
jhoop

I created the specific function referenced in your link and it didn't help.
Function
CREATE FUNCTION [dbo].[c__SplitValues]
-- Add the parameters for the function here
@List nvarchar(2000)
,@SplitOn nvarchar(2000)
RETURNS
@RtnValue TABLE
-- Add the column definitions for the TABLE variable here
Id int identity(1,1)
,Value nvarchar(100)
AS
BEGIN
-- Fill the table variable with the rows for your result set
While(CHARINDEX(@SplitOn, @List) > 0)
BEGIN
INSERT INTO @RtnValue (value)
SELECT
VALUE = LTRIM(RTRIM(SUBSTRING(@List, 1, CHARINDEX(@SplitOn, @List) - 1)))
SET @List = SUBSTRING(@List, CHARINDEX(@SplitOn, @List) + LEN(@SplitOn), LEN(@List))
END
INSERT INTO @RtnValue (Value)
SELECT Value = LTRIM(RTRIM(@List))
RETURN
END
The line in my SQL statement where I use this function
AND TableName.UserId IN (SELECT Value FROM dbo.c__SplitValues(@UserId,','))
jhoop

Similar Messages

  • VL06I Inbound delivery monitor not showing correct results

    Dears,
    We are creating inbound deliveries on the basis of POs and creating GR via MIGO after eliminating movement type in line item catageory by using SPRO. For monitoring we would like to use VL06I but its not showing correct results.
    Can anyone guid me ?
    Regards,
    FR

    You can list all Inbound Deliveries by selecting "List Inbound Deliveries"  Tab in VL06I
    May be if you can little elaborate the issue

  • Aggregation not showing correct results in 10g

    Hi,
    We have created a calculated column in BMM layer as x=Sum(Amount)/sum(Distinct Members).
    In the report, individually it is showing correct results but when we are calculating "Total By" it is showing wrong total.This is because of while calculating totals it is taking the formula as x=Sum(Amount)/sum(Members).
    Aggregations are kept as default for all the columns in the report .
    Please help me to solve this issue.

    For this calculated column set aggregation level as sum.

  • Inventory Non cumulative values are not showing correct result

    Hi Guys,
    I have created a report on Inventory cube taking material in rows and 0T0TALSTCK and 0VALSTCKVAL in colums and i created a variable on calender day . What ever the date if we give we will get the quantity and value as on that date.
    Here Quantity is showing perfectly and in case of value it is showing wrongly. In this case the interesting thing is if we substract the  (Reciet value - Issue ) value then i am getting the correct value.
    Some times Even quantity is zero the noncumulative keyfigure (0VALSTCKVAL)is not showing zero it is showing some value but if i do (Reciet value - Issue ) it will show correctly.
    Please help on this issue.
    Thanks & Regards
    K.Srinivas

    Hi,
    when the quantity is correct, then you have a problem with the values. You have loaded the infocube correcly.
    check your keyfigures and the transformation with the BI content.
    => for example: do you have the coding in the BF transformation?
    * see OSS note 571669
        LOOP AT SOURCE_PACKAGE ASSIGNING <SOURCE_FIELDS>.
          IF <SOURCE_FIELDS>-stockcat EQ 'V' OR
             <SOURCE_FIELDS>-stocktype EQ 'V'.
            DELETE SOURCE_PACKAGE.
          ENDIF.
        ENDLOOP.
    => you have used the datasource 2LIS_03_UM. There are no quantities. Is there your problem.
    Sven

  • Log application query not showing correct results

    Hi,
    We are running Dataguard (DG) in our production environment. EBS 11.5.10.2 and DB 10.2.0.4.
    Every morning we run the following query on both primary and standby to confirm that the logs are being transported and applied to the standby:
    select sequence#,applied,to_char(first_time,'mm/dd/yy hh24:mi:ss') first from v$archived_log order by first_time;
    Once the logs are transported and applied, a response of 'Yes' is returned for each log generated. We have noticed within the last week that when we run the query on primary, 'No' is being returned, but on standby, 'Yes' is returned. I have confirmed that standby is reflecting the correct results. I've tried restarting the DG service (alter database recover managed standby....) in an attempt to have primary 'refresh' itself but that didn't work.
    Does anyone have any idea why primary keeps returning 'No' to the query, and how we can get it to reflect to correct results?
    Thanks,
    Lia.

    Hi Werner,
    Thanks for your response. Given what you're saying I find that a little strange since prior to this, the query would return a value of 'YES' on the primary. Actually, to be exact, on the primary, each log would should up twice. One would show 'NO' and the other 'YES'- the second indicating transporting and shipping was successful.
    This is how the results were before:
    SEQUENCE   APP   FIRST
    +154623 NO 04/07/09 08:03:22+
    +154623 YES 04/07/09 08:03:22+
    +154624 NO 04/07/09 08:05:27+
    +154624 YES 04/07/09 08:05:27+
    This is how the results are now:
    SEQUENCE   APP   FIRST
    +154754 NO 04/22/09 07:22:22+
    +154754 NO 04/22/09 07:22:22+
    +154755 NO 04/22/09 07:25:27+
    +154755 NO 04/22/09 07:25:27+
    I'm not doubting that what you're saying is correct, it just adds an element of confusion for me...
    Lia.

  • CKF not showing correct results in BEx Analyzer

    Dear Friends,
    I am getting different results when viewed from BEx Analyzer and Web Analyzer for the same query. BEx Analyzer shows incorrect results. The column that is showing different is a local formula (say Formula3) that is a result of dividing Formula1 by Formula2.
    BEx Web calculates Formula3 correctly while BEx analyzer does not.
    I am in BI 7.0 SP 10.
    Any Clues?
    Thanks
    Viren

    For this calculated column set aggregation level as sum.

  • Crystal report not showing correctly in firefox after windows update

    From the past six months, crystal reports has been displayed without the print toolbar and the formatting is completely lost in firefox. Previously we found that when we uninstall the windows updates KB2836942, KB2836943, KB2836946, KB2836947, the problem is resolved. But with more and more windows updates that are automatically updated on the servers, it is getting practically impossible to track which windows update creates the problem. There is absolutely no issue in Chrome, IE and Opera; it is only with firefox that this problem occurs; so we feel it is more of a firefox issue than a windows update problem. It is not just in one machine, but we found the same issue at all our customer's servers (more than 10). The servers are a mix of windows 2008, windows 2012 with iis 7. We also observed the same problem on windows 7 machines. We have been recommending firefox as the best browser for our software to all our customers, and with this problem cropping up, we are badly handicapped. Kindly let us know how to sort this issue. We have provided the link below for your perusal. When you open it in chrome it works fine, but on firefox it does not display correctly:
    http://54.209.141.3/Reports/Report.aspx?reportname=RptProductWiseSalesDetails.rpt&paramlist=@FromDat,01/01/2011;@ToDat,01/26/2014;@BranchSlno,1;@FranchiseSlno,1;@FirstCol,B;@DateType,B;@SaleChannel,A;@ProductTypeSlno,0;@ProductSlno,6;@ColorSlno,0;@FinancierSlno,0;@ChannelTypeSlno,0;@ChannelSlno,0;@SalesPersonSlno,0;@SaleStatus,L;@BillingType,A;@LoginUser,admin;@LoginBranch,Keerthi%20Triumph%20Bangalore;@Franchise,Triumph;@AddCustomerDetail,0;@SaleCodeSuffix,&loadfromsql=0

    Those four updates all relate to the .Net framework, and involve how an ASP.Net application recognizes different browsers.
    * http://support.microsoft.com/kb/2836942
    * http://support.microsoft.com/kb/2836943
    * http://support.microsoft.com/kb/2836946
    * http://support.microsoft.com/kb/2836947
    Each contains this Note:
    <blockquote>There is a configuration switch to be used to revert back to the old behavior: <br>
    <pre>&lt;appSettings>
    &lt;add key="aspnet:UseLegacyBrowserCaps" value="true" />
    &lt;/appSettings></pre>
    </blockquote>
    I think the downside of turning off the changes is that IE 11 will not be well supported.
    That's all I know so far...

  • Explain Plan not showing correct results.

    Hi Gurus,
    Please help me to understand below issue.
    Whenever I am doing explain plan on any of the sql statements it says as explained but when retriving the explain plan output it shows same results again and again.
    DB - 11gR2 Stand alone
    ASM - Configured.
    OS - RHEL 6.2.
    SQL> select count(*) from t2114;
    COUNT(*)
    639292
    SQL> explain plan for select count(*) from t2114;
    Explained.
    SQL> @?/rdbms/admin/utlxpls.sql
    PLAN_TABLE_OUTPUT
    Plan hash value: 1497650422
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 6634 | 524K| 2993 (19)| 00:00:01 |
    | 1 | SORT ORDER BY | | 6634 | 524K| 2993 (19)| 00:00:01 |
    | 2 | TABLE ACCESS BY INDEX ROWID| T2210 | 6634 | 524K| 2947 (17)| 00:00:01 |
    |* 3 | INDEX RANGE SCAN | T2210_T | 6842 | | 108 (22)| 00:00:01 |
    Predicate Information (identified by operation id):
    3 - access("T2210"."C490008000"=:SYS_B_0 AND "T2210"."C490009100"=:SYS_B_2
    AND "T2210"."C301363300"=TO_NUMBER(:SYS_B_1))
    16 rows selected.
    SQL> explain plan for
    2 SELECT T2114.C1 FROM T2114 WHERE ((T2114.C1000000001 = :"SYS_B_0") AND (T2114.C536871442 = :"SYS_B_1") AND (T2114.C536871477 = :"SYS_B_2") AND ((:"SYS_B_3" - T2114.C3) >= :"SYS_B_4") AND ((:"SYS_B_5" - T2114.C3) <= :"SYS_B_6") AND (T2114.C1000000217 LIKE :"SYS_B_7") AND (T2114.C536871478 < :"SYS_B_8")) ORDER BY C1000000161 DESC, :"SYS_B_9" ASC;
    Explained.
    SQL> SELECT * FROM TABLE(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1497650422
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 6634 | 524K| 2993 (19)| 00:00:01 |
    | 1 | SORT ORDER BY | | 6634 | 524K| 2993 (19)| 00:00:01 |
    | 2 | TABLE ACCESS BY INDEX ROWID| T2210 | 6634 | 524K| 2947 (17)| 00:00:01 |
    |* 3 | INDEX RANGE SCAN | T2210_T | 6842 | | 108 (22)| 00:00:01 |
    Predicate Information (identified by operation id):
    3 - access("T2210"."C490008000"=:SYS_B_0 AND "T2210"."C490009100"=:SYS_B_2
    AND "T2210"."C301363300"=TO_NUMBER(:SYS_B_1))
    16 rows selected.

    Hi Dom,
    Thanks for your immediate response.
    I am getting two values for PLAN_TABLE. Please let me know if we need to drop any of them??
    SQL> SELECT *
    FROM all_objects
    WHERE object_name = 'PLAN_TABLE'; 2 3
    OWNER OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS T G S NAMESPACE EDITION_NAME
    PUBLIC PLAN_TABLE 5127 SYNONYM 17-SEP-11 17-SEP-11 2011-09-17:09:47:47 VALID N N N 1
    ARADMIN PLAN_TABLE 219426 219426 TABLE 07-APR-13 07-APR-13 2013-04-07:23:01:12 VALID N N N 1

  • Links in Reports Not Showing Correct Data

    Good Afternoon!
    I've recently found that the links in some reports are not working as they should.  Below is an example from a report I just tried:
    Example
    I ran the report "Count of all instances of specific software registered with Add or Remove Programs" and selected a specific Collection I had created.  The report ran as it should and displayed a list of all software titles and versions for all of
    the collection's workstations combined.
    One application has 5 different versions installed amongst the collection and I need a list of them.  Each of the 5 versions was listed and each had a link.  When clicking on the link, though,
    it showed a list of "all systems" workstations which had the application / version - not just the number of or machines from the collection the report was run on.  Long story short, the report displayed about
    11 machines, but clicking on the link showed a list of about 40.
    I don't know if this is by design, but it's really difficult to work with.  I am having to make individual queries for the data which takes much longer.  Is there a resolution to this?
    Thank You!
    Ben K.

    Yes, I know this is an old post, I’m trying to clean them up, Did you figure this out, if so how?
    Yes this is be design however you can modify the "Computers with specific software registered in Add Remove Programs" report and have it filter on both the SW title and collection.
    http://www.enhansoft.com/

  • Siebel BIP report not show correct data when current view=my programs view

    Dear All,
    I have report that contain field approval,
    which is when i login as 'SASKIA' as example then i want to print report budget request,
    this report contain field approval like :
    Employee Login
    HOKIONO     
    BAMBANG
    PONGKY
    SASKIA
    but when i print the report it just show:
    Employee Login
    SASKIA
    and it happened only if i print report in 'MY Programs' view,
    the report show ok in 'All Programs' view.
    and when checked in siebel tools, IO Program Container(that used in report), the link already set to all.
    Please help me on this.
    Best regards
    Cecilia

    try adding a user property to your integration object:
    User Property Name: "ViewMode"
    User Property Value: "All"
    see if it has any effect - for me it solved some issues with data not being displayed!
    Benny

  • Search on Keyword not showing correct results

    I tagged all 5k of my images keywords. Basically people's names of who is in the image.
    I then ran a search by person's name, but a lot of the results do not contain the keyword I searched for.
    In the results I checked the metadata tab under Keywords: and my search term is not listed.
    Am I missing something?
    thanks

    Yes, I added the keywords using 'Batch Change....'
    The Keyword HUD shows all my keywords listed right there at the root. ie. My keywords are not under any other keywords. ie. iPhoto/Raw or Personal/Backyard
    Ta

  • SBS 2008 Security report not showing correct status after Feb patch cycle

    Hello,
    I wonder if anyone can shed any light on this strange problem which has occurred after February patch cycle. On the SBS detailed report that comes through, the security section is showing as RED error. Though
    if you look at the detail, each section is listed as green compliant. Not sure why this has happened? Has anyone else seen this before?
    Many thanks,

    Hi,
    Can you provide me the detailed information about the patch you installed before the issue occurred? Have you tried to uninstall the patch and reinstall it again to see if the same issue persists?
    In addition, please also try to repair the monitoring and reporting feature to see if it could resolve the issue.
    Repair monitoring and reporting features in Windows Small Business Server 2008
    http://technet.microsoft.com/en-us/library/dd560614(v=ws.10).aspx
    Hope this helps.
    Best Regards,
    Andy Qi
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Andy Qi
    TechNet Community Support

  • Clinet deployment success reports not showing any results

    Hi,
    We have successfully migrated from SCCM2007 to SCCM 2012 R2 and we currently have 1600 machines where the client has installed successfully and the Client status reflects this in the console.
    However, when I attempt to run the Client Deployment success report no clients are displayed in the report.
    The migration took place just over 2 weeks ago and during that time there have been 20 clients that have become inactive. Running this report returns the 20 machines that are inactive.
    Does anyone have any idea why there are no results returned?
    Regards Gunther

    Hi,
    You could check Wally's reply in the thread below.
    Quote:
    As long as you've told the client deployment to use the fallback status point (FSP=servername), then the client will generate state messages and send to the FSP as they are created. By default, a FSP batches those messages, and every hour sends them to the
    site server. Then the site server processes them into the database, where they are then available in reports.
    Reference: Client deployment success report inaccuracies
    https://social.technet.microsoft.com/Forums/en-US/89390386-e0ee-4f9e-b62b-0db22e8c3ebe/client-deployment-success-report-inaccuracies?forum=configmgrgeneral
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Report not showing expected result

    Hi Gurus,
    I am providing the screen shot of my flow. pls suggest how to debug.
    Regards
    Kharabela

    You need to check the chart properties and see which dataset field is used for plotting the values and based on what series. Based on that check the values of the fields returned by dataset and see why its not getting your expected value. Also see if chart
    has some additional filters being applied in which case you need to check your query also using the same filters to make them equivalent and then compare the values.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Set in Excel using ORDER MDX statement not showing correct results on PowerPivot model

    I have defined a set in Excel 2013 with this syntax: 
    order(Topcount([Company].[Company].[Company].members,
    10,
    [Measures].[Sum of TotalValue]),[Measures].[Sum of TotalValue]
    ,DESC)
    The order statements is not properly Applied. Order by name is still active. Would appreciate your help, if have I done something wrong or is this a bug?

    Ok in the meantime I have solved this myself. In the field settings is an option for "Automatically order and remove duplicates..." which is turned on by default and overrules specific order statements in the set. I am not quite sure why but as long as
    you know about it, this can be addressed by turning off.

Maybe you are looking for

  • Submitting a pdf form to a SharePoint 2010 library

    Hello, I have a pdf form that was created in Adobe LiveCycle. Right now the submit form button it configured to send the form to an email address. I need to be able to submit the form to a SharePoint 2010 document library but I can't get it to work.

  • Cs3 framescript problem vista

    hi, i've got cs3 design premium running on 32 bit vista and i'm having a number of issues with flash and particularly actionscript framescripts. when i create the script on the first frame of the timeline and try to type, the line-number column becom

  • Problems with non-existent waveform cache...

    I previously posted this: +I cannot open Final Cut. I have an error saying 'The Waveform Cache Files Folder does not have read/write access. Please select a new folder in the System Settings Dialog or correct the problem on disk'. Final Cut then proc

  • Unable to use CS6 that i bought. Do not have the individual Photoshop required?

      I am unable to use Photoshop CS6 that i bought. It is asking me for serial numbers of CS3. CS4, etc. Is there a way that it will allow me to enter the serial numbersof the Creative Suite? I only have the Creative suites CS5 and CS4 therefore, I can

  • White border in cell when adding background colour.

    In Numbers for Mac. When I add a background color there is a white border inside the cell. How do I have the entire cell filled with the colour? I go through, the 'format'menu, 'text','layout', 'border' and 'background colour'.