5

I have ArcGIS 10.7.1 feature services that occasionally fail/have errors.

The feature services are used to integrate/sync records to a separate work order management system. As such, the broken feature services can go unnoticed for some time, which is a problem.

Is there a way to get notified if feature services in a web service fail?

This question has an open bounty worth +50 reputation from User1973 ending in 3 days.

This question has not received enough attention.

  • 1
    Only if you create a web app to test if the service returns results, and send an e-mail it it doesn't. – Vince Nov 3 at 1:07
  • The process of writing a daemon process that wakes occasionally, invokes a few URLs, and sends mail if any services fail is more of a generic software engineering task, and would fit more naturally in Stack Overflow proper. – Vince yesterday
2

You could write a Python script that periodically performs a simple query on ESRI REST API for these feature layers.

This thread should be useful for performing the query on the API from Python. How to query an ArcGIS Feature Service by attribute using Python?

Then use smtplib to send yourself an email in the event that the query fails: https://docs.python.org/3/library/smtplib.html#smtp-example

Finally, depending on the platform that you work with, use windows task scheduler or Linux/ mac crontab to periodically run the script.

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.