How to check if a spatial SDE view is empty

270
1
12-29-2023 06:10 AM
JoseSanchez
Occasional Contributor III

Good morning,

When a spatial SDE view in SQL Server is empty, it returns an error message of not being recognized, if we try to copy, append or run a record count.

Is there a way to check if an SDE view is empty in Python? 

Thanks

 

 

0 Kudos
1 Reply
AlfredBaldenweck
MVP Regular Contributor

Weeird.

I just tested (Made a view where OBJECTID <0 through Pro) and ran arcpy.management.GetCount() and it turned out fine?

Is the view registered?

0 Kudos