I have a feature class in Enterprise GIS that has a related table (simple relationship, 1:M).
I have a definition query on the features based on a field in the related table:
FacilityID_INT IN (SELECT FID_INT FROM SS_Spills WHERE Spill_Overflow IS NOT NULL)
and when I attempt to publish to AGO, it fails with this error in the log: "StatusMessage: Server Response: ERROR: code:400, Invalid URL, Invalid URL, Bad syntax in request."
When I remove the DQ, the feature publishes fine.
I would simply filter the feature layer on AGO after I publish but there's no way that I can see to use subsets or SQL in AGO
Any thoughts on what could be fouled up in that definition query?