Skip to main content

Hi There, I am reading data from a 10.4 Geodatabase (on SQL
server) using Microsoft SQL Server Spatial writer. I am also writing this data
to 10.4 Geodatabase (on SQL server)
using MS SQL Server spatial writer. The update process runs fine but when I open the features
in ESRI ArcGIS, I get this error. I noticed that it happens only with lines, point datasets
work fine.

Underlying DBMS error [[Microsoft][ODBC Driver 13 for SQL
Server][SQL Server]A .NET Framework error occurred during execution of
user-defined routine or aggregate "geometry":

System.ArgumentException: 24144: This operation cannot be
completed because the instance is not valid. Use MakeValid to convert the
instance to a valid instance. Note that MakeValid may cause the points of a
geometry instance to shift slightly.

System.ArgumentException:

Hi @jayd3vl,

 

Could you try using the ArcSDE Geodb writer instead of the Microsoft SQL Server Spatial Writer?

 


Please try the ArcSDE reader and writer. An Arcgis Geodatabase is better handled by the SDE. If you use the backdoor using a SQL Server reader/writer you will get funny results. These readers and writers are not aware of by example versioning that the SDE does.


Please try the ArcSDE reader and writer. An Arcgis Geodatabase is better handled by the SDE. If you use the backdoor using a SQL Server reader/writer you will get funny results. These readers and writers are not aware of by example versioning that the SDE does.

Thanks stalknecht, Andrea for your feedback. The reason for using SQL
Server Spatial wrier was the support for bulk Insert. Our business requirement
is that in case of failed process, the original data remains intact. ESRI
Geodatabase writer has this property “Features to write per transaction” and I
set it to a very high value. I came across a scenario where there was an error
with the workspace and rollback didn’t happen. I noticed that this writer writes
record by record.

 


 



I would prefer to use ESRI geodatabase writer if I can get the
rollback functionality to work. I am curious if anyone else had success with
rollback using ESRI geodatabase writer. Thanks jay

 

 

 

 

 


Thanks stalknecht, Andrea for your feedback. The reason for using SQL
Server Spatial wrier was the support for bulk Insert. Our business requirement
is that in case of failed process, the original data remains intact. ESRI
Geodatabase writer has this property “Features to write per transaction” and I
set it to a very high value. I came across a scenario where there was an error
with the workspace and rollback didn’t happen. I noticed that this writer writes
record by record.

 


 



I would prefer to use ESRI geodatabase writer if I can get the
rollback functionality to work. I am curious if anyone else had success with
rollback using ESRI geodatabase writer. Thanks jay

 

 

 

 

 

What transaction-type do you use? I think it should be Transactions. See a screenshot from the help:

 

 


Reply