Hi, strange behavior indeed, that is to say, I'm not sure at 100% that the WFS transaction queries you are sending are correct, an example from the WFS 1.1.0 specification:
<?xml version="1.0"?> <wfs:Transaction service="WFS" version="1.1.0" xmlns=" http://www.someserver.com/myns" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.someserver.com/myns http://www.someserver.com/wfs/cwwfs.cgi? request=describefeaturetype&typename=InWaterA_1M.xsd http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd"> <wfs:Insert idgen="UseExisting"> <InWaterA_1M gml:id="INW1"> <wkbGeom> <gml:Polygon gml:id="P1" srsName=" http://www.opengis.net/gml/srs/epsg.xml#63266405"> <gml:exterior> <gml:LinearRing> <gml:posList>-98.54 24.26 ...</gml:posList></gml:LinearRing> </gml:exterior> </gml:Polygon> </wkbGeom> <id>150</id> <f_code>ABCDE</f_code> <hyc>152</hyc> <tileId>250</tileId> <facId>111</facId> </InWaterA_1M> </wfs:Insert> </wfs:Transaction> I would recommend to give it a try (if not already done) using GeoServer WFS strict mode <https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html#xml-request-validation> and see if GeoServer complains about them, if not then feel free to fill a bug report. Best regards, Nuno Oliveira On Tue, Jan 5, 2021 at 8:22 AM feyzullah yıldız < [email protected]> wrote: > > - Geoserver version: 2.14.1 and 2.18.0. > - My store is Postgis. > - Those are my tables, there is no relation on database level > > create table example_table( > id serial primary key, > name varchar(100), > geom geometry(Point, 4326) > );create table name( > id serial primary key, > key varchar(100) > ); > > I executed this sql query, then I just published example_table. here is my > insert transaction. > > > <wfs:Transaction service="WFS" version="1.1.0" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:topp="http://www.openplans.org/topp" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd > http://www.openplans.org/topp > http://localhost:8080/geoserver/wfs/DescribeFeatureType?typename=feyzullah_test:example_table"> > <wfs:Insert> > <example_table> > <name>isim</name> > <geom> > <Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"> > <coordinates decimal="." cs="," ts=" ">29,41</coordinates> > </Point> > </geom> > </example_table> > </wfs:Insert></wfs:Transaction> > > > - Then It is inserted successfully. > - I published the other layer called name > - Then I executed the same transaction XML again and I got an error. > The error says: value too long for type character varying(100). but is > not that long. Here is the what GeoServer generated for insert query > > INSERT INTO "public"."example_table" ( "name","geom" )VALUES > ('SimpleFeatureImpl:name=[SimpleFeatureImpl.Attribute: key<key > id=fid-55948f24_176ad551553_-7fb5>=null]', > ST_GeomFromText('POINT (29 41)', 4326) > ) > > > - When I unpublish the layer called name, this error is not firing. We > have had an app in production for over 2 years, this was not happening > until we realized this error. This error is not happening in the update > transaction. > - So, if we have a table like foo and another layer has a column > called foo we cannot execute insert transaction successfully. > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Regards, Nuno Oliveira == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Nuno Miguel Carvalho Oliveira @nmcoliveira Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
