POST
|
Shaun - Thanks again for the suggestions. Below is If I debug that code by itself it fails because of a syntax error since unicode isn't defined. If I try to debug it with arcpy imported the code bombs at the import arcpy level If I debug any code that doesn't involve importing arcpy the process works successfully.
... View more
03-27-2023
08:55 AM
|
0
|
1
|
1975
|
POST
|
Thank you for the reply. In the past I haven't had any issue with debugging. I haven't changed any configurations and have tested with a script I know works and in the past was able to debug. Currently I am trying to test with the simplest test script possible and I still get the same error. The code I am trying currently is (also note I have tried running just the top 3 statements and it also bombs and returns the unicode error): import os import arcpy print ("hi") # Set workspace #workspace = r'Database Connections\Colter3_UWADMINGIS_PPL.sde' # new colter3 db workspace = r'Database Connections\reo-db_6000_UWADMINGIS_PPL.sde' # new reodb # Set the workspace environment arcpy.env.workspace = workspace
... View more
03-27-2023
08:19 AM
|
0
|
3
|
1979
|
POST
|
I recently began having issues using the debugger in Visual Studio Code. It has always worked in the past (and still does except with arcpy). Now every time I try to import arcpy I get a "name 'unicode' is not defined" error that is coming from _base.py. I am using python 3.9.16 64 bit interpreter and have the most current version of arcgis pro installed. I have tried to uninstall VS Code and ArcGIS Pro both and the same issue persists, but the second I comment out the import arcpy the debugger works fine (until it gets to something that needs the arcpy lib obviously). Any thoughts? I really like the VS Code IDE and would like to continue using it but am also open to similar easy to use options if anyone has any that might solve my issue.
... View more
03-23-2023
10:52 AM
|
0
|
9
|
2065
|
POST
|
Xander (or anyone with an idea) any thoughts on how I could bold portions of an Arcade Expression that are being by a for loop? Example: Species: American Kestrel Taxa: Bird Occurrence Potential: Year Round Species: Chestnut-collard Longspur Taxa: Bird Occurrence Potential: Winter Resident I have the loop working but would like to Bold the Labels so it looks like: Species: American Kestrel Taxa: Bird Occurrence Potential: Year Round Since it is all being built by via a string variable inside the loop I don't believe the example above will work, and so far I haven't had any brilliant ideas for a solution. Thoughts?
... View more
10-23-2020
09:10 AM
|
0
|
1
|
3954
|
POST
|
Yes - I believe I have the pop-up configured correctly and even created a very simple arcade expression that does work, though I could be missing something? See below:
... View more
10-22-2020
07:34 AM
|
0
|
1
|
1633
|
POST
|
Popup only shows the expression label and then no value even though the arcade expression works in the test expression window. I followed the blog about using featuresets to create a relate and add it to a popup - https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2020/06/09/show-related-data-or-tables-in-pop-ups-with-arcade-featuresets - Gee Fernando's Blog Here is my code: // Write a script to return a value to show in the pop-up. var portal = Portal("https://services.wygisc.org/portal") var speciesRelate = FeatureSetByPortalItem(portal, "6a0c8bcd1d164d99b76f162f140212f8", 0, ['Species', 'Taxa', 'Occurrence_Potential', 'BLM_Status', 'Texas_________________Status', 'Federal_Status', 'Habitat', 'Code']) // Filter related features by using a common attribute var HabCode = $feature.HabCode var codeStatement = 'Code = @HabCode' //Related features as a variable var relateData = Filter(speciesRelate, codeStatement) //build popupString by iterating through all related features var popupString = '' for (var f in relateData){ popupString += "Species: " + Text(f.Species) + TextFormatting.NewLine + "Taxa: " + f.Taxa + TextFormatting.NewLine + "Occurrence Potential: " + f.Occurrence_Potential + TextFormatting.NewLine + TextFormatting.NewLine } Thoughts? Thanks, Shawn
... View more
10-21-2020
02:22 PM
|
0
|
3
|
1699
|
POST
|
Anyone have thoughts on how I can limit specific portal services based on the URL referrer when our IT department uses an F5 and is telling me it works if I use x-forwarded-for field but I don't want to setup a reverse proxy. I just want to be able to limit traffic to specific machines (i.e. between our different arcgis servers or local machines for testing)
... View more
05-23-2017
09:35 AM
|
0
|
0
|
469
|
POST
|
I am also having the same Error performing submit job operation for Export Tiles on Export Cache. We have a need to collect data today. Any chance a solution is forth coming ASAP?
... View more
04-21-2016
08:06 AM
|
0
|
0
|
703
|
POST
|
Tracy, Do you have a full working example of this that you would be willing to share?
... View more
04-13-2015
12:53 PM
|
0
|
3
|
930
|
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|