Skip to main content
Question

The error number from ArcObjects is: '-2147215922'. The error message from ArcObjects is: {Number of parts in shape is incorrect for its geometry type

  • August 22, 2023
  • 3 replies
  • 265 views

Forum|alt.badge.img

HI, I get error above when i write to Feature Class in SDE. i have no issue if I write into GDB.( i also attached the log file here).

would you let me know what the issue is and how to solve it. Appreciated for your help.

3 replies

david_r
Celebrity
  • August 23, 2023

According to the log (line 434) you have a zero-length line:

(-114.17998216099994,34.76430710400001) (-114.17998216099994,34.76430710400001)

This line will be interpreted as a point by SDE, which it will refuse to write in a polyline feature class.


Forum|alt.badge.img
  • Author
  • August 23, 2023

Thanks for your respond, David.

as i understand, this is M measure Line, and this segment is created by using snipper with 3.1 ft long (BeginMeasure: 255335.27 and EndMeasure : 255338.37).

I am not sure how to handle it. Please advise!


david_r
Celebrity
  • August 23, 2023

Thanks for your respond, David.

as i understand, this is M measure Line, and this segment is created by using snipper with 3.1 ft long (BeginMeasure: 255335.27 and EndMeasure : 255338.37).

I am not sure how to handle it. Please advise!

In this case, you got a line from M=255335.27 to M=255335.27000000002, so I'm guessing that is the maximum M value on the input line.

The easiest resolution is probably to use the LengthCalculator followed by a Tester to check that the line length is >= the SDE snapping grid.