|
POST
|
Hi! I have a SQL Server database of tables that I would like to convert to domains. The tables have an int field that I would like to use for the code field and a varchar field I would like to use for the description field. When I attempt to run the Table to Domain geoprocessing tool, only the varchar field appears in the dropdowns. If I try running the tool from the command line using, arcpy.TableToDomain_management(r'D:\Path to database\places.sde\CreditCardType',"CreditCardType_id","TypeName",r'D:\Path to fgdb\New_DB.gdb',"CreditCardDomain","Valid Credit Card Types") I get the following error: arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid. ERROR 000308: Invalid field type Failed to execute (TableToDomain). The description for that error is "The field entered must be of a specific type.". The Help doc for Table to Domain doesn't specify what field types are valid. I can use Table to Domain on an fgdb table with an int field. Is this specific to SQL Server? ETA: this appears to only be an issue when a primary key restraint is applied to the int field. Does anyone have a workaround for this? Thanks! Jill
... View more
07-10-2019
11:50 AM
|
0
|
0
|
741
|
|
POST
|
Hi Noah Sager, Thank you for taking the time to reply! I see how this would work if I were calling goTo explicitly but how can I configure the view so that it uses the custom duration when the user initiates a zoom, like by scrolling the mouse wheel or using the zoom widget? Thank you!
... View more
12-31-2018
01:34 PM
|
0
|
1
|
1257
|
|
POST
|
Hi All, I am needing to customize the zoom duration, just like in this sample - Customize zoom animation | ArcGIS API for JavaScript 3.27 I am using version 4.8 of the API and do not see a zoomDuration config property like the in 3.x version of the API. Did this property move to another object and I just haven't found it yet? Or is there another way to achieve this customization? Thanks for your help! Jill
... View more
12-31-2018
11:02 AM
|
0
|
3
|
1484
|
|
POST
|
Hi All, I have a couple of questions about the Usage operation of the Item object. I'm using version 1.5.2. This operation seems to work for all item types except for nonhosted feature layers that have been registered from ArcGIS Server. Hosted feature layers are fine. The documentation implies that this is supported ("For maps, scenes, nonhosted layers, and web apps, the view count is increased by one when you open the item page or open the item in Map Viewer.") In the example below, I registered a publicly available ArcGIS Server Feature Layer (Layer: Continental US Labels (ID: 1) ) and get the following error: Why do the "number of views" in the item details not match up with the item usage? In the example below I created a hosted feature layer, added it to a map and made an edit. This seems reflected in the "3 views" in the item details but the usage for the last 30 days is empty. Also in general, how can I view the API for older versions? Would be nice if the documentation indicated when a feature was added like some other APIs. Thank you! Jill
... View more
12-11-2018
10:05 AM
|
0
|
0
|
692
|
|
POST
|
Many thanks, Per Åke Mattias Wallin, you were correct, I was running an older version of the package and an upgrade worked. A few follow on questions that maybe you or someone else can answer? How can I view the API for older versions? Would be nice if the documentation indicated when a feature was added like some other APIs. Web maps work for me. The only item type that doesn't work is an unhosted feature layer that has been registered from ArcGIS Server. Hosted feature layers are fine. In the example below, I registered a publicly available ArcGIS Server Feature Layer (Layer: Continental US Labels (ID: 1) ) and get the following error: Why do the "number of views" in the item details not match up with the item usage? In the example below I created a hosted feature layer, added it to a map and made an edit. This seems reflected in the "3 views" in the item details but the usage for the last 30 days is empty. Thank you! Jill
... View more
12-06-2018
11:08 AM
|
0
|
0
|
1177
|
|
POST
|
Hi John, Pro 2.2.4 and yes, I have the proenv.txt in my user profile and it points to the new environment. Thanks!
... View more
12-06-2018
10:25 AM
|
0
|
0
|
2011
|
|
POST
|
I tried opening Pro as an Administrator and creating a brand new environment but that didn't seem to make a different. The Python Command Prompt bookmark runs a batch file that seems to read the default environment from a config file (proenv.txt). I would expect this config file to get updated with the path to the the current environment but that doesn't seem to be happening. Thanks!
... View more
12-06-2018
09:12 AM
|
0
|
2
|
2011
|
|
POST
|
Hi John, Yes, I've tried switching back and forth using the manage environments dialog and the command window always opens in arcgispro-py3. Thanks! Jill
... View more
12-06-2018
09:01 AM
|
0
|
0
|
2011
|
|
POST
|
Hi John, Thanks for taking the time to reply. That works! Thank you. Is there a way to make this environment the default? Each time I start the Python Command Prompt I have to activate the new environment? Jill
... View more
12-05-2018
12:02 PM
|
0
|
5
|
2011
|
|
POST
|
Hi All, I am trying to upgrade the arcgis python package but am stuck on how to use the new environment with Jupyter Notebooks. I am following the instructions here - Install and set up | ArcGIS for Developers I am able to create the new environment and get the upgraded package with no problem. The next step in the doc is "Open the Python Command Prompt: Start > All Programs > > ArcGIS > ArcGIS Pro > Python Command Prompt" but this opens the command prompt in the old environment (arcgispro-py3). Did I miss a step? I see that the Python Command Prompt reads the environment location from a config file (which is still pointing to the old environment), am I supposed to edit this? Sometimes the space in my user profile causes problems but the package manager won't let me choose where to install the new environment. Any ideas? Thanks! Jill
... View more
12-05-2018
09:56 AM
|
0
|
8
|
2177
|
|
POST
|
Hello! Can someone confirm that I'm using the Usage operation of the Item object correctly? The following works to get an item: When I try to get it's usage I get the following: This is an ArcGIS Online item and I am an administrator. Any advice? Thanks! Jill
... View more
11-27-2018
01:35 PM
|
0
|
2
|
1401
|
|
POST
|
That worked! Thank you so much! Now, when I attempt to Import this app I get the following errors in the browser console. Nothing in the log file. Do you have any advice on how to go about troubleshooting this?
... View more
10-10-2018
08:39 AM
|
0
|
1
|
1001
|
|
POST
|
Hi All, I am trying to have a Web AppBuilder user download some apps so that they can be imported by another user. This workflow is working correctly for one app but not for another. When she tries to download the offending app the UI just spins and the follow error appears several times in the console: Unhandled rejection Error: EPERM: operation not permitted, unlink 'C:\WebAppBuil
derForArcGIS\server\apps\zips\8.zip'
at Object.fs.unlinkSync (fs.js:1061:18)
at fixWinEPERMSync (C:\WebAppBuilderForArcGIS\server\node_modules\fs-extra\l
ib\remove\rimraf.js:169:13)
at Object.rimrafSync [as removeSync] (C:\WebAppBuilderForArcGIS\server\node_
modules\fs-extra\lib\remove\rimraf.js:260:26)
at findApps.then.t.send.success (C:\WebAppBuilderForArcGIS\server\rest\apps.
js:1:26068)
at tryCatcher (C:\WebAppBuilderForArcGIS\server\node_modules\bluebird\js\rel
ease\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\WebAppBuilderForArcGIS\server\node_
modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\WebAppBuilderForArcGIS\server\node_modules\blu
ebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\WebAppBuilderForArcGIS\server\node_modules\bl
uebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\WebAppBuilderForArcGIS\server\node_modules\bl
uebird\js\release\promise.js:693:18)
at Promise._fulfill (C:\WebAppBuilderForArcGIS\server\node_modules\bluebird\
js\release\promise.js:638:18)
at Promise._resolveCallback (C:\WebAppBuilderForArcGIS\server\node_modules\b
luebird\js\release\promise.js:454:14)
at Promise._settlePromiseFromHandler (C:\WebAppBuilderForArcGIS\server\node_
modules\bluebird\js\release\promise.js:524:17)
at Promise._settlePromise (C:\WebAppBuilderForArcGIS\server\node_modules\blu
ebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\WebAppBuilderForArcGIS\server\node_modules\bl
uebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\WebAppBuilderForArcGIS\server\node_modules\bl
uebird\js\release\promise.js:693:18)
at Promise._fulfill (C:\WebAppBuilderForArcGIS\server\node_modules\bluebird\
js\release\promise.js:638:18) Any suggestions on how to troubleshoot this? WAB Dev Version 2.8. Thank you much! Jill
... View more
10-09-2018
01:03 PM
|
0
|
3
|
1138
|
|
POST
|
Thank you for your replies, Karen and Thomas! The issue turned out to be that the field I was trying to update had somehow gotten set to editable = false. What was confusing to me is that , non editable fields are removed from the attributes parameter but fields that don't exist are not removed. Thanks again! Jill
... View more
11-29-2017
02:13 PM
|
1
|
0
|
1821
|
|
POST
|
Good Morning, I have the following piece of code that runs correctly on my development machine: drawToolbar.on('draw-end', lang.hitch(this, function(evt) {
drawToolbar.deactivate();
this._editToolbar.deactivate();
var fieldName = this.easementIdFieldName;
var attr = {};
attr[fieldName] = this._easementId;
var newGraphic = new Graphic(evt.geometry, null, attr);
this._easementLayer.applyEdits([newGraphic], null, null);
})); It produces an applyEdits operation with the following form data: f:json adds:[{"geometry":{"rings":[[[-17575293.21213455,2433436.9187920587],[-17575121.228820905,2433112.061421838],[-17575321.87602016,2433064.2882791585],[-17575474.750076734,2433214.773678599],[-17575293.21213455,2433436.9187920587]]],"spatialReference":{"wkid":102100,"latestWkid":3857}},"attributes":{"EasementId":"25"}}] The feature layer gets updated with the new feature, including attribute data. When I move the app to my web server without changing any code the attributes disappear from the applyEdits operation. The newGraphic variable is created correctly with the attribute parameter but it doesn't show up in the applyEdits form data: f:json adds:[{"geometry":{"rings":[[[-17579178.857595254,2454963.389069852],[-17579637.479764964,2449842.108174752],[-17580707.598160956,2452823.1522778696],[-17579178.857595254,2454963.389069852]]],"spatialReference":{"wkid":102100,"latestWkid":3857}},"attributes":{}}] The feature layer gets updated with the new feature but without the attribute. Javascript 3.2. ArcGIS Server 10.4.1. Any ideas? Many thanks! Jill
... View more
11-17-2017
09:38 AM
|
0
|
3
|
2360
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-21-2023 11:03 AM | |
| 1 | 08-22-2024 12:12 PM | |
| 1 | 06-17-2022 08:38 AM | |
| 2 | 05-23-2023 07:45 AM | |
| 1 | 01-29-2025 11:07 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-22-2025
12:28 PM
|