laptop and a wrench

漏洞

Calling the Setup Store Using Tabular Data tool in a Python script is not successful and results in errors.

上次发布: August 19, 2020 ArcGIS for Desktop
漏洞 ID 编号 NIM071424
已提交August 5, 2011
上次修改时间June 5, 2024
适用范围ArcGIS for Desktop
找到的版本10.0
操作系统Windows OS
操作系统版本XP
状态Will Not Be Addressed

附加信息

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.

解决办法

Create and save a model that implements the Setup Store Using Tabular Data tool and then call that model in a script. To create the script and model that it calls, use the following steps. 1. Open ArcMap.2. Turn on Business Analyst extension.3. Create a new model using ModelBuilder.4. Add sf_stores.dbf (BA Tutorial Data) to the model.5. Add SetupStoreByExistingDataSetup Store Using Tabular Data (Business Analyst) to the model.6. Connect sf_stores.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_stores.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. A new toolbox may need to be created 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.

重现步骤

漏洞 ID: NIM071424

软件:

  • ArcGIS for Desktop

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项