向SDE加入图形的时候出现Update fail,5019

我在MO2.2中从Shp向SDE写入一个文件时,在recordset.Update时出现异常:Update fail,关联信息是Mapobject.hlp#5019。
网上找到ESRI的资料是说:

Error Message

This error occurs when updating numeric fields with values containing a comma as the decimal marker:

Run-time error '5019':
Update Failed


 

Cause

Regional settings have been set to use the comma as the decimal marker, particularly on non-English operating systems, such as German and Swedish.


 

Solution or Workaround

Install Service Pack 3 for MapObjects 2.1,\; this will update the AF20.dll (version 2.1.1.10).

1. Download Service Pack 3 from the MapObjects DevConnection. See Related Information.

2. Run the MO21sp3.exe program to update your installation of MapObjects 2.1.

但这是针对Mo2.1的,我看了一下我的AF.DLL,已经是2.2.10了,不可能还有这样的错了吧。
无奈,一个一个字段不导,查到SHAPE字段不导时可以成功Update。
但具体查看这个Polygon时,并没有发现什么异常,我试着把多顶点的地方慢慢削掉,到一
定程度竟然可以了!真是奇怪,无奈,取消ArcMap的填充,查看图形,也没发现被削的地
方有异常。再试着恢复图形后削掉另一块,竟然也可以,这样看来,应该是图形太大了!!
因为没有GIS经验,问同事,他建议我把SDE中对应的图层的空间索引网格改大来,我试验
了一下,果然是这样。问题解决。

原文地址:https://www.cnblogs.com/Render/p/458588.html