POST
|
I've been out of the ArcGIS arena for a while now and upon my return, I am wondering if file paths can now have spaces in them without causing problems for geoprocessing tools? A lot of our data is kept in Dropbox or OneDrive for our organization and enterprise installations of those tools always have spaces in the folder name, like "Dropbox (OrgName)" or "OneDrive - OrgName". Is ArcGIS Pro able to handle things like this now or do I need to move everything out of these folders?
... View more
02-27-2024
06:48 AM
|
1
|
4
|
696
|
POST
|
In this scenario - if not sde, who would have the db_owner role? The non-domain account you create to own the data?
... View more
01-17-2024
08:13 AM
|
0
|
1
|
830
|
POST
|
I am doing a lot of reading about how to properly set up and configure user accounts in an SQL Server instance of an enterprise geodatabase, namely these three documents: https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-sql-server/user-accounts-groups.htm https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-sql-server/add-users-sqlserver.htm https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-sql-server/privileges-sqlserver.htm We will be implementing an SDE-schema geodatabase. The SDE user will only be responsible for system tables and updates (and have the db_owner role). They will not be loading data and I'm trying to figure out how to create a "headless" user for that purpose. That way, if someone leaves our organization, the data sitting in our database isn't directly tied to that person's login. I believe this is possible, but I'm struggling to wrap my head around how SQL Server logins vs database users (and schemas) work. This is what I'm envisioning. I would like a user on the database that can create and "own" all the data, this is called "DataOwner". There are three people who have their own logins, Billy, Bob, and Joe. I think those logins should be mapped to DataOwner so whenever they login, if they create a new feature class, it ends up being named MyGISData.DataOwner.FeatureClassX. If I included making different roles for creation, editing, and viewing data, the diagram would end up looking more like this. You could have any number of SQL server logins mapped to a database user which is mapped to a role that has a particular set of privileges: Is this possible? Is it advisable? If it's not, how do you get ahold of the data owned by someone else when that person leaves the organization? Or are people just creating logins and users like below and just letting multiple people use the same credentials (doesn't seem like a good security practice)? I think most people set up their database something like this, but then you wind up with ownership of feature classes being tied to specific person which I'm trying to avoid:
... View more
12-07-2023
06:46 AM
|
1
|
5
|
1107
|
POST
|
I'm trying to figure out if this is possible, and if so, is it advisable or is it better to have two separate web servers, one for dev and one for prod? I've been reading Install Multiple ArcGIS Web Adaptors and it sounds like one website can have multiple web adaptors, but the thing that isn't clear to me is that if each web adaptor can be pointing to different server sites or can multiple web adaptors only be used if all those web adaptors are pointing to the same server site? This is what I am thinking of doing, but can't figure out if it's possible (and advisable):
... View more
12-04-2023
09:21 AM
|
0
|
3
|
655
|
POST
|
Nope, I never was able to solve this. Any chance you’re using a mixture of local and domain accounts for using your ArcGIS Pro installation and ArcGIS Enterprise services? I have since left the position where I had this problem, but I worked remotely, had to use a local account on my computer and go through a VPN where I did stuff in Pro. I then tried to publish services where our server was run by a domain account and I think this caused a lot of weird issues for me. ESRI tech support claimed my mixed account types was the problem when I found I was unable to register folders, so I wonder if my mixture of account types played into this problem too. If your publishing attempt is failing the exact same way mine was (the debug log says the same as what I denoted), after the job fails, maybe try running the Manage Map Server Cache Tiles tool directly and see what happens? That’s the tool the debug log says is failing during publishing and it is a tool that can be run by itself in Pro. I can’t remember if I tried that.
... View more
08-16-2023
05:11 PM
|
0
|
0
|
756
|
POST
|
It does match. In my config I use https://www.mydomain.com/* So that's all the referrer in the request header needs to match, correct? The asterix at the end should take care of the rest.
... View more
11-22-2022
08:15 AM
|
0
|
1
|
1245
|
POST
|
My website used to work, but now it no longer does. I have a custom web map set up with a proxy and I recently tried to publish it after moving our website to a new server and now it's giving me this error message: {"error": {"code": 403,"message":"403 - Forbidden: Access is denied.","details":["message":"Current proxy configuration settings do not allow requests which do not include a referer header."]}} I have my proxy code set up like this: In the javascript web map file: //Set up the proxy to forward requests for data/geoprocessing tools
urlUtils.addProxyRule({
urlPrefix: "https://www.mydomain.com",
//For production environment (publishing)
proxyUrl: "/myAppName/proxy/proxy.ashx"
}); In my proxy.config file: <ProxyConfig allowedReferers="https://www.mydomain.com/*"
mustMatch="true"
logFile="proxyLog.txt"
logLevel="Warning">
<serverUrls>
<serverUrl url="https://www.mydomain.com/webadaptor/rest/services/HabitatManagement/HabitatManagement/GPServer"
username="username"
password="password"
matchAll="true"/>
<serverUrl url="https://www.mydomain.com/webadaptor/rest/services/HabitatMonitoring/HabitatData/MapServer"
username="username"
password="password"
matchAll="true" />
<serverUrl url="https://www.mydomain.com/webadaptor/rest/services/HabitatMonitoring/HabitatClassification/GPServer"
username="username"
password="password"
matchAll="true" />
<serverUrl url="https://www.mydomain.com/webadaptor/rest/services/PrintHabitatMaps/PrintHabitatMap/GPServer"
username="username"
password="password"
matchAll="true" />
<serverUrl url="https://www.mydomain.com/webadaptor/rest/services/ShipData/ShipData/GPServer"
username="username"
password="password"
matchAll="true" />
<serverUrl url="https://www.mydomain.com/webadaptor/rest/services/Collector/FieldMapsHbData/GPServer"
username="username"
password="password"
matchAll="true" />
</serverUrls>
</ProxyConfig> This is the request header for one of the map services trying to be reached: This is the error info: The proxyLog.txt file gives me this error. I'm don't really know anything about networks, but I don't understand why it says I have a null referer yet the request header has a value in referer??: The Proxy is being called by a null referer. Access denied.
... View more
11-22-2022
07:05 AM
|
0
|
3
|
1275
|
POST
|
I have recently published a geoprocessing service and there is a path it replaces with the correct location on the server. I use a registered folder for my data and the publisher and server locations of that folder are different; this the path the g_ESRI_variable is attempting to replace. This is what the registered folder is set up as: In my script, I have hardcoded the path needed to access files, this is the publisher folder path: workspace = r'E:\ArcGIS_RegisteredFolders_DO_NOT_DELETE\HabitatMapPrint' The g_ESRI_variable being created and used to replace the above value for the workspace variable is this: g_ESRI_variable_4 = 'D:\\RegisteredFolders_DO_NOT_DELETE\\HabitatMapPrint't' Note that it is adding t' to the end. I have no clue why, but it is causing an invalid syntax error if I try to run the geoprocessing tool from the server: These are the settings when I overwrite the service: I have also deleted the service and attempted to publish brand new, it doesn't make a difference.
... View more
10-11-2022
01:51 PM
|
1
|
0
|
435
|
POST
|
ESRI doesn't make it obvious in their documentation (yet) but there are special characters that ArcGIS picks up on and interprets as "data"... in this case it is the '<' character and I also used a placeholder for the '/' character just in case in the end FNT tag ('</FNT>'). Once I used placeholders for these characters, I was able to publish my script successfully. The ASCII character code for '<' is 60, so in the script you replace '<' with chr(60). Python has a built-in function called chr() that can interpret this to the correct symbol. I then also used the replace() function to use a placeholder character instead of '/' in my terminating FNT tag. The final code looks like this: titleItem.text = chr(60) + 'FNT name="Arial" size="' + str(fontSize) + '">' + newTitle + chr(60) + 'xFNT>'.replace('x','/')
... View more
10-11-2022
01:23 PM
|
0
|
0
|
805
|
POST
|
I have an older script where I set the font of some text on my map layout: titleItem.text = '<FNT name="Arial" size="' + str(fontSize) + '">' + newTitle + '</FNT>' The code runs fine, all looks good. Now I want to publish it to my server to use as a geoprocessing tool for printing semi-customized maps. I get an error when publishing saying " Data: <FNT name="Arial" size=", used by Script PrintHabitatMap cannot be copied to the server" I don't know how to circumvent this error and my searches have revealed nothing about changing the font of dynamic text in a map document. I was able to publish this service back when I was using an earlier version of Server (10.7 I think) and publishing with ArcMap, but now we're on 10.9.1 and using Pro. I do not allow copying of data to my server (and I'm not going to), but that shouldn't really be the issue here considering that what it is considering to be data isn't actually data.
... View more
10-11-2022
08:25 AM
|
0
|
1
|
820
|
POST
|
Turns out it was a VPN/IP address issue. I work remotely and when I was logging into my work account to access my server, I have to go through our VPN. This makes the IP address moot, so when I was using the IP address as the "Publisher Folder Hostname", ArcGIS couldn't really resolve that. When I switched to using the device name (aka computer name) as the publisher folder hostname, I was able to publish my service successfully. In this case, my device name was something like "DEKSTOP-XX1234" but it could be pretty much anything. I found it by going to Settings > System > About in Windows 10. I also switched the server folder path to a local path on the server since I didn't end up using a shared network path.
... View more
09-22-2022
12:18 PM
|
1
|
0
|
525
|
POST
|
I was reading about distributed collaborations recently for a different reason and it’s helped me understand the message better I think*. I think the message we are getting about bidirectional syncing has to do with distributed collaborations and maybe this is something to ask tech support about. It might be where the confusion is coming from for us because when I think of “bidirectional syncing” I think of syncing in both directions between the mobile device and the database, but what the message is talking about is actually between “bidirectional collaborations” which I assume is in reference to distributed collaborations. If you’re not using distributed collaborations, based on the own message page’s suggestion, the message can be ignored and we don’t have to do anything. The wording of the message is poor if what they’re actually talking about with it has to do with distributed collaborations, but that’s the most sense I can make out of it. I thought I had tried to publish and bidirectionally sync my data between device and database anyway (I think I did and it worked fine) when I got this message, but I made the post so long ago I can’t remember now. I’ll have to test it in the coming weeks.
... View more
09-09-2022
10:34 AM
|
0
|
0
|
1096
|
POST
|
I didn’t end up pursuing the problem further at the time so I don’t think I came up with a solution. I do plan to get back to this issue sometime this month however, so I will follow up if I figure it out. Unfortunate to hear that not even ESRI has been able to help you though, that doesn’t bode well for me!!
... View more
09-09-2022
10:19 AM
|
0
|
0
|
1097
|
POST
|
That worked and never would have occurred to me, thank you!!
... View more
08-23-2022
12:03 PM
|
0
|
0
|
787
|
POST
|
I'm just trying to run it locally right now. I have ArcGIS Pro 3.0 and I am using Visual Studio as my IDE with the arcgispro-py3 interpreter. Full traceback: Traceback (most recent call last): File "C:\Users\NBCI\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\NBCI\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "c:\program files (x86)\microsoft visual studio\2019\enterprise\common7\ide\extensions\microsoft\python\core\debugpy\__main__.py", line 45, in <module> cli.main() File "c:\program files (x86)\microsoft visual studio\2019\enterprise\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 430, in main run() File "c:\program files (x86)\microsoft visual studio\2019\enterprise\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 267, in run_file runpy.run_path(options.target, run_name=compat.force_str("__main__")) File "C:\Users\NBCI\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py", line 268, in run_path return _run_module_code(code, init_globals, run_name, File "C:\Users\NBCI\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py", line 97, in _run_module_code _run_code(code, mod_globals, init_globals, File "C:\Users\NBCI\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "E:\NET_Projects\HabitatMapGPServices\HabitatClassificationGPService\HabitatClassification.py", line 592, in <module> with arcpy.da.UpdateCursor(svyPtFC, ['CropResidue', 'CnpyOver12', 'CnpyDecid', 'CnpyConif', 'ShrubCover', RuntimeError: 'in_table' is not a table or a featureclass
... View more
08-23-2022
11:54 AM
|
0
|
0
|
791
|
Title | Kudos | Posted |
---|---|---|
1 | 02-27-2024 06:48 AM | |
1 | 04-15-2019 09:38 AM | |
1 | 04-06-2021 10:08 AM | |
1 | 12-07-2023 06:46 AM | |
1 | 09-13-2017 09:20 AM |
Online Status |
Offline
|
Date Last Visited |
02-27-2024
10:08 PM
|