arcpy script to compare two GDBs

535
5
03-13-2019 10:56 PM
netflixdec
New Contributor

Consider two GDBs which as files such as FC, Table, Shape.

The script should be able to check and compare all the files in both the GDBs and if it finds a file with the same name it should further probe the file.

Assuming that the two gdb has an FC with same name XYZ, the script should now check and list the fields in the feature class.

same should happen with other files.

Tags (1)
0 Kudos
5 Replies
DanPatterson_Retired
MVP Esteemed Contributor

So you have looked at things like....

Table Compare—Data Management toolbox | ArcGIS Desktop 

What else have you looked at?

Do you have a workflow that you have started?

Are you using modelbuilder or do you want to go straight to python?

0 Kudos
netflixdec
New Contributor

Hello,

I am extremely new to both python and arcpy.

Yes, I have looked at this tool and have used it in a script individually. However, I am unable to get it all within one script.

So far I am using ListDatasets, ListFeatureClasses, ListFields for comparing the FC in the GDBs. But getting it to do tables and layers is daunting.

No, I am not using the model builder directly python 

0 Kudos
curtvprice
MVP Esteemed Contributor

It sounds like you know what is required. What is your question? 

0 Kudos
netflixdec
New Contributor

I am not able to come up with it in a proper way.

0 Kudos
netflixdec
New Contributor

Basically speaking i need a sample script for above task 

0 Kudos