In ERROR 000301: The workspace is of the wrong type , and https://community.esri.com/message/702068-re-work-space-wrong-type-error-000301?commentID=702068#comment-702068 the same error I'm experiencing is discussed. As in both the earlier posts I'm trying to run arcpy.ReconcileVersions_management().
My 'input_database' is set to a SDE-user connection to an egdb:
SDE_Connection = r'I:\GIS\ArcSDE\SdeUser\sde@RvecPBTEST.sde'
versionList = arcpy.ListVersions(SDE_Connection)
arcpy.ReconcileVersions_management(SDE_Connection, "ALL_VERSIONS", "PreWork", versionList,'blah','blah','blah'
I'm trying to reconcile all the versions that are spawned from an intermediate version called 'PreWork'. When I examine the contents of versionList all the versions are there, so I'm connected to the workspace.