.net bring in a feature service, is no longer drawing in ArcGIS Pro 2.2.
Absolutely fine in 2.0, occasionally would do this. However when I use code to bring in the service layer into Pro, it doesn't draw it, even though its open and you can see the attribute table. (Its not under the base mapping either )
If we go to symbology and change it to single symbol, it appears.
If we then change it back to graduated symbol it stays.
Has anyone else experienced this and found a solution?
I have already tried re-creating the service from scratch and republishing. Both failed.
Have you tried refreshing your map? I have seen this behavior in both Pro SDK and Python Scripts for Pro. Pro is suppose to not need to be refreshed so there really is no code for it. One work around I had was to zoom in then back out a bit with the camera at the very end of my code. Also try rebuilding your solution, it is not suppose to be needed in small children version builds but I have found it to correct some issues in the past.
Will give the rebuilding a go, because I already tried the zooming in and out part. ☺
In my code I move my layer to refresh!! Please add a refresh ESRI! ☺
Thanks for the ideas. Will feedback when I can.
I can’t seem to call it in 2.2. can I double check its part of 2.2 and not 2.3...
Although I am expecting it to be part of MapView... i.e. mapview.active.map.redraw …
Do you have an example in action?