Hi,
When trying to change the version of a BRANCH service feature class in ArcGIS Pro 2.9.8 with following line of code : arcpy.management.ChangeVersion(in_features=Canalisations_GAZ, version_type="BRANCH", version_name="sde.DEFAULT", date="", include_participating="INCLUDE"), it works well when executed from the Python window or using Change Version (Data Management)—ArcGIS Pro | Documentation in the Geoprocessing window.
But when trying to execute the same line of code in a Python script in a toolbox, no error is triggered, but the Feature Service Feature Class is not changed to the sde.DEFAULT version.
Is there any limitation in using that line of code inside a toolbox ?
I already searched the community forum and this behavior is mentioned in some posts, but without any solution.
The purpose is to have the possibility to change the version of BRANCH service feature classes from one version to another (DEFAULT or not).
Any clue on this issue ?
Regards,
Hervé