Open JHendrickson4 opened 11 months ago
It looks like it failed on a specific layer. This may be related to the subscription layers in the map for population nd such. It copied over the feature services and maps but only put the webmap and the dashboard in the folder.
CATALOG_ID = "9f82678130ef47aeb942bf87ab99a3eb" ORIGIN_TRANSFER_USER = "retail_transfer" ORIGIN_URL = "https://commteamretail.maps.arcgis.com/" ITEM_ID = "df5892d35d54475d8d523cb0dff11408" # INSERT HERE
Creating destination folder for dashboard Solutions Template - Market Explorer (Dashboard) ... Transferring Market Explorer (Map) to destination org, moving to Web Content transfer workflow ... Performing Web Content transfer for the following items: Market Explorer (Map) Item(s) cloned successfully. Updating tags ... /opt/conda/lib/python3.9/site-packages/arcgis/features/layer.py:3273: FutureWarning: Using short name for 'orient' is deprecated. Only the options: ('dict', list, 'series', 'split', 'records', 'index') will be used in a future version. Use one of the above to silence this warning. [{"attributes": row} for row in adds[cols].to_dict(orient="record")], Item Market Explorer (Map) has already been transferred, applying destination-side edits ... Participating items handled, transferring dashboard Solutions Template - Market Explorer (Dashboard) ...
ValueError Traceback (most recent call last) /tmp/ipykernel_19/3793353524.py in <cell line: 1>() ----> 1 transfer()
/tmp/ipykernel_19/2570575009.py in transfer() 255 sm_transfer(destination=destination, item=item_origin) 256 elif item_origin.type == "Dashboard": --> 257 dash_transfer(destination=destination, dash=item_origin, swizzle=True) 258 else: 259 wc_transfer(destination=destination, items=[item_origin])
/tmp/ipykernel_19/2570575009.py in dash_transfer(destination, dash, swizzle, records, logging) 129 130 if logging: --> 131 new_record = pd.DataFrame({"source_id": dash.id, 132 "destination_id": dest_dash[0].id, 133 "title": dest_dash[0].title,
/opt/conda/lib/python3.9/site-packages/pandas/core/frame.py in init(self, data, index, columns, dtype, copy) 634 elif isinstance(data, dict): 635 # GH#38939 de facto copy defaults to False only in non-dict cases --> 636 mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager) 637 elif isinstance(data, ma.MaskedArray): 638 import numpy.ma.mrecords as mrecords
/opt/conda/lib/python3.9/site-packages/pandas/core/internals/construction.py in dict_to_mgr(data, index, columns, dtype, typ, copy) 500 # TODO: can we get rid of the dt64tz special case above? 501 --> 502 return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy) 503 504
/opt/conda/lib/python3.9/site-packages/pandas/core/internals/construction.py in arrays_to_mgr(arrays, columns, index, dtype, verify_integrity, typ, consolidate) 118 # figure out the index, if necessary 119 if index is None: --> 120 index = _extract_index(arrays) 121 else: 122 index = ensure_index(index)
/opt/conda/lib/python3.9/site-packages/pandas/core/internals/construction.py in _extract_index(data) 662 663 if not indexes and not raw_lengths: --> 664 raise ValueError("If using all scalar values, you must pass an index") 665 666 elif have_series:
ValueError: If using all scalar values, you must pass an index