ReportPortal
ReportPortal
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ReportPortal General Forum
 Report Portal General Issues
 Export SQL Reports
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fercasas

Colombia
47 Posts

Posted - 08/15/2013 :  12:16:20  Show Profile  Reply with Quote
Hello,

I have some SQL Reports with dates parameters, in ReportPortal I can view them but when I try to export to Excel, PDF, CSV or Html only shows me the header.
I have done the test with some reports without parameters and these if are exported successfully.

Can you help me please?

Thanks

admin

1637 Posts

Posted - 08/16/2013 :  00:43:09  Show Profile  Reply with Quote
Can you please try to reproduce this problem on the demo server? There is a report with a date picker: My Reports > Usage by Date.

http://www.reportportal.us/ReportPortal/login.aspx
Go to Top of Page

fercasas

Colombia
47 Posts

Posted - 08/20/2013 :  14:06:23  Show Profile  Reply with Quote
Hello,

I tried to modify the report to test but has not let me save the report in test server, the SQL code is as follows:

SELECT CONVERT(varchar, LogDate, 1) AS LogDate, COUNT(*) AS RecordCount
FROM UsageLog
where LogDate >= '::1' AND LogDate <= '::2'
GROUP BY CONVERT(varchar, LogDate, 1)
ORDER BY COUNT(*) DESC

I identified that the problem is with the date format to export the report because if I set valid dates in the format dd/mm/yyyy and mm/ dd/yyyy I can exportal the report.

I want to mention that in the browser works well, the bug is only to export.

Thanks.
Go to Top of Page

admin

1637 Posts

Posted - 08/20/2013 :  20:41:19  Show Profile  Reply with Quote
Why could not you save the SQL report? What error message did you get when trying to save it?

In any case, there is a new report My Reports > Usage by Date 2. It has your SQL and both date filters are set to use the British (dd/mm/yyyy) date format. Can you please see if you can reproduce the problem now?
Go to Top of Page

fercasas

Colombia
47 Posts

Posted - 08/21/2013 :  08:55:23  Show Profile  Reply with Quote
Hello,

I can't reproduce the the problem in demo server but if I set the filters to format British (dd/mm/yyyy) in my server the report is exported correctly; if I set the filters to USA (mm/dd/yyyy) when I export the report only appear the header.

It occur in all SQL Reports with date filters.

Thanks.
Go to Top of Page

admin

1637 Posts

Posted - 08/21/2013 :  21:03:45  Show Profile  Reply with Quote
Please try below hot fix. It should export the error description inside of the Excel (XLSX) file.
1. Download and unzip: http://www.reportportal.com/download/rp_183_sql_xlsx.zip
2. Backup old file to an external folder and copy the unzipped file to: "C:\inetpub\wwwroot\ReportPortal\bin\ReportPortal.dll"

Please post the full error message here.
Go to Top of Page

fercasas

Colombia
47 Posts

Posted - 08/22/2013 :  04:33:10  Show Profile  Reply with Quote
Hello,

Again the file was exported only with the header and one filter don't have the date but it have the value zero (0).
Not displaying the description of the error in Excel.

Thanks.
Go to Top of Page

admin

1637 Posts

Posted - 08/22/2013 :  04:49:53  Show Profile  Reply with Quote
Please send the exported Excel file to support@ReportPortal.com.
Go to Top of Page

admin

1637 Posts

Posted - 08/28/2013 :  19:17:42  Show Profile  Reply with Quote
The hot fix resolved the problem.

1. Download and unzip: http://www.reportportal.com/download/rp_183_sql_xlsx3.zip
2. Backup old file to an external folder and copy the unzipped file to: "C:\inetpub\wwwroot\ReportPortal\bin\ReportPortal.dll"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
ReportPortal © 2000-2002 Snitz Communications Go To Top Of Page