Select to view content in your preferred language

Modelbuilder exports empty Python script on some models

124
0
3 weeks ago
Labels (2)
BarrettLewis1
Occasional Contributor

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?


  

 

BarrettLewis1_0-1749255960995.png

0 Kudos
0 Replies