POST
|
hi, with Python CIM acces you can edit Layer ID in your script (Python CIM access—ArcGIS Pro | Documentation) me i use it to assign Layer ID before publish like this : import arcpy
aprx = arcpy.mp.ArcGISProject('current')
mp = aprx.listMaps('Name of the map')[0]
i = 10
for lyr in mp.listLayers():
print (lyr.name)
l_cim = lyr.getDefinition('V2')
l_cim.serviceLayerID = i
lyr.setDefinition(l_cim)
print ("new ID ---> " + str(l_cim.serviceLayerID))
i += 10
... View more
12-19-2023
11:25 PM
|
4
|
1
|
600
|
POST
|
I have resolve my error with specify active GIS. from arcgis.env import active_gis
active_gis = target_gis
... View more
11-10-2023
06:24 AM
|
0
|
0
|
285
|
POST
|
I want to clone an ArcGIS Hub from an organisation to another with Python but i have an error. I have try this : source_Hub = source_gis.hub
target_hub = target_gis.hub
sud_patri = source_Hub.sites.get(id)
target_hub.sites.clone(sud_patri) Also i just try to create un new site with : cloned_sudpatri = target_hub.sites.add(title=sud_patri.title) But I have the same error : ---------------------------------------------------------------------------
Exception Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_17328\1956000436.py in <cell line: 1>()
----> 1 cloned_sudpatri = target_hub.sites.add(title=sud_patri.title)
e:\ArcGIS\conda\envs\arcpy3_gp\lib\site-packages\arcgis\apps\hub\sites.py in add(self, title, subdomain)
1057
1058 # Register site and update its data
-> 1059 _data = self._create_and_register_site(
1060 site, subdomain, _site_data, content_group_id, collab_group_id
1061 )
e:\ArcGIS\conda\envs\arcpy3_gp\lib\site-packages\arcgis\apps\hub\sites.py in _create_and_register_site(self, site, subdomain, site_data, content_group_id, collab_group_id)
697 if self._gis._portal.is_arcgisonline:
698 # register site as an app
--> 699 _app_dict = site.register(app_type="browser", redirect_uris=[site.url])
700 client_key = _app_dict["client_id"]
701
e:\ArcGIS\conda\envs\arcpy3_gp\lib\site-packages\arcgis\gis\__init__.py in register(self, app_type, redirect_uris, http_referers, privileges)
16248 params["privileges"] = privileges
16249 url = "%soauth2/registerApp" % self._portal.resturl
> 16250 res = self._portal.con.post(url, params)
16251 self._hydrated = False
16252 self._hydrate()
...
1053
1054 def post_multipart(
Exception: Request signature does not match. The request has to be signed.
(Error Code: 400) If someone have en idea or a valid method to clone a Hub/Site, i'm interrested. Thank's
... View more
11-10-2023
02:26 AM
|
0
|
1
|
361
|
POST
|
Thanks for your answer So i will do it manually, and i hope you can fix it. Regards,
... View more
01-11-2021
11:51 PM
|
0
|
0
|
929
|
POST
|
Hi, Thank's for considering this problem. I hope you can fix it. When can i hope a solution ? Just for know if i stay on my project, and do manually, or i waiting for a fix ? Regards, Victor
... View more
01-10-2021
11:47 PM
|
0
|
4
|
936
|
POST
|
I have a problem when I duplicate a page for which I have manually configured the different screen sizes (custom mode). Once the page is duplicated, the elements are no synchronized. So to modify a text, background,...., i must be modified it on the 3 screen formats. Are there a solution for duplicate page with keep the same interaction ? Thank's you
... View more
01-07-2021
05:47 AM
|
1
|
6
|
971
|
POST
|
Thanks for your answer and for fixing the bug I hope so the next upgrade don't do same
... View more
07-07-2020
12:53 AM
|
0
|
0
|
2585
|
POST
|
I have also bugs following the update. Dimensions and positioning of the widget and content have changed. Is there a possibility for it to come back by correcting the bug ? Thank's I think too : "Overall I am super excited for the updates, however it's not very encouraging that our existing experiences needed to be altered/no longer work with the updates."
... View more
07-03-2020
01:12 AM
|
0
|
2
|
2586
|
Title | Kudos | Posted |
---|---|---|
4 | 12-19-2023 11:25 PM | |
1 | 01-07-2021 05:47 AM |
Online Status |
Offline
|
Date Last Visited |
02-23-2024
03:10 PM
|