Skip to main content
Question

Copy data from ESRI File Geodatabase to SQL

  • Mar 21, 2024 9:38 AM UTC
  • 5 replies
  • 416 views

chris_acc
Contributor
Forum|alt.badge.img+5

Hello, I am attempting to copy data from an ESRI FileGDB to a Feature Class in a SQL DB but no data appears to be copying.

I have attached an example of a record from the log.  I have pasted “etc etc.” into it to shorten it as it is very long otherwise.

I also get this error-

Microsoft SQL Server Spatial Writer: Could not commit row locally. Provider error 'Description: Unspecified error'. Try turning off 'Bulk Insert'

Hopefully this helps you troubleshoot my issue

Thankyou in advance

5 replies

becchr
Influencer
Forum|alt.badge.img+35
  • Influencer
  • Mar 21, 2024 9:50 AM UTC

have you checked this post?

 

It’s an old one but about the same issue, I guess there’s an issue with the data itself? Data types, constraints, ... 


david_r
Celebrity
  • Mar 21, 2024 10:38 AM UTC

I could be a problem with a table constraint. Turn off bulk inserts on the writer and you’ll get a more precise error message.


chris_acc
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • Mar 21, 2024 10:41 AM UTC

Hi @david_r , how do I turn off bulk inserts please?


david_r
Celebrity
  • Mar 21, 2024 11:02 AM UTC

chris_acc
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • Mar 21, 2024 12:54 PM UTC

I removed the existing Feature Class from the SQL DB then copied in the Feature Class from the FileGDB in order to preserve the field structure as much as possible.

Limited success in that the data can copy but it stops writing at 1,000 records and there are no errors.

Switching the Bulk insert parameter to No has made no difference.