Environment : ArcMap 10.4 and 10.5
Possible Reason: Before it runs normally only after I create another geodatabase on the existed SQLServer instance.
All the features of the new created GDB has this issue when publishing while the features in the older GDB has no.
This method can help me to publish the service. It still has problem if I share the layer to public. Even if it shared to everyone it sitll require logged in by Portal. I have searched many guys met the publish problem so expect ESRI to solve it soon.