I have a code that a developer created that no long works for me. With a recent upgrade from 2.8.x to 2.9, the script no errors out at a line " project_service_aprx_object.save()". What I believe the code is trying to do update the source of feature layers in a map ("1_Service_Status_On"). However, when it comes to the project_service_aprx_object.save() line, it gives me the following error:
Traceback (most recent call last):
File "<string>", line 686, in <module>
File "A:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_mp.py", line 285, in save
return convertArcObjectToPythonObject(self._arc_object.save(*gp_fixargs((), True)))
OSError: G:\SDE_User_Connections\Projects\UnitedStates\US_Test01\Web_Services\Test01_Project_Services.aprx
I'm running the code in an empty APRX file so I don't even have the Test01_Project_Services.aprx open. I'm a novice at python so any I can provide more of the code if necessary.