error : ConvertShapefileToFeatureClass()

511
2
11-16-2011 11:14 PM
Wan_NurAkmal
New Contributor
i tried this function to convert shapefiles to feature class.

unfortunately, this error occured . the 'melaka.gdb' is a empty file geodatabase. from my understanding, the error happens when the function try to open the melaka.gdb file. i have no idea why and how to fix this.

refer image in the attachment.

can someone help me on this?
0 Kudos
2 Replies
DuncanHornby
MVP Notable Contributor
Looking at your code it looks like you are not giving the full path to your file geodatabase.  You set the string targetworkspacepath to simply "melaka.gdb" but where is it? Is it c:\temp or c:\gis\db? I think you need to provide the full path something like c:\temp\melaka.gdb

Duncan
0 Kudos
Wan_NurAkmal
New Contributor
tq Duncan 😄

it works.
0 Kudos