POST
|
@EarlMedina Here's the traceback. This is being run on an account with Administrator permissions. I've grabbed the log output as well and put it below: Traceback (most recent call last):
File "x:\wfs2age\scratch2.py", line 30, in <module>
pub_data.spatial.to_featurelayer('publish_test', folder='testings')
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\features\geo\_accessor.py", line 2912, in to_featurelayer
result = content.import_data(
^^^^^^^^^^^^^^^^^^^^
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py", line 8591, in import_data
return _cm_helper.import_as_item(self._gis, df, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_content_manager\_import_data.py", line 247, in import_as_item
file_item, new_item = _create_file_item(gis, df, file_type, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_content_manager\_import_data.py", line 147, in _create_file_item
new_item = file_item.publish(
^^^^^^^^^^^^^^^^^^
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py", line 16279, in publish
return job.result()
^^^^^^^^^^^^
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\concurrent\futures\_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\concurrent\futures\_base.py", line 401, in __get_result
raise self._exception
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py", line 16732, in _publish
serviceitem_id = self._check_publish_status(ret, folder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py", line 17092, in _check_publish_status
raise Exception("Job failed.")
Exception: Job failed. Here's the log from the portal admin side (it's Enterprise 10.9.1): Failed to publish item 'https://agdf1051.gisa.public/arcgis1/rest/services/Hosted/a2a63a/FeatureServer' (id:03497fbee93f44128082720e68cdc031). ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds. This version of the Geodatabase client is incompatible with the dataset and cannot open it. [a7d6ffa8] This version of the Geodatabase client is incompatible with the dataset and cannot open it. [dataset name: a7d6ffa8] Operation on file failed. Unknown error. Failed to execute (Publish Portal Service). Failed.. Job ID: 'j73c70356881c4a9fb21c7357f58e7eae'
... View more
05-21-2024
02:57 PM
|
0
|
0
|
455
|
POST
|
@EarlMedina So, here's what I'm doing, with the default ArcGIS Pro python environment: from arcgis.features import FeatureSet, GeoAccessor
from arcgis.gis import GIS
import arcpy
import os
import pandas as pd
# Connect
conn = {
"username": "myusername",
"password": "mypassword",
"portal_url": "https://my-enterprise-instance/portal"}
gis = GIS(conn["portal_url"], conn["username"], conn["password"], verify_cert=False) # This works
# Data
pub_fgdb = 'Y:/ArcGIS/Projects/Upload_Test/Upload_Test.gdb'
pub_lyr = os.path.join(pub_fgdb, 'topublish')
pub_data = pd.DataFrame.spatial.from_featureclass(pub_lyr) # works
pub_data.spatial.to_featurelayer('publish_test', folder='testings') # Yields "Job failed." @
... View more
05-21-2024
01:03 PM
|
1
|
1
|
471
|
POST
|
Sorry for the basic question, but it seems like just about all of the publication examples on the ArcGIS API for Python docs presume that content is going to be published from a flat file sitting on a drive somewhere (e.g., here's a literal some-name.geojson file with 4 points from my camping trip that I want to publish to AGOL). The dynamic publishing workflows documented (e.g., spatial data frame to hosted feature layer) presume that Notebook Server is part of the equation. So, when I run a script meant to simply push a spatial data frame of a few points into ArcGIS Enterprise from VS Code or command line, it just throws up and says "Exception: Job failed." (I guess because it's not connecting with any authenticated session). So my question is: how do I go from dynamic, non-file based spatial content in memory (GeoJSON or spatial data frame) to a newly published hosted feature class on ArcGIS Enterprise, without using Notebook Server and without writing out a bunch of intermediate files?
... View more
05-21-2024
12:32 PM
|
1
|
4
|
505
|
IDEA
|
@NDGraphics Awesome! Thanks for the update! Can't wait for this to drop
... View more
04-01-2024
10:19 AM
|
0
|
0
|
387
|
IDEA
|
@RChin @RodneyChin Sorry for the incredibly late response, for some reason I didn't get an email on this and only caught up that you responded by chance. I would call your solution "partially implemented." No offense but that is a Bad Workflow. I cannot simply walk into my enterprise which is controlled by enterprise/configuration management boards and tell them to "turn on projected filesystem." Similarly I question the architectural wisdom of binding 3D outputs to the Windows 3D folder when nothing else in ArcGIS Pro has such a requirement. So I request that this be opened up again, as my Idea has to do with a specific functionality added to arcpy, not the ArcGIS Pro GUI. @NDGraphics Who is "we"? Does this feature carry a cost and a separate license? Will it be yet another acquisition action? We operate on systems that do not touch internet, so phoning home and so on for feature activation is not a realistic solution (which is why we wanted such a straightforward function just baked into 3D Analyst).
... View more
04-01-2024
05:33 AM
|
0
|
0
|
1259
|
IDEA
|
@NDGraphics if you need anyone to test that let me know! 🙂
... View more
04-01-2024
05:24 AM
|
0
|
0
|
737
|
IDEA
|
UPDATE: @clt_cabq So, no this is not what we're looking for. Our ArcGIS Servers are federated in an Enterprise setup and no such controls exist for that. We have put in a feature request with Esri but I will leave this idea open just in case other users are interested in giving it a thumbs up.
... View more
03-21-2024
05:29 AM
|
0
|
0
|
479
|
IDEA
|
@clt_cabq Interesting, thanks for the tip! I will take a closer look at that. We do not set up Enterprise accounts (everything is via LDAP) but as long as we can demonstrate that there is some auth check (e.g., is there a session token) we should be able to open it up to all users.
... View more
03-06-2024
06:40 AM
|
0
|
0
|
595
|
IDEA
|
The current functionality: REST services directory is either on (publicly available) or off (disabled) in an ArcGIS Enterprise setup with federated ArcGIS Servers. The problem: We are in an organization where we have to disable access to any resources that do not require authentication. This means shutting off the REST services directory(ies) in an ArcGIS Enterprise. However we have developers and data scientists who would benefit from access to this directory. The solution: place the REST services directory(ies) that are part of an Enterprise behind the same authentication regime set in the Portal. If this is already possible to configure, please let me know - as I am operating under the assumption that this is not currently possible.
... View more
03-06-2024
05:47 AM
|
7
|
3
|
679
|
IDEA
|
@KiwiBird97 Not sure what to tell you - I am on a MBP using Parallels (Windows 11 Arm64), and I think Rosetta (Apple's underlying Arm64/x64 compatibility layer) is basically emulating everything. However, if you have an Arm64 system that does not support any x64 emulation, I guess it makes sense that the x64 .NET runtimes would not be loaded or run properly.
... View more
03-05-2024
01:40 PM
|
0
|
0
|
2151
|
POST
|
I'm a newbie to the Portal API for Python, and I am just trying to figure out how to go from geojson loaded into memory (say, a WFS response object) to a feature layer on an ArcGIS Enterprise portal. I'm happy to read documentation and follow examples, but everything I've seen involves messing around with CSVs and pandas (which then requires cleaning up field headings etc). Additionally all the questions seem to presuppose you have a geojson file sitting around, but what about when you want to avoid the IO overhead? Seems silly to write the content out to a file, only to read it right back in again. Is there a more-or-less direct path to go from the data in the buffer, in json format, right to a new feature layer?
... View more
03-04-2024
09:12 AM
|
1
|
1
|
743
|
POST
|
Hi Andrew, this service is supposed to load around Melbourne, Australia. It does seem to zoom to the right extents, it's just that no geometry draws.
... View more
01-02-2024
10:33 AM
|
0
|
2
|
969
|
POST
|
I have a valid version 1.0 3D Tiles service that is not loading in ArcGIS Pro 3.2.1 Here is the service endpoint: https://vic.digitaltwin.terria.io/api/v0/data/038d699f-9167-4dbc-9920-cb9b2c24786c/v2/tileset.json It is a valid 1.0 version 3D Tile service. According to Esri's public release on the topic, "With the latest update in ArcGIS Pro 3.2, you can incorporate 3D tiles layers from 3D tiles datasets version 1.x. Your data can be both local sources and public web services." (Emphasis mine) Verification of functionality (QGIS add scene connection): Result in ArcGIS Pro 3.2.1: What I've tried: Adding as global scene Adding as local scene In local scene, forcing projection by setting both horizontal/vertical scene projections to the layer itself No errors are offered; however, the service does not render. Ideally the service should render, or throw an error if it cannot render properly. Ideas?
... View more
01-02-2024
07:44 AM
|
0
|
4
|
1049
|
POST
|
Thanks! So wait, you're saying I have to have users look for the service endpoint, paste it in, and then hardcode the layer name in the arcpy.Parameter() object? They can't just select it as a pulldown when it's already loaded in a Pro map project?
... View more
10-04-2023
11:53 AM
|
0
|
0
|
460
|
Title | Kudos | Posted |
---|---|---|
1 | 03-29-2022 12:18 PM | |
1 | 05-21-2024 12:32 PM | |
1 | 05-21-2024 01:03 PM | |
1 | 03-04-2024 09:12 AM | |
7 | 03-06-2024 05:47 AM |