SSRS report not displaying data in correct order

Guys,
I have a SSRS 2012 report not displaying returned records from SQL in the correct order.  Running the stored procedure in SSMS and supplying the parameter values returns the data correctly and running Query Designer in SSRS using the stored procedure
on the dataset in question, likewise returns the data correctly.  Only when I run the actual report does the data display incorrectly(always last name order).  I've done similar reporting using very similar stored procedures and I've never had this
problem.  Below is the stored procedure.  "@SortBy" is the parameter with the sorting value. 1=Due Date; 2=Denial Amt and 3=Last name and is passed by SSRS to SQL.  Wish I could supply screen shots.  
Thanks for any help,
Dave
ALTER PROCEDURE [dbo].[RAC_PT_List]
@Level as int,
@SortBy as int,
@PTLName as varchar(30) = NULL,
@User as varchar(10) = NULL
AS
SELECT pat.headerID,
pat.PT_LName + ', ' + pat.PT_FName AS PTName,
pat.PT_AcctNo,
rco.RCO_CLMREF,
rco.RCO_AppealLevel,
rco.RCO_LevelNo,
rco.RCO_AuditorStatus,
let.LET_DEN_DueDate,
CONVERT(varchar(12),let.LET_DEN_DueDate) as DueDate,
let.LET_DEN_Dollars,
let.userID
FROM Master_PT_List pat
INNER JOIN Master_RCO_Work rco on RCO.PT_headerID = pat.headerID
INNER JOIN Master_Letters let on LET.PT_headerID = pat.headerID
WHERE (@PTLName IS NULL OR(pat.PT_LName LIKE + '%' + @PTLName + '%'))
AND (rco.RCO_LevelNo = @Level)
AND (let.userID = @User)
--AND (rco.RCO_AuditorStatus <> 'Closed' and rco.RCO_AdminStatus <> 'Closed')
ORDER BY 
CASE WHEN @SortBy = '1' THEN LET_DEN_DueDate
END
DESC,
CASE WHEN @SortBy = '2' THEN let.LET_DEN_Dollars
END
DESC,
CASE WHEN @SortBy = '3' THEN pat.PT_LName
END

Hi DaveMac1960,
According to your description, when you render data in report, you find it always shows the data with unexpected order. Right?
In Reporting Services, if we don't set any sorting in tablix, it will order the data as your query in SSMS or Query Builder. In some scenario, for example, we add parent group for data rows, it will have the rows sort by the group on data field by default,
and the "order by" in your query will be ignored. So please check the Sorting tab in Tablix Properties, in this scenario, we suggest you delete any sorting in the Sorting tab so that the "Order By" clause can work.
Reference:
Sort Data in a Data Region (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou

Similar Messages

  • Report not displaying data from one of the infoproviders

    Hi Experts,
    Issue: Report not displaying data from one of the infoproviders
    I have a report 'ReportA' which has multiprovider MP1 as the source.
    MP1 has two Infocubes IC1, IC2 in its design.
    Now, when i execute the report, data from IC1 is displayed. But no data from IC2 is displayed.
    Is there a setting i need to enable in MP1 ? or is there anything else that needs to be enabled ?
    Please reply.
    Regards,
    Suraj S Nair

    Hi All,
    When i display data directly from the multi provider, without any restrictions, i cannot view the data from infocube IC2.
    I feel its not an issue with the Query. It must be a problem with the setting in the Multiprovider MP1.
    Infocube IC2 is a copy of Infocube IC1. Multiprovider MP1 first only had IC1 in its design. It was recently IC2 was also included.
    I checked the Characteristics, all of them are assigned corectly.
    Now, this issue sure has something to do wiht the setting of Multiprovider or please correct me if wrong.
    Regards,
    Suraj S Nair

  • BPM reporting not displaying data for newly added field

    Hello All,
    I have a BPM process up and running fine. I have added reporting for monitoring no. of context field. I have also created a VC model for displaying the BPM report data. However, VC application is displaying only the context field that I had selected initially during the New Reporting Datasource creation. It'd not display the reporting data for the field that I added later.
    Please help

    Hi Apoorva ,
    Have you checked in the process repository whether your new process is activated or not?
    Thanks & Regards,
    Rohit

  • SharePoint 2010 Web Analytics Reports Not Displaying Data

    Hi,
    I'm currently having some issue with the Web Analytics Reports. It had been working fine for the past 1 year and suddenly a few months back, the Web Analytics is not showing any data. Have already troubleshoot the issue using the
    Troubleshooting SharePoint 2010 Web Analytics Article and all values show the correct date and time. 
    Therefore, I have performed a more in-depth analysis and found out that the WAHierarchyData table in the Reporting Database only have Root ID
    I have verified with a working SharePoint environment and the table should contain all the SharePoint site ID. Also, I have looked into all the SharePoint and Windows logs and all found to be showing the services to be running normally. I would like to check
    if there is a way to restore the data in this table or is there any other ways I can trace and troubleshoot this issue.
    Background information
    SharePoint Version: Service Pack 2
    SQL Server: Cluster Environment
    3vild3vil

    Hi,
    I queried the WAHierarchyData table in my environment, and there should be id column in returning result.
    You could manually run timer job related to Web Analytics service application and check ULS log for error message.
    To narrow down the root cause, we need query SharePoint database tables and compare query result, which might exceed the supported scenario. I'd recommend you open a ticket with MS support, they could reach your envrionment and troubleshoot the issue for
    you. For your convenience:
    https://support.microsoft.com/contactus
    Thanks for the support.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Report not displaying data in Viewer

    Hi All,
    I have a problem, wherein when I run a report on Discoverer Desktop or Plus the report runs fine (with data displayed) but when the same report is run from Discoverer Viewer the report does not fetch any data. It does not even give the error of 'No rows returned'.
    If there are any settings or any other change that needs to be done, please help.
    This is again something very urgent i am looking for. An immediete help will be really appreciated.
    Regards,
    Shruti

    Hi,
    what is the version of Discoverer you are using?
    Also, Is this workbook created in previous versions and upgraded to the existing version?
    log entries in application.log would help in debugging. If you are facing any difficulty to look at the log entires being huge,
    Make sure that you clear or take a backup of the existing application.log, restart the middletier. This will create a fresh application.log file.
    Now, immediately reproduce your issue.This will record the exact log for the event which Viewer is failing to render the report.
    Hope this helps!
    Cheers,
    Prasad Bolla.

  • Reports not displaying data in Portal.

    I am currently working on BI 7.0 and xRPM 4.0.
    http://help.sap.com/saphelp_nw70/helpdata/en/5e/800ebe94d6ea4dbccb269e3f0dada7/frameset.htm
    I have implemented the Scenarios of Capacity Management described in BI Content. I have loaded the cubes and can execute the queries in RRMX. But when i try running the reports on portal it displays a message saying :
    No Applicable data found
    As descibed in data flow i have already activated the templates. I can see all other reports based on other cubes in the portal but not for the Capacity management scenario.
    Respective queries :
    Availability vs Allocation (0RPM_C02_Q0204)
    Demand vs Allocation (0RPM_C02_Q0202)
    Templates are :
    Availability vs Allocation (0TPLI_0RPM_C02_Q0204)
    Demand vs Allocation (0TPLI_0RPM_C06_Q0001)
    Please Help.

    Hi Amit,
       I am trying to make this reports work Under CAPACITY MANAGEMENT - Availiablity Vs. Allocation , but it's not working for us. I have activated the templates in BW, .We used our central BW systems to turn on the PPM cubes. Should i make any configuration to make this report work?
       Could you please help us ?
    Thanks,
    Suba

  • Role analysis report not displaying data

    Hi experts,
    I'm trying to get data out of all reports from the dashboard and so far all of them work except for the Role Analysis report. When I execute the report all information comes blank and under "Number of Roles Analyzed" shows 0. Is there any way to farther test this report? I see a lot of information on the community but mainly the solutions are "execute job sycn" and check parameter 1025 for default ruleset. Is there any other thing I can do to get results here?
    Note: I also try generating all roles, running an all system risk analysis and just fyi SOD is working for User and Role level.

    Screen is attach, as far as steps go well after running Authorization Synch, Repository Synch and Action Usage Synch from SPRO I went to NWBC ->Reports & Analytics and under Access Dashboards I click on "Role Analysis" and I get the attach screen.  All the other reports under Access Dashboards works (except for "Alerts") but Im guessing thats because I dont have any alerts or something like that.  Any help is always appreciated

  • Fotos not showing in the correct order

    Hi
    Since i updated Apple TV's Firmware to version 5.1 (the latest version), fotos from iPhoto are not displayed in
    the correct order anymore. Usually the date when the picture was taken is the order in which fotos are displayed.
    Any idea? I couldn't find any settings.
    On iPhoto on my Mac, no problem.
    Thanks for helping me
    Thomas

    Problem solved, it was definetely iPhoto. The latest update a few days ago solved it. Pictures in events are now shown in the same order as in iPhoto again. In my case, the date when the picture was taken.

  • Report does not display data

    I have a crystal XI report that when run will not display data; if the report should be six pages that is the number of pages that will be generated.  The problem is that the pages show up as blank.  If the blank pages are exported the exported file will contain data, if the report is sent to a printer the report will contain data, but no data is ever displayed on the screen.  This report has been loaded on 15 other computer and runs perfectly. Any help would be greatly appreciated.  By the way if this user logs in remotely and runs this report it will display data.

    A few ideas;
    1) Make sure you are working with [SP 6|https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe].
    You are on SP 2...
    [SP6 msm|https://smpdl.sap-ag.de/~sapidp/012002523100000634032010E/crxir2sp6_rdc_mm.zip]
    2) Try different resolutions
    3) Try to see if there is an updated video driver
    4) Make sure there is a default printer driver installed.
    5) Run [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] see if there are any differences in dlls loading on a box that works and the one that does not (CR and non CR dlls).
    Ludek
    Edited by: Ludek Uher on Feb 22, 2010 10:32 AM

  • Report not display in report viewer

    i try to show ssrsc reports in asp.net web page using report viewer
    code
    protected void Button1_Click(object sender, EventArgs e)
    ReportViewer2.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
    ReportViewer2.ServerReport.ReportServerUrl = new Uri("http://lenovo-pc/ReportServer");
    ReportViewer2.ServerReport.ReportPath = "/Report Project1/Report1";
    ReportViewer2.ServerReport.Refresh();
    where is the probelm... and why report not display?

    Hello,
    In SSRS, the issue is occurred when the credential of the datasource is configured with “Prompt for credentials”. Please check if you configured the credential with "Stored Credential" of the datasource. You can refer to the following steps:
    Click the black arrow of the report, select Security option.
    Click Data Sources in the left pane.
    1) If it is a "A custom data source”, please check the item "Credentials stored securely in the report server", and type the valid username and password. If the user is a Windows Account, you need to check item "Use as Windows credentials when connecting
    to the data source".
    2) If it is a "A shared data source", please remember the path, and then open the data source from the Report Manager.  Make sure the credential type is "Credentials stored securely in the report server".
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Crystal Report not displaying in production server

    I am using crystal report with ASP.Net web application which is working fine on client machine, client machine configuration is: •Windows 7 64bit •Visual studio 2012 •.Net framework 4.5 •SAP Crystal Reports, version 13.0.2000.0 I need to deploy it on Windows Server 2008 machine; however, when I deploy web application on this machine Crystal Report opens when do not display data. Kindly help to get around with this issue.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Thank you in advance

    Please see if the resources that come up using the search string 'crystal blank empty net' will help. Search box is in the top right corner.
    Also see:
    http://scn.sap.com/thread/3531678
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Error in Acrobat 8: An error exists on this page. Acrobat may not display the page correctly...?

    Hi,
    We perform the e-signing on any PDF using our custom e-signature plug-in. Once that's done, when we try re-opening the PDF in Acrobat version 8.0.0.0, we get the following error:-
    "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem"
    Please note that this error occurs intermittently and is NOT observed in Acrobat 7 or 9.  Also, when a plain PDF is opened (i.e. a PDF without any signature on it) then there is NO error.
    Could you let me know what could be the issue here? I read it in Acrobat 8.1.3 release notes that such an error was a known bug in version 8.0.0.0 (http://kb2.adobe.com/cps/407/kb407016.html), but I am not sure of its cause.
    Let me know your comments/suggestions.
    Thanks!

    I am getting the same error even in Acrobat version 8.1.3.
    Additionally, I noticed that if we click on menu ‘Advanced->Sign&Certify->Preview Document’, then we get a notification as “This document is not PDF/SigQ compliant and may display inconsistently”. On clicking  ‘View report’ on that notification, the below dialog pops up. It has errors listed as:-
    Code 4000 : Unrecognized PDF content. The document contains PDF content or custom content not supported by the current version of Acrobat.
    Code 4002: PDF content contains erros.
    However, if we sign the PDF using default adobe signature functionality and reopen that PDF, the error does NOT come and the notification also says ‘This document is PDF/SigQ compliant’.
    Can anybody please suggest what could be missing in the custom sign that we apply? Is it because of any of the missing fonts or any other resources?
    Awaiting reply!
    Regards.

  • XML  has data but PDF is not  displaying data

    Hi Gurus,
    I have one report  with excel and pdf out put .
    excel is working fine but pdf is not displaying data showing blank page  . both out puts are using same XML.
    Intresting thing is if I open  RTF  from  bi publisher desktop and load XML data then i can see  all the records.
    but  The same  RTF is not showing data from Report.
    I don't know what is the wrong with RTF. 
    I am attaching RTF and XML.  could you please go through it and help me ?
    Thanks for your help.

    Hi Bogdan,
    i  have 2 outputs for this report  excel and PDF.
    after scheduling report  excel is working fine but PDF out put is failure. i am getting following message.
    Job Name : Payment Request
    Job Executed Date : March 19, 2015 9:15:11 AM CDT
    Status : Job was failed.
    View History :
    Detail Message:
    ::RIPPLE_OUTPUT_FAILED::[INSTANCE_ID=vausobias201.austin.ppdi.com.1394740179760] [OUTPUT_ID=1006] ::DOCUMENT_GENERATION_FAILED::[INSTANCE_ID=vausobias201.austin.ppdi.com.1394740179760] [OUTPUT_ID=1006][ReportProcessor]Error rendering documentoracle.xdo.servlet.scheduler.ProcessingException: [ReportProcessor]Error rendering document
            at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.renderReport(BurstingReportProcessor.java:447)
            at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.onMessage(BurstingReportProcessor.java:127)
            at oracle.xdo.enterpriseScheduler.u

  • An error exists on this page. acrobat may not display the page correctly.

    While opening a pdf document it shows an error as "An error exists on this page. acrobat may not display the page correctly. Please contact the person who has created this pdf to correct the problem". The pdf was made in 1.4 Adobe 5.x version. Any suggestions.

    I suggest you contact the person who has created the PDF in order to fix the problem.

  • Item values not listing in the correct order.

    Hi,
    When I click on header record synckey link, the corresponding item records are not listing in the correct order, in the MI Client. Can anybody suggest a solution for this.
    Regards,
    Shemim

    Hi Divya,
    I am attaching sample data obtained at Back End & MI Client.
    Value in Back End
    PHYSINVENT FISC ITE MATERIAL           PLAN STGE
    1000015    1998 001 T-RF100            1100 0001
    1000015    1998 002 T-RF200            1100 0001
    1000015    1998 003 T-RF200            1100 0001
    1000015    1998 004 T-RF200            1100 0001
    1000015    1998 005 T-RF300            1100 0001
    Value in MI CLient
    SYNC_KEY PHYSINVENTORY FISCALYEAR ITEM MATERIAL PLANT STGLOC
    0001001234  0001000015  1998  005  T-RF300  1100  0001   
    0001001233  0001000015  1998  004  T-RF200  1100  0001   
    0001001232  0001000015  1998  003  T-RF200  1100  0001   
    0001001231  0001000015  1998  002  T-RF200  1100  0001   
    0001001230  0001000015  1998  001  T-RF100  1100  0001   
    Regards
    Shemim

Maybe you are looking for

  • I can't see all of my photo's in my iPhoto library

    I was advised by a Mac design studio guy to 'rebuild' my iPhoto library. He told me to hold down the apple and alt keys and click on iPhoto. I did this and it said I was 'rebuilding' my library but when it was finished I couldn't see all of my photos

  • Apple TV rebooting - HDMI switch

    Hi gang, Weird problem. My Apple TV is hooked to an HDMI switch. If I am watching Apple TV, then change over to a different input (say, to watch a DVD), and then try to go back to the Apple TV, I get nothing on my screen. I have to manually switch to

  • Generate a new (random) mine field?? for minesweeper

    I have to create a minesweeper game for my java class. but im having trouble creating the method to generate a random mine field?!?! (i dont even know where to start) public static boolean [][] generateMineField ( int length, int width, int numberMin

  • Pre purchase compatibility query

    Hi - I'm a newbie to this forum as I am thinking about joining the throng leaving the Windows based community to avoid "vista" and moving to iMac Intel. Trouble is I am old enough to remember using DOS [acually machine coding a Zenith before that] an

  • Skype TMG 2010 problem

    Dear Sir I have a problem configuring my TMG 2010 proxy allowing skype to go through while HTTPS inspection is on. I execlude *.skype.com, *.skype.net from the inspection process, but still i couldn't connect, morover when I disable HTTPS inspection