arc.write error

622
2
05-04-2022 06:17 AM
Ed_
by MVP Regular Contributor
MVP Regular Contributor

Good day all,

I am getting the following error while writing a dataframe to a GDB. The dataframe imported is feature class from a GDB brought in via the `sf` package. After some data manipulation I am trying to write the dataframe back into another GDB.

How can I fix this?

Error

 

 

Error in .call_proxy("arc_write", path, pairlist(data = data, coords = coords,  : 
  insert row failed

Code

 

 

library(sf)
library(arcgisbinding)

arc.write("path/GDB.gdb/Feature_Class_Name", data = df)
0 Kudos
2 Replies
STARKE
by
New Contributor

I've ran into similar issues with arc.write after modifying the sf object in R and was able to fix it using the sf::st_make_valid command. Not sure what the issue was or why it fixed it but it helped me out a few times now. I've also had to use st_cast to ensure it was the correct geometry type that the gdb was expecting (again not sure why that would be an issue...)

0 Kudos
Explorador
New Contributor II

I have the same issue.  I updated my R to 4.2.1 and then updated all my R Packages.  Let me know if it helps.

0 Kudos