I have a bunch of models from this analysis I did and I am trying to export them all as .py files. However out of about 20 models, two just export empty scripts, other than a header like:
#Required only when there are SubModel(s)
import sys
sys.path.append(r"C:\Users\Usresname\AppData\Local\Temp\ArcGISProTemp34100")
# -*- coding: utf-8 -*-
"""
Generated by ArcGIS ModelBuilder on : 2025-06-06 17:19:06
"""
Even when I have it send it to the Python window in ArcPro, I still get that. I am uploading pictures of what these two models look like. Anyone have any idea?