I am trying to publish a SEDF to ArcGIS Portal. In the Jupyter notebook, it indicates it succeeded after I run
my_sedf.spatial.to_featurelayer("new layer name")
but when I go to portal to inspect the published service, there's an error despite the service seems working OK.

I have to overwrite the web layer from ArcGIS Pro to get rid of this error.
Is there a tiny bug in the API?