The system of the external content type you are editing cannot be accessed. It is either removed from the Business Data Connectivity ...

The system of the external content type you are editing cannot be accessed. It is either removed from the Business Data Connectivity Metadata Store or you do not have the necessary permissions on that system. Metadata generation cannot be completed.