Cannot add a SimpleContent column to a table containing element columns or nested relations

Recently I ran into a problem while dealing with DataSets. I was adding a colum to an XSD through Visual Studio desinger and it kept failing with following error:

Cannot add a SimpleContent column to a table containing element columns or nested relations.

This is a known issue. However, the solution is not well known :)

To be simple and streight forward, I tell you the solution which I tried and it worked,
1. Note down the column names, datatypes and relationships of the table.
2. Delete the table.
3. Add new table and add columns to it.
4. Redefine relationships.

Best of luck.

Comments

Popular posts from this blog

Unable to delete Shared Services Provider in SharePoint (MOSS)

The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.