无痕客

落花无情,流水无痕……

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
     我其实以前研究过向SDE中导数据应用,包括从文件中导数据、从PGB中导数据和 File GB中导数据。当时不记得出现“Attribute conversion error[owner.TABLE][STATE_ID =n]” 的错误,但昨晚准备把该功能的代码移植到现在的一个数据管理系统中时,却总是出现这类问题。
      起初根据网上搜到得帮助:
        Error:  Error opening feature class: Attribute conversion error[owner.TABLE][STATE_ID =n]
Article ID: 23460
Software:  ArcGIS - ArcEditor 8.1, 8.1.2, 8.2, 8.3, 9.0, 9.1, 9.2, 9.3 ArcGIS - ArcInfo 8.0.1, 8.0.2, 8.1, 8.1.2, 8.2, 8.3, 9.0, 9.1, 9.2, 9.3 ArcGIS - ArcView 8.1, 8.1.2, 8.2, 8.3, 9.0, 9.1, 9.2, 9.3 ArcSDE 8.0.1, 8.0.2, 8.1, 8.1.2, 8.2, 8.3, 9.0, 9.1, 9.2, 9.3
Platforms: N/A

Error Message

When trying to open a feature class in ArcMap or ArcCatalog, the following error occurs:
"Error opening feature class
Attribute conversion error[MINN.UG_PARPTS_GEOM][STATE_ID =0]"
Cause
The table may contain one or more columns defined as user defined data types. ArcGIS does not interpret most user defined types because they cannot be mapped to ArcSDE data types. (SDO_GEOMETRY is one exception.)

Solution or Workaround

Do not use register tables or feature classes that contain user defined types with ArcSDE.
Related Information
大意是因为表中有些自定义类型的字段,但是在SDE类型表中找不到该类型的字段,所以出错。我于是反复地删掉和重新建立报错的表,但是徒劳一顿,问题依然没法解决。后来想到当初研究时许工程师提过要更改License类型。
      产生原因:
      1.License类型不对。向SDE中导数据需要的License的类型与普通的AE开发不同。
      2.当我删掉一条数据时,重新加载同名的数据到SDE中会出同样的错~!删除数据方法有问题,导致没有删干净,可能存有索引,造成再次导入同名数据会出错。
      3.数据问题,遇到一个GIF格式数据,报那样的错。应该是个例。
      解决方法:
      1.更改License类型,右键Licese控件,选择属性,然后更改如下图:
     SDE导数据时License设置    
      2.更改删除数据的方式。
      3.估计是数据问题,不完全确定,应该是个例。
  
posted on 2009-08-30 22:06  无痕客  阅读(2112)  评论(0编辑  收藏  举报