I am trying to pull data from a feature service into a feature set, and the following was working perfect:

fsURL = baseURL + query
fs = arcpy.FeatureSet()

but all of a sudden, this same, unchanged code now throws the error:

"RuntimeError: RecordSetObject: Cannot open table for load"

The feature service is in a secure rest end point, that I have working by generating a secure token, and when I print out the URL I want to hit, I can see the data I need, but for some reason now get that error. I had this working previously, and as far as I know no code in this area, no changes to the database, and no software has changed to cause this to now not work.

I've researched this, and found other similar issues, with either no resolution, or discovered a software version change, which is not the case here.


Not sure if this is your case. What is in the fsURL right before it breaks? Does it work if you just plop the fsURL in a browser? There seems to be something different at 10.61 AGS server rest apis, They can no longer use > or < and you need to use between. Try something like. where = 'OBJECTID between ' + 1 + ' and ' + 999

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.