Skip to main content
Question

ESRI ArcGIS Server Feature Service reader won't read feature type. Error - ArcGIS Feature Service Reader: Encountered an unexpected error. The error code from the server was '500' and the message was: 'Error performing query operation'. Details: ''

  • January 18, 2022
  • 8 replies
  • 1134 views

edwibberley
Contributor
Forum|alt.badge.img

Hi,

I have a workspace using an ESRI ArcGIS Server Feature Service reader with a token authentication. I am trying to read 3 feature types from the map server and 2 of them read fine but one comes back with the error:

 

"ArcGIS Feature Service Reader: Encountered an unexpected error. The error code from the server was '500' and the message was: 'Error performing query operation'. Details: ''"

 

Does anyone have any ideas of why only one of the feature types would not work? The three feature services should all have the same naming standards and schema so there is no reason why they should behave differently that I can see.

 

Are there any suggestions for how I might be able to find the source of this issue?

 

Any help would be greatly appreciated!

 

Thanks.

 

 

 

8 replies

danminneyatsaf
Safer
Forum|alt.badge.img+12

Hi @edwibberley​ a 500 error is a generic error so that doesn't tell us much about what's going wrong here. However, it could be that this is caused by the server having trouble handling the size of the request. I recommend reducing the number of Features Per Request parameter and see if that helps.


edwibberley
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • January 20, 2022

Hi @danminneyatsaf​, thanks for the prompt response. I tried that and it didn't fix the error. Do you think it is likely to be an issue with the layer I an trying to read from?


danminneyatsaf
Safer
Forum|alt.badge.img+12
edwibberley wrote:

Hi @danminneyatsaf​, thanks for the prompt response. I tried that and it didn't fix the error. Do you think it is likely to be an issue with the layer I an trying to read from?

@edwibberley​ based on the fact that you're able to read two of the other feature services, I'm thinking it could be an issue with the layer you're trying to read from. I'd be interested in taking a look at the ArcGIS Feature Service you're trying to access. If you're not comfortable sharing the feature service here, then I recommend opening a support case and we can follow up with you there.


sam.delore
Contributor
Forum|alt.badge.img+3
  • Contributor
  • May 20, 2024

Hi @edwibberley ,

 

Did you ever get a resolution to this issue? I’m having the same issue. The workspace reads every feature of the layer then before it finishes it returns

“ArcGIS Portal Feature Service Reader: Encountered an unexpected error. The error code from the server was '500' and the message was: 'Error performing query operation'. Details: '

The only point of interest on this service is that it’s a read-only feature service with no version management


sam.delore
Contributor
Forum|alt.badge.img+3
  • Contributor
  • May 20, 2024

For anyone else that runs into this…

 

In my case it was something weird happening with the HA config of our ArcGIS servers, after a day it stabilized, and the feature service now reads without error.


laxmi_2590
Contributor
Forum|alt.badge.img+2
  • Contributor
  • November 27, 2024

Even am getting the same error :

 

ERROR |ArcGIS Portal Feature Service Reader: Encountered an unexpected error. The error code from the server was '500' and the message was: 'Error performing query operation'

Any fix for this? Any help would be appreciated.


saraatsafe
Safer
Forum|alt.badge.img+8
  • Safer
  • December 4, 2024

Hi ​@laxmi_2590, if you’ve tried some of the suggestions above (such as reducing the number of Features Per Request) and are still running into that error, can you please share your feature service with us so that we can take a look? Feel free to submit it as a support case if you’d prefer not to share it publicly.  


matthewb
Contributor
Forum|alt.badge.img+7
  • Contributor
  • March 18, 2025

I’ve faced this issue too.  I’ve often been able to decrease the number of features read/written and enabled asynchronous writing with a timeout of 300, but have never been able to identify the root cause. 

 

Decreasing the number of features greatly impacts the performance.  I would love more feedback on working around this issue too.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings