laptop and a wrench

Bug

A model created in ModelBuilder with the Setup Store Using Tabular Data tool from the Business Analyst toolbox, when exported to a Python script, is not exported correctly. Running the exported script in a Python window or IDLE (Python GUI) is not successful and returns an error.

Last Published: August 19, 2020 ArcGIS for Desktop
Bug ID Number NIM066494
SubmittedMarch 24, 2011
Last ModifiedJune 3, 2025
Applies toArcGIS for Desktop
Version found10.0
Operating SystemWindows OS
Operating System VersionXP
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle.  If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

1. Open ArcMap.2. Turn on Business Analyst extension.3. Create a new model using ModelBuilder.4. Add sf_table.dbf to the model.5. Add SetupStoreByExistingDataSetup Store Using Tabular Data (Business Analyst) to the model.6. Connect sf_table.dbf to Setup Store Using Tabular Data, choose Store Data.7. Using the Select Data tool, double-click the Setup Store Using Tabular Data tool.8. Choose sf_table.dbf for Store Data, choose USA Geocoding Service for the Address Locator, choose Name for Store Name Field, choose StoreID for Store ID Field, and choose appropriate Output Feature Class.9. Click OK.10. Save the model in a toolbox. You may need to create a new toolbox in the folder.11. Open ArcGIS IDLE (Python GUI).12. Open new script.13. Copy and paste the following, fill in the path and name of toolbox and model name:import arcpyfrom arcpy import envarcpy.env.overwriteOutput = 1arcpy.ImportToolbox(r"<path and name of your toolbox>.tbx") arcpy.<Model NAME>() #exposed model parameters, if any, would go in the parenthesis, if hard-coded into the model. There is no need to enter it here.14. Run the script.

Steps to Reproduce

Bug ID: NIM066494

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options