<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: Help: SDE error. SE_layer_get_info(): Layer not found. (-20) </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>I Solved this problem by myself. <BR>
<BR>
Rewrite the connection string, full computer name and no space between. Now it solved the problem.<BR>
<BR>
<BR>
<BR>
Thanks and Regards,<BR>
<BR>
Sun<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Sun, Xijiang [<A HREF="mailto:XIJIANG.SUN@saic.com">mailto:XIJIANG.SUN@saic.com</A>]<BR>
Sent: Fri 3/30/2007 3:57 PM<BR>
To: MAPSERVER-USERS@LISTS.UMN.EDU<BR>
Subject: FW: Help: SDE error. SE_layer_get_info(): Layer not found. (-20)<BR>
<BR>
<BR>
<BR>
Dear folks,<BR>
<BR>
I am using the MapServer 4.10.1, the data source is from ArcSDE 9.1 for Oracle.<BR>
<BR>
My settings is like below:<BR>
<BR>
NAME 'GDT.SDE_BAY_ZIPI'<BR>
GROUP 'GDT.SDE_BAY_ZIPI'<BR>
CONNECTIONTYPE sde<BR>
#CONNECTION 'SunServer,5151,sde,ps,ps'<BR>
CONNECTION "SunServer,port:5151,sde,ps,ps"<BR>
DATA "GDT.SDE_BAY_ZIPI, SHAPE"<BR>
#DATA "GDT.SDE_BAY_ZIPI, SHAPE, SDE.DEFAULT"<BR>
<BR>
Now I get message like below:<BR>
<BR>
msDrawMap(): Image handling error. Failed to draw layer named 'GDT.SDE_BAY_ZIPI'.<BR>
msSDELayerOpen(): SDE error. SE_layer_get_info(): . (1)<BR>
msSDEGetLayerInfo(): SDE error. SE_layer_get_info(): Layer not found. (-20)<BR>
CGI Request 1 on process 5032 msDrawMap(): Layer 0 (GDT.SDE_BAY_ZIP), 0.020s<BR>
<BR>
<BR>
Another interesting thing is that I can not specify "SDE.DEFAULT".<BR>
if I use setting like below.<BR>
DATA "GDT.SDE_BAY_ZIPI, SHAPE, SDE.DEFAULT"<BR>
<BR>
<BR>
<BR>
When I am using<BR>
DATA "GDT.SDE_BAY_ZIPI, SHAPE, SDE.DEFAULT"<BR>
<BR>
I got the following error.<BR>
<BR>
msDrawMap(): Image handling error. Failed to draw layer named 'GDT.SDE_BAY_ZIPI'.<BR>
msSDELayerOpen(): SDE error. SE_version_get_info(): Version not found. (-126)<BR>
CGI Request 1 on process 4676 msDrawMap(): Layer 0 (GDT.SDE_BAY_ZIP), 0.010s<BR>
<BR>
<BR>
The data connection looks correct. I am able to view the same data through ArcCatalog. Any hint to help me continue my work? <BR>
<BR>
<BR>
Thanks a lot.<BR>
<BR>
Have a great weekend.<BR>
<BR>
Sun<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>