GithubHelp home page GithubHelp logo

Comments (4)

MikeMillerGIS avatar MikeMillerGIS commented on June 20, 2024

Davin,
What error are you getting? We have used ArcRest to upload thousands of parcels in the community parcel solution app. I believe the developer of that solution did chunk the uploads, but that was due to performance, not the tools failing.

from arcrest.

DShokes avatar DShokes commented on June 20, 2024

I've tried adjusting the max_chunk from 250 to 100, 2500, 9000 etc. and saw no change in the results.
I'm using the basic add features sample and get this response.

Traceback (most recent call last):
  File "C:\Python\ArcRESTmaster\samples\add_feature_from_feature_class.py", line 20, in <module>
    print fl.applyEdits(addFeatures=features)
  File "C:\Python\ArcRESTmaster\src\arcrest\agol\layer.py", line 980, in applyEdits
    proxy_url=self._proxy_url)
  File "C:\Python\ArcRESTmaster\src\arcrest\agol\base.py", line 196, in _do_post
    result = urllib2.urlopen(request).read()
  File "C:\Python27\ArcGIS10.2\lib\urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\ArcGIS10.2\lib\urllib2.py", line 410, in open
    response = meth(req, response)
  File "C:\Python27\ArcGIS10.2\lib\urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\ArcGIS10.2\lib\urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "C:\Python27\ArcGIS10.2\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "C:\Python27\ArcGIS10.2\lib\urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error

Some features were added each time I tried running. However, the print call does not state which features were successfully added before the error. Changing addFeatures to applyEdits(addFeatures) produced the same issue.

Thanks

from arcrest.

achapkowski avatar achapkowski commented on June 20, 2024

Is this still an issue?

from arcrest.

DShokes avatar DShokes commented on June 20, 2024

No this issue was resolved once I removed version 1 from the python environment.

from arcrest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.