Skip to main content
Question

reading spatial data from Oracle to writing to SQL server

  • April 28, 2025
  • 1 reply
  • 38 views

fmewithvasu
Contributor

I'm using FME to write spatial data to a SQL Server database via an SDE connection, but the table is created without the spatial data. How can I ensure the spatial data is written correctly?

Error message below for refernce

 An error occurred while attempting to create the feature class 'EL.DATA'. The error number from ArcObjects is: '-2147216061'. The error message from ArcObjects is: {Table already exists [42S01:[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]

1 reply

desiree_at_safe
Safer
Forum|alt.badge.img+11

Hi ​@vasukimgis!

Given the error message, “Table already exists”, you might wanna test with a simple read/write workspace to diagnose where the issue is in writing the data. It may be a permissions issue or the table “EL.DATA” itself. 

Also, depending on the writer or transformer you’re using, you might wanna check that you have the right settings to “overwrite” or “drop and create” your table (with caution, since this will permanently delete data I would test with a sample first):

It might be worth double-checking that the geometry is defined for the destination correctly before writing to SQL Server via the SDE. Checking the SDE connection parameters, the coordinate systems, feature type definition.

I haven’t written spatial data to SQL Server myself, but if you’re able to share an sample workspace template I’m happy to help investigate further! 🙂


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings