title: Error When Renaming Lightswitch Data Source Table
body: <p>After renaming a data source table in Lightswitch I get the following runtime exception:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt;
  &lt;error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&gt;
      &lt;code&gt;1&lt;/code&gt;
      &lt;message xml:lang="en-US"&gt;
          &amp;lt;?xml version="1.0" encoding="utf-16"?&amp;gt;&amp;lt;ExceptionInfo&amp;gt;&amp;lt;Message&amp;gt;Schema specified is not valid. Errors: &amp;#xD;
          REDCanonicalData.msl(653,10) : error 2007: The Table 'EntityNames' specified as part of this MSL does not exist in MetadataWorkspace.&amp;#xD;
          REDCanonicalData.msl(652,8) : error 2063: At least one property must be mapped in the set mapping for 'EntityNames'.&amp;lt;/Message&amp;gt;&amp;lt;StackTrace&amp;gt;   at Microsoft.LightSwitch.Threading.DispatcherExtensions.Invoke(IDispatcher dispatcher, Action action)&amp;#xD;
          at Microsoft.LightSwitch.ServerGenerated.Implementation.DataService`1.LogicInvoke[T](Func`1 f)&amp;#xD;
          at Microsoft.LightSwitch.ServerGenerated.Implementation.DataService`1.Microsoft.LightSwitch.ServerGenerated.Implementation.IODataService.LogicInvoke[T](Func`1 f)&amp;#xD;
          at Microsoft.LightSwitch.ServerGenerated.Implementation.DataServiceQueryProvider.QueryableWrapper`1.ExecuteGeneric[TResult](Expression expression)&amp;#xD;
          at Microsoft.LightSwitch.ServerGenerated.Implementation.DataServiceQueryProvider.QueryableWrapper`1.Execute[TResult](Expression expression)&amp;#xD;
          at System.Linq.Queryable.LongCount[TSource](IQueryable`1 source)&amp;lt;/StackTrace&amp;gt;&amp;lt;ErrorInfo /&amp;gt;&amp;lt;/ExceptionInfo&amp;gt;
      &lt;/message&gt;
  &lt;/error&gt;
  </code></pre>