Hi,
I'm calling arcpy.StageService_server() in a script, but I keep getting this error. It appears to be related to my calls to arcpy.mapping.CreateMapSDDraft(). I'm able to create the sddraft with that function, but I can't open it in ArcMap. I'm able to create an sddraft from my map document in ArcMap, so it's definitely not the map document itself.
All of my arguments to arcpy.mapping.CreateMapSDDraft() look fine, as far as I can tell:
analysis = arcpy.mapping.CreateMapSDDraft(
map_document=map_document_file_path,
out_sddraft=sddraft_file_path,
service_name=formatted_service_name,
server_type=sddraft_config.server_type,
folder_name=sddraft_config.folder_name,
)
so I'm not sure what the issue is.
Solved! Go to Solution.
Re-creating the file geodatabase fixed it. It's likely permissions issues when our VM was re-imaged.
Re-creating the file geodatabase fixed it. It's likely permissions issues when our VM was re-imaged.