SSRS Report on Audit History in MS CRM 2011

Hi,
I need to create a report on audit history, i am able to get the old value from changeddata in audit table.
How can i get the new value?
Thanks,
Arjun
arjun

Hi,
The change data only stores the old value - you need to look at the next audit record or the current record to get the new value.
See - http://a33ik.blogspot.co.uk/2011/11/crm-2011-reports-on-data-auditing.html
Hope this helps,
Scott
Scott Durow
Blog www.develop1.net   
Follow Me
Rockstar365
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

Similar Messages

  • Can we generate a report on Audit History? (CRM 2011)

    Hi,
    I can see the Audit view in the database but every record is holding only Old value . No idear from where crm is pulling up the new value?
    Can any one please let me know the solution?
    Thanks.

    check following links for the same..
    http://a33ik.blogspot.co.uk/2011/11/crm-2011-reports-on-data-auditing.html
    http://marcuscrast.wordpress.com/2012/01/14/dynamics-crm-2011-audit-report-in-ssrs/
    http://kelvinshen.blogspot.co.uk/2012/02/crm-2011-auditing-report.html
    MayankP
    My Blog
    Follow Me on Twitter

  • How to design SSRS report using SharePoint 2010 List Version History

    Hello,
    I am using  Sharepoint 2010 list, i need to design SSRS report using Sharepoint List Version History. Could please let me know how to design.
    Thank you.
    Kind Regards

    You could do that with SQL Server Reporting Services, Please follow the instructions from the link below:
    http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/
    Hope that would work fro you.
    Please Mark as Answer, if the post works for you.
    Cheers,
    Amar Deep Singh

  • SSRS Report running out of MS CRM

    I have a large multi-page SSRS report that takes about 30 minutes to run. The report is run from CRM.
    The problem is that because of the time it takes to run the report users have a tendency to go away and do other things, and when they come back to it later and go to the second page it has expired. It's fine if they go through the pages straight after the
    report is complete.
    Are there any settings that could control and increase how long the pages are available before they expire? Is this something to do with the IIS app pool timeouts?
    SQL SSRS 2008, CRM 4.0, Server 2008. Separate Reporting and CRM SQL server.

    To me it sounds like a session time-out issue.  Due to how long your report is taking to run your report isn't being kept alive long enough in cache (the temporary DB).  Here is a great article that explains it...
    http://blogs.msdn.com/b/jgalla/archive/2006/10/11/session-timeout-during-execution.aspx
    If you have to adjust the session timeout and can't get the report to run any faster by tuning your query, with 2008 you might be able to adjust the session timeout more easily by connecting to the Reporting Services instance in SSMS, Right-clicking the
    website URL and selecting ‘Properties’, then in the “Server Properties” window  select ‘Advanced’ from the list on the left and adjust the setting there.

  • Date parameter interchanges while running SSRS reports in CRM 2013 online

    Hi,
    We have a 2 date parameters in a SSRS Report, While running this report a user is getting issue with this date parameter, date changes to month and month changes to date in the first parameter(in screen shot it is 01-dec entered but displays 12-jan) and
    second seems to work fine but here time is also shown.
    As a note: I am not getting the error when I run it.
    Any one has got the same issue, Any suggestion/solution?
    Regards,
    Rekha.J

    If this is happening to only one or a few users then I suspect some issue with the user's machine configuration.  Have the user log in and try it from your machine and see if he or she gets the same experience.  Ensure you have completely cleared
    the user's cache and also try with a different browser like Chrome.
    Regards, Donna

  • SSRS report taking time to load the data

    Hello Everyone,
    I have create SSRS report get data using web service. When i run the web service methods its gives me result instantly, But when i run the report it takes lot time to load data in SSRS report. some times in SharePoint page it shows time out error.
    Could you please tell me why SSRS report lots of time to load data.
    Thank You. 

    Have a look at ExecutionLog tables in report server database to get an idea of which step is taking more time.
    http://blogs.msdn.com/b/crm/archive/2008/11/19/auditing-report-execution-using-the-reportserver-database.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SSRS Report Data Caching Problem in Internet Explorer

    HI All,
    We have setup reporting server in native mode and have deployed SSRS reports on reporting server and mapped it to sharepoint page with report viewer web part.
    The changes on the data is not getting reflected on the report unless I close the browser completely and reopen the URL but at the same time for other rdl reportr, data is getting changed on same brower. so it doesn't seems to be the browser issue (not sure).
    Also the both reports are almost same.
    Any Idea Guys...whats happening with the report or how I can make it work to refresh data properly. I already have tried "Auto Refresh" option in rdl and it refreshes the browser but data doesn't gets refreshed. Also I had deleted cookies, clear the cache
    but it also did not work for me.
    Any help in this regard would be highly appreciated.
    Thanks,
    Nipendra Garg

    Hi Nipendra Garg,
    This might be caused by the refresh behavior of Internet Explorer. When visit a webpage with the same URL, IE may use an old version of this page which stored in browsing history.
    If you're calling the report from a URL, add &rs:ClearSession=True. This will cause the browser to refresh the report every time it's called.
    If you have any question, please feel free to ask.
    Thanks,
    Eileen

  • User Was Not Found when trying to run SSRS report!

    I'm trying to run SSRS report (Custom Reports) for Dynamics CRM 2011. However, when I try to run the report from the Reporting Manager it errors out "User Was Not Found"!
    Here's the complete error log:'
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'DSMain'. (rsErrorExecutingCommand)
    Microsoft.Crm.CrmException: An unexpected error occurred. System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]:
    User Was Not Found <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts"> <ErrorCode>-2147220969</ErrorCode> <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType> <d2p1:key>CallStack</d2p1:key> <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string"> at Microsoft.Crm.ServerLocatorService.GetCrmUserId(Guid organizationId,
    String authenticationInfo) at Microsoft.Crm.Sandbox.SandboxHostSids.IsCallerAllowed(SandboxSdkContext requestContext, String&amp; expectedSidSddlForm, String&amp; callerSidSddlForm) at Microsoft.Crm.Sandbox.SandboxSdkListener.AuthenticateCaller(SandboxCallInfo
    callInfo, SandboxSdkContext requestContext, String operation) at Microsoft.Crm.Sandbox.SandboxSdkListener.Execute(SandboxCallInfo callInfo, SandboxSdkContext requestContext, String operation, Byte[] serializedRequest)</d2p1:value> </KeyValuePairOfstringanyType>
    </ErrorDetails> <Message>User Was Not Found</Message> <Timestamp>2014-05-09T21:37:02.5487525Z</Timestamp> <InnerFault i:nil="true" /> <TraceText i:nil="true" /> </OrganizationServiceFault>
    An unexpected error occurred.
    User Was Not Found

    Hello,
    Can you preview the report in Report Builder or Report Designer?
    Based on the error message, the issue may related to a invalid user account for the report data source credentials.Please verify the user account is valid and has sufficient permission to access CRM data source.
    You can refer to the following blog to troubleshooting CRM custom report rsProcessingAborted error:
    http://blog.simpletrees.com/2013/04/mscrm-and-dreaded-rsprocessingaborted.html
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • CRM 2011+An error has occurred during report processing. (rsProcessingAborted)

    Hi,
     i have installed CRM 2011 on-premise version in Server A. Database and CRM 2011 Reporting Extenison in Server B. Both the server are 64 bit server and IIS 7.0 . i can able to browse the Report server url. USer as been added in Sql DB Logins and
    as permission to Reportserver and ReportservertempDB.
    i can able to access the CRM Reports only using Admin Credenttials that is from the credential which Report server is installed and configured
    Error in server 1: 
    Web service request SetDataSourceCredentials to Report Server
    (http://servername/Reportserver_XXXSQLSRVR)failed with SoapException. Error: An error has occurred during report processing. (rsProcessingAborted).
    Error in Server 2: took this error From error log file
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: Data source 'CRM': An error has occurred. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
    Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: An exception has occurred in data source 'CRM'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
    Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: i INFO: DataPrefetch abort handler called for Report with ID=. Aborting data sources ...
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing., ;
     Info: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'.
    ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
    Eventvwr error in server 2:
    Failed to unload app domain DefaultDomain. The following exception occurred: Error while unloading appdomain. (Exception from HRESULT: 0x80131015).
    I tried the Following ways to fix it
    1.added User as content manager
    2.In CRM apppool i have Admin in identity column
    its really paining when i'm unable to access the CRM 2011 Default Reports. got stucked for a day.
    Thanks, Saraswathy Kumaravelu

    Hi All,
    I encountered this same issue today after installing CRM 2011.
    CRM 2011 on Server A
    SQL and SSRS 2008 R2 on Server B
    I found that I got the same errors described here when running the standard reports even after I had installed the Reporting Extension (CRM 2011 replacement for CRM 4.0 Data Connector). The reason I got the error was because the 'Data Source Type' had not
    been updated in Report Manager.
    Here's how I resolved:
    1. Browse to Report Manager (http://SERVERB/Reports)
    2. Open the Organisation_MSCRM folder
    3. Click Show Details
    4. Open the MSCRM_DataSource
    5. Change the Data Source Type from Microsoft SQL Server
    to Microsoft Dynamics CRM SQL
    *Note: - This option is only available once Reporting Extension has been installed on SSRS Server.
    6. Clear the contents of the Connection String box
    7. Set the Connect Using: option to Credentials Supplied by user running the report
    but do NOT check the
    Use as Windows Credentials when connecting to the DataSource option.
    8. Click Apply
    9. Restart the SQL Reporting Services Service in
    Reporting Services Configuration Manager
    10. Test by running one of the Standard CRM Reports (e.g. User Summary)
    Ta Da!! - Success!!
    Hope this helps!

  • How to find an SSRS report subscription was executed 3 days back and sent an Email to the requested person or group?

    Hi All,
    I got complain that one of my reports which was subscribed from SSRS Report Manager could not delivered to targeted people 3 days back. 
    I want to to check that Email was sent or not So I wrote below query but I think table  will be over written on each execution of subscription and cannot see the history. I can see only the latest data.
    SELECT A.NAME,B.Description,B.LastStatus,B.LastRunTime 
    FROM [dbo].[Catalog] A
    INNER JOIN [dbo].[Subscriptions] B ON A.ItemID=B.Report_OID
    WHERE TYPE=2 
    AND NAME='REPORT_NAME'
    AND B.LastStatus LIKE '%EMAIL ID%'
    AND B.LastRunTime>Getdate()-1
    ORDER BY B.LastRunTime
    There is another query which says that report was rendered by SUBSCRIPTION and have no track that Email was sent or not.
    --Query to find out how a report was execute 
    SELECT * FROM EXECUTIONLOG3 
    WHERE REQUESTTYPE='SUBSCRIPTION'
    AND ITEMPATH LIKE '%REPORT NAME'
    ORDER BY TIMESTART DESC
    There is any way to track this?
    https://msdn.microsoft.com/en-us/library/ms159110.aspx
    http://blogs.msdn.com/b/deanka/archive/2009/01/13/diagnosing-and-troubleshooting-subscriptions.aspx
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi S Kumar Dubey,
    According to your description, you want to find the failed subscription report and resent the report to users again.
    In this scenario, you can run the query below to find the failed subscription.
    use ReportServer
    go
    SELECT C.Name, S.LastRunTime, S.LastStatus, S.Description
    FROM Subscriptions AS S
    LEFT OUTER JOIN [Catalog] AS C
    ON C.ItemID = S.Report_OID
    WHERE LEFT (S.LastStatus, 12) != 'Mail sent to'
    AND LEFT (S.LastStatus, 12) != 'New Subscrip'
    Then you can execute the code with jobstep command below to find the corresponding SQL Agent Jobs for failed subscription, then execute the job to send the email again.
    select 'exec sp_start_job @job_name = ''' + cast(j.name as varchar(40)) + ''''
    from msdb.dbo.sysjobs j
    join msdb.dbo.sysjobsteps js on js.job_id = j.job_id
    join [ReportServer].[dbo].[Subscriptions] s on js.command like '%' + cast(s.subscriptionid as varchar(40)) + '%'
    where s.LastStatus like 'Failure sending mail%';
    Reference:
    SSRS Failed Subscription Notifications
    Re-running SSRS subscription jobs that have failed
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • SSRS Report Report Blank Yet Generates Perfect PDF

    I have a rather complicated SSRS report (basically a dashboard with multiple charts and tables) that I'm having some issues with. It generates fine in BIDS, but out on the report server is where things get weird.
    On the report server it generates without throwing an error, but doesn't display anything, I just get a blank white screen. Yet I can export the report to a PDF, and in the PDF everything looks perfect (despite not having actually displayed
    anything in the report manager after the report successfully runs!).
    If I upload the report into our CRM 2013 app and run it, I get the generic "rsProcessingAborted" when it first runs, then if I hit "Try Again" on the error screen I get the "Invalid Argument"
    error.
    I set the timeouts on the queries in the .rdl to an insane 20 minutes just to rule out a timing out issue.
    Anyone ever seen something like this before, a blank SSRS report that doesn't throw an error yet still generates a correct PDF?

    This appears to be a Chrome browser issue and unfortunately that's the browser my company insists on using. Just ran the report via IE and it worked perfectly. Chrome just cannot render the HTML correctly on very complicated reports it seems, as all my basic
    reports worked fine in Chrome. Found this thread on potential fixes in the .js files on the report server. Not sure how that is going to play with the reports in CRM:
    http://stackoverflow.com/questions/5968082/ssrs-2008-r2-ssrs-2012-reports-are-blank-in-safari-and-chrome

  • Create SSRS report using Schedule Perfomance Index(SPI) from mpp file

    Hi,
    We have project server data available in sql server. We need to create SSRS report to show schedule performance Index(SPI) of each week of all the projects. So we have the TaskSPI data available in MSP_EPMTask_Userview table. But the corresponding project
    status date is represented once for each projects. Is the weekly status dates keeping anywhere in the database? How can achieve this functionality?
    Regards,
    Julie

    Hi Julie,
    SPI is calculated at task level and is also a timephased indicator (since BCWP and BCWS are also timephased). There are calculated based on the status date (project tab in the ribbon) which is at project level. The project status date is not kept in
    time, this is a unique value thus you do not have a weekly status date.
    Do you mean you want to keep an history of each value of the status date? Does it really make sense?
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • SSRS report security by expiring its session

    Hello all,
    We are using SSRS 2008 r2 for Reporting as its financial services company so, too much scope for reporting .
    Here, i am facing some problems let to security when users opens report and forget to close anymore report still stay opens for a hours i get suggest that to expired session for report after 10 minutes . How to achieve this please help.
    also ,  instead of login to application users are opening report from browser history .
    Dilip Patil..

    Hi Dilip,
    According to your description, you have reports which can be accessed by a lot users. Now you want to expire the session 10 minutes after the user has no operation on the page. Right?
    In this scenario, we can embed javascript code in the report page. Keep the page monitoring the event on page. If there's no mouse click/move, key press event for 10 minute, it will redirect/close the page. Please go to the Report.aspx file, it locates at
    C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportManager\Pages. Embed the code below:
    <script type="text/javascript">
    var load_time = null;
    var down_time = null;
    function window.onload(){
    flag = false;
    load_time = setTimeout(function(){
    location.href("http://server name/Reports/Pages/Folder.aspx");
    },600000);
    function clear(){
    clearInterval(load_time);
    if(null != down_time){
    clearInterval(down_time);
    down_time = setTimeout(function(){
    location.href("http://server name/Reports/Pages/Folder.aspx");
    },600000);
    function document.onmousemove(){
    clear();
    function document.onmousedown(){
    clear();
    function document.onkeypress(){
    clear();
    </script>
    Then the report will redirect to the Report Manager page if it's timeout.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SSRS Reports in iFrames Across Domains

    I'm trying to set up an iFrame to load an SSRS report that is in a SharePoint 2013 library.
    The report's URL looks something like this:
    https://sp.example.com...
    I tried to load the report in an iFrame in a site with a URL like this:
    http://sp.example.com...
    I get this error message:
    It gives me the option to "Open this content in a new window", which opens a new tab and displays my report perfectly.
    When I change "http" to "https", the report loads just fine:
    I am led to believe that this is due to my X-FRAME-OPTIONS being set to the value of SAME-ORIGIN.
    I went into the IIS Server and tried to add this line:
    <httpProtocol>
    <customHeaders>
    <add name="X-Frame-Options" value="ALLOW-FROM http://sp.example.com" />
    </customHeaders>
    </httpProtocol>
    This should allow the iFrame to access the report viewer page even though it is not from "http://sp.example.com"
    Further down the road, I want to use this to put a SharePoint report in an iFrame in a CRM Form.
    So it is very important that this cross domain access is possible in an iFrame.
    Thanks,
    Ryan

    Eliminate the javascript function and this to your page :
    <!doctype html>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    or 
    <!doctype html>
    <meta http-equiv="X-UA-Compatible" content="IE=11">
    or 
    <!doctype html>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11">

  • SSRS Report Returning Double Quote string from a Single Quote String

    Hi, I'm getting weird thing in resultset from SSRS report when executed. When I pass parameter to a report, which passes String that has single quote value to a split function , it returns rows with double quote. 
    For example  following string:
    'N gage, Wash 'n Curl,Murray's, Don't-B-Bald
    Returns: 
    ''N gage, Wash ''n Curl,Murray''s, Don''t-B-Bald
    through SSRS report.
    Here is the split function Im using in a report.
    CREATE Function [dbo].[fnSplit] (
    @List varchar(8000), 
    @Delimiter char(1)
    Returns @Temp1 Table (
    ItemId int Identity(1, 1) NOT NULL PRIMARY KEY , 
    Item varchar(8000) NULL 
    As 
    Begin 
    Declare @item varchar(4000), 
    @iPos int 
    Set @Delimiter = ISNULL(@Delimiter, ';' ) 
    Set @List = RTrim(LTrim(@List)) 
    -- check for final delimiter 
    If Right( @List, 1 ) <> @Delimiter -- append final delimiter 
    Select @List = @List + @Delimiter -- get position of first element 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    While @iPos > 0 
    Begin 
    -- get item 
    Select @item = LTrim( RTrim( Substring( @List, 1, @iPos -1 ) ) ) 
    If @@ERROR <> 0 Break -- remove item form list 
    Select @List = Substring( @List, @iPos + 1, Len(@List) - @iPos + 1 ) 
    If @@ERROR <> 0 Break -- insert item 
    Insert @Temp1 Values( @item ) If @@ERROR <> 0 Break 
    -- get position pf next item 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    If @@ERROR <> 0 Break 
    End 
    Return 
    End
    FYI: I'm getting @List value from a table and passing it as a string to split function. 
    Any help would be appreciated!
    ZK

    Another user from TSQL forum posted this code which is returning the same resultset but when I execute both codes in SQL server it works and return single quote as expected.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8d5c96f5-c498-4f43-b2fb-284b0e83b205/passing-string-which-has-single-quote-rowvalue-to-a-function-returns-double-quoate?forum=transactsql
    CREATE FUNCTION dbo.splitter(@string VARCHAR(MAX), @delim CHAR(1))
    RETURNS @result TABLE (id INT IDENTITY, value VARCHAR(MAX))
    AS
    BEGIN
    WHILE CHARINDEX(@delim,@string) > 0
    BEGIN
    INSERT INTO @result (value) VALUES (LEFT(@string,CHARINDEX(@delim,@string)-1))
    SET @string = RIGHT(@string,LEN(@string)-CHARINDEX(@delim,@string))
    END
    INSERT INTO @result (value) VALUES (@string)
    RETURN
    END
    GO
    ZK

Maybe you are looking for

  • Report group and report library does not exist

    Dear Guru's We are not able to execute the report S_ALR_87013019 in production. After doing analyses, we came to know that library 602 & report group 6OBU does not exist in production, and hence we are not able to excute this report. We have to tried

  • Error with "Add new Row" button in Master detail VO

    Hi, Am having a header VO , Forecast HeaderVO and a child VO ForecastLineVO, now forecastHeaderVO has two bind condition attached to it,and when we run header Vo line VO will automatically execute as they are linked by a view link.My child Vo is atta

  • Album not opens in gallery

    my photo album wont opens in gallery it shows only blck screen while it opens in file manager!!plz help me!!

  • Win7 32bit Flash videos won't play

    I have 2 PCs, both running Win7 Home Premium current with all patches as well as current versions of Chrome, IE9, and Firefox.   My 64bit desktop runs Flash videos just fine with all 3 browsers.  All was OK until the last day or two.  Now my 32bit la

  • Time Balance and Account Type

    According to docs, time balance are system-defined based on account type. However, I can set any time balance. And it not enfore time balance setting on app validation and deployment. So, is any relationship between account type and time balance?