Bulk update query feature class using Python

532
1
03-13-2018 10:40 PM
AndrewCollins3
New Contributor

Does anyone know of a way to bulk update the query of a 'Query Feature Class' using Python?  A bunch of geodatabase tables are being renamed and there are a lot of layers of Data Type: Query Feature Class referencing these tables that will have their data sources broken. I have a script that fixes these broken data sources for all our regular Feature Classes but can't find anything that will do the same as 'Change Query' button in the Layer Properties.  Not looking forward to manually updating 100s of MXDs.  Please help!

Tags (1)
0 Kudos
1 Reply
AndrewCollins3
New Contributor

Or replace these things with a regular Feature Class.  Would probably still need to read the query to resolve to the right source though.

0 Kudos