Hello,
We have an issue with SQL expression definition query in ArcGIS Pro. when we publish a layer filtered using SQL definition query, the service publish but the data is not visualized, when we add the data to a map in Enterprise 10.8.1 we get “Accessing data failed" error.

If we publish service without SQL expression definition query, service is able to visualize

We have done the same process using ArcMap, we do a definition query using a SQL Expression and publish the service and the service is filtered as it should but using the same workflow with Pro 2.9, we are not able to do it.
Any idea?
Regards,
Diego Llamas