<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" 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 = ""><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19120">
<STYLE>@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Garamond;
}
@page WordSection1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt
}
LI.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt
}
DIV.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
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 lang=EN-US link=blue bgColor=white vLink=purple>
<DIV><FONT face=Garamond>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.</FONT></DIV>
<DIV><FONT face=Garamond>Miigwech!</FONT></DIV>
<DIV><FONT face=Garamond>Dara</FONT></DIV>
<DIV><FONT face=Garamond></FONT>&nbsp;</DIV>
<DIV><FONT face=Garamond>MAP<BR></FONT><FONT face=Garamond>SIZE 1920 
1920<BR>MAXSIZE 10000<BR>EXTENT -20614760.777156 1751325.1919492 
-1927436.1053437 7915207.1517617<BR>UNITS meters<BR>SYMBOLSET 
"..\symbols\glifwc_symbol.sym"<BR>FONTSET "..\fonts\fonts.list"<BR>CONFIG&nbsp; 
"MS_ERRORFILE" "d:/Logs/Mapserver/MapServerDEVELSITE.log"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Garamond>OUTPUTFORMAT<BR>&nbsp;NAME 'agg/png'<BR>&nbsp;DRIVER 
AGG/PNG<BR>&nbsp;IMAGEMODE RGBA<BR>&nbsp;FORMATOPTION 
"TRANSPARENT=TRUE"<BR>END<BR>&nbsp;<BR>IMAGETYPE AGG/PNG<BR>TRANSPARENT 
ON<BR>IMAGECOLOR -1 -1 -1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Garamond>DEBUG 3<BR>&nbsp;</FONT><FONT 
face=Garamond>&nbsp;<BR>############################### ---- LEGEND ---- 
###############################</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Garamond>&nbsp;LEGEND<BR>&nbsp;&nbsp; STATUS on<BR>&nbsp;&nbsp; 
TRANSPARENT on<BR>&nbsp;END<BR>&nbsp;<BR>############################### ---- 
Map projection ---- ###############################</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT 
face=Garamond>&nbsp;PROJECTION<BR>&nbsp;&nbsp;"init=epsg:900913"<BR>&nbsp;END</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Garamond>############################### ---- LAYERS ---- 
###############################<BR>&nbsp;</FONT></DIV>
<DIV><FONT face=Garamond>LAYER #&nbsp; MN Ogaa Harvest LBS<BR>&nbsp;&nbsp;&nbsp; 
NAME "mn_ogaa_harvest_lbs"<BR>&nbsp;&nbsp;&nbsp;&nbsp;TYPE 
POLYGON<BR>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE postgis<BR>&nbsp;&nbsp;&nbsp; 
CONNECTION "host=zzzzzzz user=zzzzzz password=zzzzzz 
dbname=zzzzzz"<BR>&nbsp;&nbsp;&nbsp; PROCESSING 
"CLOSE_CONNECTION=DEFER"&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=Garamond>&nbsp;&nbsp;&nbsp; DATA "the_geom900913 from 
inland.mn_ogaa_harvest_lbs_spatial using unique new_id using 
srid=900913"<BR>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; "init=epsg:900913"<BR>&nbsp;&nbsp;&nbsp; 
END<BR>&nbsp;&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
"wms_title" "MN Ogaa Harvest Lakes"<BR>&nbsp;&nbsp;&nbsp; 
END<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME 
"MN Ogaa Harvest 
Lakes"&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 
"../identify/ogaa_harvest/mn_ogaa_harvest_lbs_identify.html"<BR>&nbsp;&nbsp;&nbsp; 
END<BR>END # MN Ogaa Harvest LBS</FONT></DIV>
<DIV><FONT face=Garamond></FONT>&nbsp;</DIV>
<DIV><FONT face=Garamond>END #map file</FONT></DIV>
<DIV><FONT face=Garamond></FONT>&nbsp;</DIV>
<DIV><FONT face=Garamond>My HTML identify template used to display results is, 
</FONT></DIV>
<DIV><FONT face=Garamond></FONT>&nbsp;</DIV>
<DIV><FONT face=Garamond>&lt;!-- MapServer 
Template--&gt;<BR>&lt;tbody&gt;<BR>&lt;tr&gt;<BR>&lt;th colspan="2"&gt;MN Ogaa 
Harvest in Pounds&lt;/th&gt;<BR>&lt;/tr&gt;<BR>&lt;tr&gt;<BR>&lt;td 
align="left"&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="left"&gt;2011 
Harvest:&lt;/td&gt;<BR>&lt;td&gt;[_2011_harvest]&lt;/td&gt;<BR>&lt;/tr&gt;<BR>...</FONT></DIV>
<DIV><FONT face=Garamond>&lt;/tbody&gt;<BR>&lt;tr&gt;&lt;td 
colspan="2"&gt;&lt;hr&gt;&lt;/td&gt;&lt;/tr&gt;</FONT></DIV>
<DIV><FONT face=Garamond></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=david.fawcett@state.mn.us 
  href="mailto:david.fawcett@state.mn.us">Fawcett, David (MPCA)</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=dolson@glifwc.org 
  href="mailto:dolson@glifwc.org">Dara Olson</A> ; <A 
  title=mapserver-users@lists.osgeo.org 
  href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, August 16, 2011 9:42 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [mapserver-users] Web 
  application error. Malformed template name</DIV>
  <DIV><BR></DIV>
  <DIV class=WordSection1>
  <P class=MsoNormal><SPAN 
  style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Dara, 
  <o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p>&nbsp;</o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">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-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p>&nbsp;</o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">David.<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p>&nbsp;</o:p></SPAN></P>
  <DIV>
  <DIV 
  style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
  <P class=MsoNormal><B><SPAN 
  style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN 
  style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> <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 "temporary view" 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></DIV></BLOCKQUOTE></BODY></HTML>