I have been developing a canvas app based on D365 entities.
I have a Dev, Test and Prod environment. I export from Dev, then import into Test and UAT then go into the App, remove the D365 data sources and then add the ones from the approrpriate environment.
I've done this many times over the past few weeks, but starting yesterday I cannot remove any of the D365 data sources - trying yields the following error:

I have tried repeatedly import/exporting to different environments but always have the same issue.