Just a quick easy question, did you remove the quotes from the SHAPE.STLength() and SHAPE.STArea() values? Also before you tried publishing did you click analyze to see if it came up with any errors? If it did or had some high notifications you might check those out to see if there is anything you can correct that might alleviate the critical error.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.