"ERROR 000840 | The value is not a Relationship Class"

المشرف العام

Administrator
طاقم الإدارة
I'm stumped here. I've seen this error in other posts but not quite in the same context. I'm trying to run the arcpy.management.CreateRelationshipClass() tool in ArcGIS 10.0. Absolutely everything I've tried throws the 000840 error. I ultimately want to run the tool from a Python script, but for now I'm trying in the Python window in ArcMap. Here's my code:

import arcpyfrom arcpy import envenv.workspace = 'C:/mulleady'arcpy.management.CreateRelationshipClass('temp/SOIL_HYDROGROUP.dbf', 'temp/WUH_Soil_Statistics.dbf', 'temp/relclass', 'SIMPLE', 'forward', 'backward', 'NONE', 'ONE_TO_MANY', 'NONE', 'IL_SOIL', 'IL_SOIL')I tried \\ instead of / in the pathnames, I tried to name the directory temp.gdb instead of temp, I ran arcpy.ValidateFieldName(), I tried absolute paths, I've tried a bunch of stuff that hasn't worked.

An even stranger thing to me is, is that I'm getting the same error even when I try to run the tool from ArcToolbox > Create Relationship Class:



Any thoughts?

Edit

I created a file geodatabase and copied my two .dbf files into it. Now when I try to create a relationship class I get this error. I changed my workspace and scratch workspace to the path of the fgbd folder. What am I doing wrong now?





أكثر...
 
أعلى