<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
@font-face
        {font-family:Helvetica}
@font-face
        {font-family:Courier}
@font-face
        {font-family:Courier}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:"Segoe UI"}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.EmailStyle18
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
ol
        {margin-bottom:0cm}
ul
        {margin-bottom:0cm}
-->
</style><style type="text/css" id="owaParaStyle"></style>
</head>
<body lang="EN-AU" link="blue" vlink="purple" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Arial;color: #000000;font-size: 10pt;">We're seeing the same type of messages as below with the messages that are seen below. Our error message is "<span style="color: rgb(169, 68, 66); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(242, 222, 222);">ResourcesLocationsListReport
 - net.sf.jasperreports.engine.JRException: Error executing SQL statement for : resourcesLocationsList</span>".
<div>
<div><br>
</div>
<div>We edited the 'config.rb' file with the jasper reports uncommented, updated the 2 files in the PR issue mentioned below, and restarted Archivesspace.</div>
<div><span style="font-size: 10pt;"><br>
</span></div>
<div><span style="font-size: 10pt;">Just FYI: Weeks ago, we've done a command line mysqldump of the database without the "--routines" flag added (with ArchivesSpace shutdown), made some changes to the file and replaced the database with the updated file.</span></div>
<div>
<div>
<div><br>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Thanks,<br>
Karrie </div>
<div class="PlainText"><br>
“The views and opinions expressed in this message are my own and do not necessarily reflect the views and opinions of Stephen F. Austin State University, its Board of Regents, or the State of Texas.”<br>
</div>
</span></font></div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF559546" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org [archivesspace_users_group-bounces@lyralists.lyrasis.org] on behalf of Emma Jolley [EJOLLEY@nla.gov.au]<br>
<b>Sent:</b> Sunday, August 30, 2015 11:57 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Problems with ASpace reports<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hi</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Apologies for the long delay in replying. I can send you a MySQL dump of the AS database – however there is a lot of confidential acquisition information
 in the database. Are there any procedures for confidential information?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Thanks</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Emma</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Nathan Stevens<br>
<b>Sent:</b> Friday, 14 August 2015 10:28 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Problems with ASpace reports</span></p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hi,<br>
<br>
The JDK version shouldn't be a problem. This seems like the report is encountering some data it can't handle. Can you send us a MySQL dump of your ASpace database so we can try and replicate the problem on our end?</p>
</div>
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On Fri, Aug 14, 2015 at 3:31 AM, Emma Jolley <<a href="mailto:EJOLLEY@nla.gov.au" target="_blank">EJOLLEY@nla.gov.au</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">My apologies for not having sent through the information about the Log. I have to liaise for some time with our IT to get this information. They
 have sent me the following information which may be of help?</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Many thanks</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Emma</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">****</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black">The log entry when running (as an example) the report mentioned in the email below is:</span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">D, [2015-08-10T17:58:14.599000 #3236] DEBUG -- : Thread-10076116: GET /repositories/2/reports/accessionsunprocessedreport?lock_version=&format=json [session: nil]</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">D, [2015-08-10T17:58:14.602000 #3236] DEBUG -- : Thread-10076116: Post-processed params: {:format=>"json", :repo_id=>2}</span></p>
<p><span style="font-size:9.0pt; font-family:Courier; color:#007F00; background:aqua">D, [2015-08-10T17:58:14.892000 #3236] DEBUG -- : Thread-10076116: Responded with [404, {"Content-Type"=>"application/json; charset=UTF-8", "Cache-Control"=>"private, must-revalidate,
 max-age=0", "Content-Length"=>"144"}, ["{\"error\":{\"AccessionsUnprocessedReport\":[\"net.sf.jasperreports.engine.JRException: Error executing SQL statement for : accessionsUnprocessed\"]}}"]]... in 292.0ms</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered shared/_breadcrumb.html.erb (1.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered /opt/archivesspace-1.3.0/archivesspace/plugins/nla_accession_reports/frontend/views/reports/index.html.erb within layouts/application (82.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered shared/_browser_support.html.erb (0.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered shared/_header_user.html.erb (6.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered shared/_header_global.html.erb (6.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered site/_branding.html.erb (0.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered shared/_advanced_search.html.erb (5.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered shared/_header_repository.html.erb (18.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered site/_footer.html.erb (0.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">  Rendered shared/_templates.html.erb (2.0ms)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">Completed 200 OK in 448.0ms (Views: 114.0ms)</span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black">Which is not helpful as it essentially just says exactly what gets displayed on the interface.</span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:9.0pt; font-family:Courier; color:#011993; background:#EBEBEB">net.sf.jasperreports.engine.JRException: Error executing SQL statement for : accessionsUnprocessed</span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black">I’ve run the query in this report directly against the database successfully (cut and paste from </span><span style="font-size:9.0pt; font-family:Courier; color:#011993; background:#EBEBEB">reports/Accessions/AccessionsUnprocessedReport/AccessionsUnprocessedReport.jrxml</span><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> and
 substituting in the repo id) so I think the SQL itself is sound. </span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black">Further info:</span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black">The report config being used are:</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">#AppConfig[:report_page_layout] = "letter landscape"</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">AppConfig[:enable_jasper] = true </span></p>
<p class="MsoNormal" style=""><span style="font-size:9.0pt; font-family:Courier; color:#011993; background:#EBEBEB">AppConfig[:compile_jasper] = true</span><span style="font-size:9.0pt; font-family:Courier; color:black"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black">I’ve tried with the report_page_layout both commented and uncommented.</span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black">The java version is:</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">java version "1.7.0_85"</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">OpenJDK Runtime Environment (rhel-2.6.1.3.el6_7-x86_64 u85-b01)</span></p>
<p style="background:#EBEBEB"><span style="font-size:9.0pt; font-family:Courier; color:#011993">OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)</span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black">Could there be an issue with using the OpenJDK rather than Oracle’s JDK perhaps ?</span></p>
<p class="MsoNormal" style=""><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style=""><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> [mailto:<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>]
<b>On Behalf Of </b>Brian Hoffman<br>
<b>Sent:</b> Friday, 14 August 2015 12:37 PM<br>
<b>To:</b> Archivesspace Users Group</span></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Problems with ASpace reports</p>
</div>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style=""><span style="background-color: rgb(255, 255, 0);">Is it possible that your database was restored from a backup or that you created your database elsewhere and then imported it into MySQL? If so, you may simply be missing the stored
 procedures the Jasper reports rely on. There is a PR concerning this issue here:</span></p>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style=""><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_archivesspace_archivesspace_pull_244&d=AwMGaQ&c=2X_btuPRWkGwRX26NHIotw&r=FD0Xci-wh01Dc1yt0aSp4ADMuu-zB2G2dpCCNNXfih0&m=fW2PblqG-EuWe_NmccDnQngjowe_utp-8LnFzzlbwaU&s=lnMBrdO99DMYnO5QSios7qmzuamXO_pZTlgirFph-9E&e=" target="_blank">https://github.com/archivesspace/archivesspace/pull/244</a></p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">Brian</p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
<div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="">On Aug 7, 2015, at 5:49 AM, Chris Fitzpatrick <<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank">Chris.Fitzpatrick@lyrasis.org</a>> wrote:</p>
</div>
<p class="MsoNormal" style=""> </p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt; background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">Hi Emma,</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">Can you look at what's being output into the log? </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">The easiest way to see what the report is doing is to look at the Jasper XML, which you can see here =><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_archivesspace_archivesspace_blob_master_reports_Accessions_AccessionsUnprocessedReport_AccessionsUnprocessedReport.jrxml-23L20-2DL37&d=AwMGaQ&c=2X_btuPRWkGwRX26NHIotw&r=FD0Xci-wh01Dc1yt0aSp4ADMuu-zB2G2dpCCNNXfih0&m=fW2PblqG-EuWe_NmccDnQngjowe_utp-8LnFzzlbwaU&s=E3g_D7ALOFUy_TOVZ77fVSG_kMXqF5u9AZkt-ff0MVc&e=" target="_blank">https://github.com/archivesspace/archivesspace/blob/master/reports/Accessions/AccessionsUnprocessedReport/AccessionsUnprocessedReport.jrxml#L20-L37</a></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">The basic SQL query is defined in the <query> tag, with the formatting happening below. You can edit this file to fit your needs, then restart ASpace to have it recompiled. </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">b,chris. </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
<div>
<div name="divtagdefaultwrapper">
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Calibri","sans-serif"">Chris Fitzpatrick | Developer, ArchivesSpace<br>
Skype: chrisfitzpat  | Phone: <a href="tel:918.236.6048" target="_blank">918.236.6048</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__archivesspace.org_&d=AwMGaQ&c=2X_btuPRWkGwRX26NHIotw&r=FD0Xci-wh01Dc1yt0aSp4ADMuu-zB2G2dpCCNNXfih0&m=fW2PblqG-EuWe_NmccDnQngjowe_utp-8LnFzzlbwaU&s=tLDoAR4LkXMLuD8XoLPRfR3Q--MISpnxaUxWqVJPZY8&e=" target="_blank">http://archivesspace.org/</a></span></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt; background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center; background:white">
<span style="font-family:"Calibri","sans-serif"">
<hr size="3" width="714" align="center" style="width:428.5pt">
</span></div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""> <a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>
 <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Emma Jolley <<a href="mailto:EJOLLEY@nla.gov.au" target="_blank">EJOLLEY@nla.gov.au</a>><br>
<b>Sent:</b> Friday, August 7, 2015 7:13 AM<br>
<b>To:</b> Archivesspace Users Group (<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>)<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Problems with ASpace reports</span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hi Chris</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">We have had the same issues as Robin with the reports. We have tried to implement your suggested solutions below but now received
 the following error message which I’ve copied below. Any advice on this?</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">In addition, I have asked previously but have never received an answer – I wonder if there is any documentation on what criteria
 the reports use to identify records that meet the nominated criteria. For example what fields is used to indicate an unprocessed Accession and what field is used to indicate an uncatalogued accession?</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Many thanks</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Emma</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<p class="MsoNormal" style="background:white"><image007.png></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.5pt; font-family:"Calibri","sans-serif""> </span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Segoe UI","sans-serif"; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<div>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> <a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> [<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org</a>] <b>On
 Behalf Of </b>Chris Fitzpatrick<br>
<b>Sent:</b> Thursday, 6 August 2015 9:16 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Cc:</b> Zalduendo, Ines; Wendler, Robin King; Della Monica, Ilaria<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Problems with ASpace reports</span></p>
</div>
</div>
</div>
<p class="MsoNormal" style="background:white"> </p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">Hi Robin,</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">So, first you need to make sure you compiled your jasper reports on startup. To do this, edit the
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__config.rb&d=AwQGaQ&c=2X_btuPRWkGwRX26NHIotw&r=FD0Xci-wh01Dc1yt0aSp4ADMuu-zB2G2dpCCNNXfih0&m=fW2PblqG-EuWe_NmccDnQngjowe_utp-8LnFzzlbwaU&s=gsazHb5GvapfRKK_QuagvejxEUPByer3KlDtd_8SStI&e=" target="_blank">
config.rb</a> file to have:</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">AppConfig[:compile_jasper] = true</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">and restart ASpace.</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">This will compile the jasper jxml files ( which is most likely what's causing the "can't convert nil to String" errors)</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">Also, you'll need to look at both your application and database server and make sure you're not running into a performance issue. Reports can hit the database really
 hard, so the timeout errors you're seeing could be the result of your server running out of RAM. </span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">In regards to the CSV and Excel and HTML files, yes I would say those are formatted rather poorly by default. You can edit this by modifing your Jasper reports using
 something like iReport or <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__community.jaspersoft.com_project_jaspersoft-2Dstudio&d=AwMGaQ&c=2X_btuPRWkGwRX26NHIotw&r=FD0Xci-wh01Dc1yt0aSp4ADMuu-zB2G2dpCCNNXfih0&m=fW2PblqG-EuWe_NmccDnQngjowe_utp-8LnFzzlbwaU&s=1ZkU9fzjJHPAB5OIF_s_JSQTeVGtBEcG5xDJVfwWvww&e=" target="_blank">Jasper
 studio</a>. Just be sure to recompile your reports.</span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">For the parameters, yes this feature is going to be included in a future release. I believe those labels are artifacts from AT. </span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif"">best, Chris. </span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<div name="divtagdefaultwrapper">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Calibri","sans-serif"">Chris Fitzpatrick | Developer, ArchivesSpace<br>
Skype: chrisfitzpat  | Phone: <a href="tel:918.236.6048" target="_blank">918.236.6048</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__archivesspace.org_&d=AwMGaQ&c=2X_btuPRWkGwRX26NHIotw&r=FD0Xci-wh01Dc1yt0aSp4ADMuu-zB2G2dpCCNNXfih0&m=fW2PblqG-EuWe_NmccDnQngjowe_utp-8LnFzzlbwaU&s=tLDoAR4LkXMLuD8XoLPRfR3Q--MISpnxaUxWqVJPZY8&e=" target="_blank">http://archivesspace.org/</a></span></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center; background:white">
<span style="font-family:"Calibri","sans-serif"">
<hr size="2" width="98%" align="center">
</span></div>
<div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
 on behalf of McElheny, Robin G. <<a href="mailto:robin_mcelheny@harvard.edu" target="_blank">robin_mcelheny@harvard.edu</a>><br>
<b>Sent:</b> Wednesday, August 5, 2015 5:55 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Cc:</b> Zalduendo, Ines; Wendler, Robin King; Della Monica, Ilaria<br>
<b>Subject:</b> [Archivesspace_Users_Group] Problems with ASpace reports</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Calibri","sans-serif""> </span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">At Harvard, we are having major problems with the reporting functionality in the latest ArchivesSpace release. We have tested
 the reports in our own installation and in the ASpace sandbox with very little success. See below for more details.</span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">We didn’t see any issues in JIRA that reflects these problems. Has anyone else encountered them? If so, have you resolved them
 – and how?</span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Record selection issues:</span></p>
</div>
<ul type="disc">
<li class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-family:"Calibri","sans-serif"">The Accessions Acquired and Accessions Production reports supposedly allow for specified time periods, but no date parameters show up in the
 report user interface.</span></li></ul>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><image008.jpg></p>
</div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"> </p>
<ul type="disc">
<li class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-family:"Calibri","sans-serif"">In other cases it is unclear how/where to select records for the report (e.g. Digital Object Record). No selection parameters appear in the report
 interface. Are we supposed to browse records, then select them using the check boxes, then generate reports?</span></li></ul>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Report format issues:</span></p>
</div>
<ul type="disc">
<li class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-family:"Calibri","sans-serif"">In cases where we were able to download CSV and Excel reports (Accessions Cataloged, Accessions Deaccessions List, Accessions Inventory), we
 were unable to sort these reports because the formatting appears to be frozen. The output of the report does not match the file type. It is like getting a static document layered on top of a spreadsheet, rather than an actual spreadsheet.</span></li></ul>
<p class="MsoNormal" style="line-height:13.8pt; background:white"> </p>
<ul type="disc">
<li class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-family:"Calibri","sans-serif"">Xlsx downloads don't export uniform cell sizes, so Excel sorting returns a warning saying "this operation requires the merged cells to be identically
 sized"</span></li></ul>
<p class="MsoNormal" style="line-height:13.8pt; background:white"> </p>
<ul type="disc">
<li class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-family:"Calibri","sans-serif"">In order for the Xlsx downloads to be useful, each field should be in a separate column to allow tallying and sorting, but the ASpace downloads
 don’t do this. Some examples:</span></li></ul>
<p class="MsoNormal" style="line-height:13.8pt; background:white"> </p>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">In the case of the Accession Deaccession List Report, opening the CSV download in Excel resulted in a very messy, single column
 spreadsheet that broke data about one deaccesion across multiple rows. (Example: row 48= "Additional records of the League of Women Voters (Cambridge, Mass.),,,,,,1376,,," and row 49 = ",Accession Date:,,05/01/1968,Extent:,1.00 Linear_feet,,,,:").</span></p>
</div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Here is a screen shot:</span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""><image009.jpg></span></p>
</div>
<ul type="disc">
<li class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-family:"Calibri","sans-serif"">Here’s another example:</span></li></ul>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""><image010.jpg></span></p>
</div>
<ul type="disc">
<li class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-family:"Calibri","sans-serif"">In the case of an HTML report, it displays page footers – odd for online display.</span></li></ul>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""><image011.jpg></span></p>
</div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Report failure/timeout:</span></p>
</div>
<ul type="disc">
<li class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-family:"Calibri","sans-serif"">We encountered many failures.</span></li></ul>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white">Example:</p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white">When we attempted to download an XLSX AccessionsAcquired report in the ArchivesSpace sandbox, we got the following message:</p>
</div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"> </p>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white">Internal Server Error (500)</p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white">Request Method:            GET</p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white">Request URL:     <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8089_repositories_4_reports_accessionsacquiredreport-3Flock-5Fversion-3D-26format-3Dxlsx&d=AwMGaQ&c=2X_btuPRWkGwRX26NHIotw&r=FD0Xci-wh01Dc1yt0aSp4ADMuu-zB2G2dpCCNNXfih0&m=fW2PblqG-EuWe_NmccDnQngjowe_utp-8LnFzzlbwaU&s=QLVRITSkiwZ5mUuNKW9IXhybdcp_1VY7kG4axjN1YpI&e=" target="_blank">http://localhost:8089/repositories/4/reports/accessionsacquiredreport?lock_version=&format=xlsx</a></p>
</div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"> </p>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white">(TypeError) can't convert nil into String</p>
</div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"> </p>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white">You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.</p>
</div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"> </p>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white">Another example:</p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""><image012.jpg></span></p>
</div>
<ul type="disc">
<li class="MsoNormal" style="line-height:13.8pt; background:white"><span style="font-family:"Calibri","sans-serif"">We were unable to generate any successful Resource reports. All attempts to download reports in any format resulted in “Waiting for (server)”
 messages with no results.</span></li></ul>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""> </span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""> </span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Robin McElheny</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Associate University Archivist for Collections and Public Services</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Harvard University Archives</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Pusey Library</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Cambridge, MA 02138</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Email: <a href="mailto:robin_mcelheny@harvard.edu" target="_blank">robin_mcelheny@harvard.edu</a></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Phone:
<a href="tel:617-495-2461" target="_blank">617-495-2461</a></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"">Fax:
<a href="tel:617-495-8011" target="_blank">617-495-8011</a></span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif""> </span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style=""><span style="font-size:9.0pt; font-family:"Helvetica","sans-serif"">_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=AwMGaQ&c=2X_btuPRWkGwRX26NHIotw&r=FD0Xci-wh01Dc1yt0aSp4ADMuu-zB2G2dpCCNNXfih0&m=fW2PblqG-EuWe_NmccDnQngjowe_utp-8LnFzzlbwaU&s=UKQoV4YFnThAz6ota9QAIQcE7acnwRZOAFv-CYNYT00&e=" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal" style=""> </p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=AwMGaQ&c=2X_btuPRWkGwRX26NHIotw&r=FD0Xci-wh01Dc1yt0aSp4ADMuu-zB2G2dpCCNNXfih0&m=fW2PblqG-EuWe_NmccDnQngjowe_utp-8LnFzzlbwaU&s=UKQoV4YFnThAz6ota9QAIQcE7acnwRZOAFv-CYNYT00&e=" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- </p>
<div>
<p class="MsoNormal">Nathan Stevens<br>
Programmer/Analyst<br>
Digital Library Technology Services<br>
New York University<br>
<br>
1212-998-2653<br>
<a href="mailto:ns96@nyu.edu" target="_blank">ns96@nyu.edu</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>