<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Garamond;
        panose-1:2 2 4 4 3 3 1 1 8 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dara, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I am pretty sure that relative paths work for templates, but for testing purposes, try using the absolute path to the template.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>David.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Dara Olson [mailto:dolson@glifwc.org] <br><b>Sent:</b> Tuesday, August 16, 2011 10:03 AM<br><b>To:</b> Fawcett, David (MPCA); mapserver-users@lists.osgeo.org<br><b>Subject:</b> Re: [mapserver-users] Web application error. Malformed template name<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>It is below.&nbsp; I am running a web mapping site with GeoMoose(2.0) and MapServer(5.2.1), but I can't seem to find a way to figure out what I am doing wrong or why I am ending up with the error. Any help would be greatly appreciated.</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Miigwech!</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Dara</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>MAP<br>SIZE 1920 1920<br>MAXSIZE 10000<br>EXTENT -20614760.777156 1751325.1919492 -1927436.1053437 7915207.1517617<br>UNITS meters<br>SYMBOLSET &quot;..\symbols\glifwc_symbol.sym&quot;<br>FONTSET &quot;..\fonts\fonts.list&quot;<br>CONFIG&nbsp; &quot;MS_ERRORFILE&quot; &quot;d:/Logs/Mapserver/MapServerDEVELSITE.log&quot;</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>OUTPUTFORMAT<br>&nbsp;NAME 'agg/png'<br>&nbsp;DRIVER AGG/PNG<br>&nbsp;IMAGEMODE RGBA<br>&nbsp;FORMATOPTION &quot;TRANSPARENT=TRUE&quot;<br>END<br>&nbsp;<br>IMAGETYPE AGG/PNG<br>TRANSPARENT ON<br>IMAGECOLOR -1 -1 -1</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>DEBUG 3<br>&nbsp;&nbsp;<br>############################### ---- LEGEND ---- ###############################</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>&nbsp;LEGEND<br>&nbsp;&nbsp; STATUS on<br>&nbsp;&nbsp; TRANSPARENT on<br>&nbsp;END<br>&nbsp;<br>############################### ---- Map projection ---- ###############################</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>&nbsp;PROJECTION<br>&nbsp;&nbsp;&quot;init=epsg:900913&quot;<br>&nbsp;END</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>############################### ---- LAYERS ---- ###############################<br>&nbsp;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>LAYER #&nbsp; MN Ogaa Harvest LBS<br>&nbsp;&nbsp;&nbsp; NAME &quot;mn_ogaa_harvest_lbs&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;TYPE POLYGON<br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE postgis<br>&nbsp;&nbsp;&nbsp; CONNECTION &quot;host=zzzzzzz user=zzzzzz password=zzzzzz dbname=zzzzzz&quot;<br>&nbsp;&nbsp;&nbsp; PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;&nbsp;&nbsp;&nbsp;</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>&nbsp;&nbsp;&nbsp; DATA &quot;the_geom900913 from inland.mn_ogaa_harvest_lbs_spatial using unique new_id using srid=900913&quot;<br>&nbsp;&nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;init=epsg:900913&quot;<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;wms_title&quot; &quot;MN Ogaa Harvest Lakes&quot;<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME &quot;MN Ogaa Harvest Lakes&quot;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SYMBOL 0&nbsp;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SIZE 6&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR -1 -1 -1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 182 177 145<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEMPLATE &quot;../identify/ogaa_harvest/mn_ogaa_harvest_lbs_identify.html&quot;<br>&nbsp;&nbsp;&nbsp; END<br>END # MN Ogaa Harvest LBS</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>END #map file</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>My HTML identify template used to display results is, </span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>&lt;!-- MapServer Template--&gt;<br>&lt;tbody&gt;<br>&lt;tr&gt;<br>&lt;th colspan=&quot;2&quot;&gt;MN Ogaa Harvest in Pounds&lt;/th&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br>&lt;td align=&quot;left&quot;&gt;Lake:&lt;/td&gt;<br>&lt;td&gt;[lake]&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br>&lt;td align=&quot;left&quot;&gt;2011 Harvest:&lt;/td&gt;<br>&lt;td&gt;[_2011_harvest]&lt;/td&gt;<br>&lt;/tr&gt;<br>...</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>&lt;/tbody&gt;<br>&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;hr&gt;&lt;/td&gt;&lt;/tr&gt;</span><o:p></o:p></p></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><blockquote style='border:none;border-left:solid black 1.5pt;padding:0in 0in 0in 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>----- Original Message ----- <o:p></o:p></span></p></div><div><p class=MsoNormal style='background:#E4E4E4'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <a href="mailto:david.fawcett@state.mn.us" title="david.fawcett@state.mn.us">Fawcett, David (MPCA)</a> <o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>To:</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <a href="mailto:dolson@glifwc.org" title="dolson@glifwc.org">Dara Olson</a> ; <a href="mailto:mapserver-users@lists.osgeo.org" title="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a> <o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Sent:</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> Tuesday, August 16, 2011 9:42 AM<o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Subject:</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> RE: [mapserver-users] Web application error. Malformed template name<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dara, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Can you share the part of your mapfile that describes this layer?&nbsp; <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>David.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Dara Olson<br><b>Sent:</b> Tuesday, August 16, 2011 9:01 AM<br><b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> [mapserver-users] Web application error. Malformed template name<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Good morning. I am having some problems identifying a layer&nbsp;through MapServer&nbsp;and I seem to be stuck.&nbsp; <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>I have a flat table of harvest by waterbody by year by individual in PostgreSQL/PostGIS. I created a &quot;temporary view&quot; of the sum harvested by waterbody by year and joined in geometry which I then made into a crosstab so that each lake would be listed and columns across with harvest by year.&nbsp; It draws successfully in my web mapping application (and&nbsp;view looks fine in postgres), but when I try to use the Identify feature on the website (Mapserver GET&nbsp;URL request)&nbsp;I get the following error in MapServer, <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>[Fri Aug 12 09:57:33 2011].687000 msReturnPage(): Web application error. Malformed template name ().<br>[Fri Aug 12 09:57:33 2011].703000 msQueryByPoint(): Search returned no results. No matching record(s) found.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Before doing the crosstab I was getting this error, but I assumed that it didn't like the multiple records linked&nbsp;to the same geometry and that's why I did the crosstab.&nbsp; But still nothing works.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Does anyone have any idea of where to begin to debug?&nbsp; Any help would be greatly appreciated.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Thanks!<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Dara Olson, GLIFWC<o:p></o:p></span></p></div></div></blockquote></div></body></html>