Why is model builder showing a local variable that is not existent when exported to Python

947
2
09-12-2014 02:21 PM
GeoffreyWest
Occasional Contributor III

I have a Geoprocessing Model that I am attempting to publish as a GP Service.  I have changed all of my parameters from local FGBDs to an enterprise connection so that my data can be registered with the server, however when doing so, it appears as if one local variable in my python script still remains.  Could the processing of intermediate data be the cause of this? Below is a screen shot of my model.

model.png

Here the model exported as a python script, ultimately, I would like to remove the SOData.gdb local variable.

# Local variables:

SOData_gdb__3_ = "C:\\Special Collections\\SOData.gdb"

SCCat_Select__8_ = Rep_SCData_DBO_so_sc_repilica_fc

SCData_DBO_SO_SC__15_ = SCCat_Select__8_

Tags (2)
0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

did you see if it is referenced further on down the script? or is its existence only there?  You could try commenting out the line " ie use # " before you delete anything

0 Kudos
GeoffreyWest
Occasional Contributor III

It's not used at all anywhere else in the model, even if I do comment out the line I still need to remove this parameter in my model.

0 Kudos