Hello, I’ve encountered a situation I hadn’t experienced before.
I developed a Python script that uses the arcpy package. This code runs without issues in a local environment, but when I execute it in the console within the Python environment that comes preinstalled on an ArcGIS server, upon reaching the line arcpy.management.CreateFileGDB, the console closes automatically. I don’t receive any error messages or indications; it simply closes. I did this because I want to create a scheduled task in Windows to run this code periodically. The Python environment is version 3.9.18. Does anyone have any idea why this might be happening?