0

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()
fs.load(fsURL)

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.

0

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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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