GeometryEngine.buffer fail

619
5
10-26-2021 08:58 AM
mody_buchbinder
Occasional Contributor III

I am running with a cursor on a polyline feature class.

I buffer each polylinr using  GeometryEngine.Instance.Buffer

Once in a while I get error 80004004 - The operation has been canceled.

I think it is mostley with long lines.

Anybody have any idea why?

Thanks

0 Kudos
5 Replies
JeremyWiles
New Contributor III

Once in a while?  What version of the SDK are you using?

0 Kudos
mody_buchbinder
Occasional Contributor III

2.8

Yes, the software gets lines from some outside source as XML. Write the line into polyline FC and write the buffer to different FC. I could not really found anything unusual with the polylines that fail the buffer.

Checking their properties in dubger show that most of them are longer then 1 degree (the file is geographic)

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Can you share  some sample data that showed the error?    When it fails does it fail on the same feature?

 

0 Kudos
mody_buchbinder
Occasional Contributor III

I am working on it.

We will put the buffer command into try exception that will make the program run on all lines.

Then we will compare the buffer layer with the line layer and find the lines that was not buffered.

We will try the Buffer GP tool on the line layer with the same distance.

I hope to identify the lines that fail.

It will take a few days...

Thanks

0 Kudos
mody_buchbinder
Occasional Contributor III

Results are very strange.

I just added exception on the buffer that will write the error and will continue running.

All the buffers was created for all the lines even an exception did happened.

Can anyone explain it? It looks like there was some dummy buffer command that fail but all "real" buffers was created.

0 Kudos