<!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
}
SPAN.EmailStyle18 {
        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>I found the problem&nbsp;- I was using a bigint 
value&nbsp;for the unique key&nbsp;in the layer definition and it was not a 
primary key or have any unique constraint on it.&nbsp; I brought in a "gid" 
(int4)&nbsp;from the joined table with geometry that was in the temp view and 
used that as the unique value in the map layer definition and it works 
perfectly.&nbsp; I found this out by attempting to access the PostGIS view 
through Quantum GIS.&nbsp; I am still kind of confused why this is, but it 
works.</FONT></DIV>
<DIV><FONT face=Garamond>David - Thanks for the help!</FONT></DIV>
<DIV><FONT face=Garamond>Dara</FONT></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=dolson@glifwc.org href="mailto:dolson@glifwc.org">Dara Olson</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=david.fawcett@state.mn.us 
  href="mailto:david.fawcett@state.mn.us">Fawcett, David (MPCA)</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 1:19 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [mapserver-users] Web 
  application error. Malformed template name</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Garamond>An absolute path&nbsp;did not help.&nbsp; I increased 
  MapServer&nbsp;Debug to 5 and I still don't get any more information.&nbsp; Is 
  there a way to track down where exactly the problem is happening?&nbsp; I 
  thought by creating the view to remove the multiple records by waterbody this 
  would remove this error (so it wouldn't get more than one result from the URL 
  request), but no such luck. Any other suggestions would be greatly 
  appreciated.</FONT></DIV>
  <DIV><FONT face=Garamond>Dara</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>----- Original Message ----- </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; 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 11:55 
    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">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-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"> Dara Olson 
    [mailto:dolson@glifwc.org] <BR><B>Sent:</B> Tuesday, August 16, 2011 10:03 
    AM<BR><B>To:</B> Fawcett, David (MPCA); <A 
    href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><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 
    "..\symbols\glifwc_symbol.sym"<BR>FONTSET 
    "..\fonts\fonts.list"<BR>CONFIG&nbsp; "MS_ERRORFILE" 
    "d:/Logs/Mapserver/MapServerDEVELSITE.log"</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 "TRANSPARENT=TRUE"<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;"init=epsg:900913"<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 
    "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;</SPAN><o:p></o:p></P></DIV>
    <DIV>
    <P class=MsoNormal><SPAN 
    style="FONT-FAMILY: 'Garamond','serif'">&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</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="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>...</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="2"&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-BOTTOM: medium none; BORDER-LEFT: black 1.5pt solid; PADDING-BOTTOM: 0in; MARGIN: 5pt 0in 5pt 3.75pt; PADDING-LEFT: 4pt; PADDING-RIGHT: 0in; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in">
      <DIV>
      <P class=MsoNormal><SPAN 
      style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">----- Original 
      Message ----- <o:p></o:p></SPAN></P></DIV>
      <DIV>
      <P style="BACKGROUND: #e4e4e4" class=MsoNormal><B><SPAN 
      style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN 
      style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> <A 
      title=david.fawcett@state.mn.us 
      href="mailto:david.fawcett@state.mn.us">Fawcett, David (MPCA)</A> 
      <o:p></o:p></SPAN></P></DIV>
      <DIV>
      <P class=MsoNormal><B><SPAN 
      style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">To:</SPAN></B><SPAN 
      style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> <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> 
      <o:p></o:p></SPAN></P></DIV>
      <DIV>
      <P class=MsoNormal><B><SPAN 
      style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Sent:</SPAN></B><SPAN 
      style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> Tuesday, 
      August 16, 2011 9:42 AM<o:p></o:p></SPAN></P></DIV>
      <DIV>
      <P class=MsoNormal><B><SPAN 
      style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Subject:</SPAN></B><SPAN 
      style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> 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: '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></BLOCKQUOTE></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>