Hi, Brian, I know it has been a long time since you post this question, But I still want to ask if you've solved this problem. My codes are just like yours and I want to publish it as a service. If you can see this post, please help me out.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.