ArcGIS Notebook Online Export to My Content

306
0
05-07-2022 12:53 PM
CityExplorer
New Contributor

I am creating an ArcGIS Notebook Online for the first time to run a scheduled workflow for weather warnings in specific sites. The issue that I am having is exporting the workflow data to ArcGIS Online's Content to be used in a dashboard.

I didn't find any documentation about it. Do someone knows how to do it correctly?

Thank you

CICWeather_Export = features.manage_data.extract_data(input_layers=[CICWeather],
extent=CICWeather,
clip=True,
data_format='ShapeFile',
output_name='/arcgis/home/CICWeather_Extract')

AlexisSoto_0-1651953028594.png

Full Error Output:

---------------------------------------------------------------------------
JSONDecodeError                           Traceback (most recent call last)
/tmp/ipykernel_40/3106530756.py in <module>
      3                              clip=True,
      4                              data_format='ShapeFile',
----> 5                              output_name='/arcgis/home/CICWeather_Extract')

/opt/conda/lib/python3.7/site-packages/arcgis/features/manage_data.py in extract_data(input_layers, extent, clip, data_format, output_name, gis, estimate, future)
    342         fn=gis._tools.featureanalysis._tbx.extract_data, **kwargs
    343     )
--> 344     return gis._tools.featureanalysis.extract_data(**params)
    345 
    346 

/opt/conda/lib/python3.7/site-packages/arcgis/_impl/tools.py in extract_data(self, input_layers, extent, clip, data_format, output_name, context, estimate, future)
   2227             context=context,
   2228             gis=self._gis,
-> 2229             future=True,
   2230         )
   2231         gpjob._is_fa = True

<string> in extract_data(input_layers, extent, clip, data_format, output_name, context, gis, future)

/opt/conda/lib/python3.7/site-packages/arcgis/geoprocessing/_support.py in _execute_gp_tool(gis, task_name, params, param_db, return_values, use_async, url, webtool, add_token, return_messages, future)
    448                 job_info = gptool._con.post(submit_url, gp_params)
    449         else:
--> 450             job_info = gptool._con.post(submit_url, gp_params)
    451         job_id = job_info["jobId"]
    452         if future:

/opt/conda/lib/python3.7/site-packages/arcgis/gis/_impl/_con/_connection.py in post(self, path, params, files, **kwargs)
   1077             file_name=file_name,
   1078             try_json=try_json,
-> 1079             force_bytes=kwargs.pop("force_bytes", False),
   1080         )
   1081 

/opt/conda/lib/python3.7/site-packages/arcgis/gis/_impl/_con/_connection.py in _handle_response(self, resp, file_name, out_path, try_json, force_bytes, ignore_error_key)
    608             else:
    609                 try:
--> 610                     data = resp.json()
    611                 except JSONDecodeError:
    612                     if resp.text:

/opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs)
    908                     # used.
    909                     pass
--> 910         return complexjson.loads(self.text, **kwargs)
    911 
    912     @property

/opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw)
    523             parse_constant is None and object_pairs_hook is None
    524             and not use_decimal and not kw):
--> 525         return _default_decoder.decode(s)
    526     if cls is None:
    527         cls = JSONDecoder

/opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3)
    368         if _PY3 and isinstance(s, bytes):
    369             s = str(s, self.encoding)
--> 370         obj, end = self.raw_decode(s)
    371         end = _w(s, end).end()
    372         if end != len(s):

/opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3)
    398             elif ord0 == 0xef and s[idx:idx + 3] == '\xef\xbb\xbf':
    399                 idx += 3
--> 400         return self.scan_once(s, idx=_w(s, idx).end())

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

 

0 Kudos
0 Replies