<p>Hello, I get the following message when trying to run my package in Production. </p>
<p> </p>
<p>The component has detected potential metadata corruption during validation.</p>
<p>Error at DFT - Leer parametros de NODOS desde Sharepoint [SPL - Acceder a lista de NODOS en Sharepoint [1]]: System.TypeInitializationException: The type initializer for 'System.ServiceModel.DiagnosticUtility' threw an exception. ---> System.MethodAccessException: System.ServiceModel.Diagnostics.DiagnosticTrace..ctor(System.ServiceModel.Diagnostics.TraceSourceKind, System.String, System.String)</p>
<p> at System.ServiceModel.DiagnosticUtility.InitDiagnosticTraceImpl(TraceSourceKind sourceType, String traceSourceName)</p>
<p> at System.ServiceModel.DiagnosticUtility.InitializeTracing()</p>
<p> at System.ServiceModel.DiagnosticUtility..cctor()</p>
<p> --- End of inner exception stack trace ---</p>
<p> at System.ServiceModel.DiagnosticUtility.get_ShouldUseActivity()</p>
<p> at System.ServiceModel.Channels.CommunicationObject.set_TraceOpenAndClose(Boolean value)</p>
<p> at System.ServiceModel.ChannelFactory`1..ctor(Type channelType)</p>
<p> at System.ServiceModel.ChannelFactory`1..ctor(Binding binding, EndpointAddress remoteAddress)</p>
<p> at System.ServiceModel.ClientBase`1..ctor(Binding binding, EndpointAddress remoteAddress)</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.ResetConnection()</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.InitializeObject(Uri sharepointUri, NetworkCredential credential)</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListServiceUtility.GetFields(Uri sharepointUri, NetworkCredential credentials, String listName, String viewName)</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.GetAccessibleSharePointColumns(String sharepointUrl, String listName, String viewName)</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.ValidateSharePointColumns()</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.Validate()</p>
<p> at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostValidate(IDTSManagedComponentWrapper90 wrapper)</p>
Comments: ** Comment from web user: kevinidzi **
<p> </p>
<p>The component has detected potential metadata corruption during validation.</p>
<p>Error at DFT - Leer parametros de NODOS desde Sharepoint [SPL - Acceder a lista de NODOS en Sharepoint [1]]: System.TypeInitializationException: The type initializer for 'System.ServiceModel.DiagnosticUtility' threw an exception. ---> System.MethodAccessException: System.ServiceModel.Diagnostics.DiagnosticTrace..ctor(System.ServiceModel.Diagnostics.TraceSourceKind, System.String, System.String)</p>
<p> at System.ServiceModel.DiagnosticUtility.InitDiagnosticTraceImpl(TraceSourceKind sourceType, String traceSourceName)</p>
<p> at System.ServiceModel.DiagnosticUtility.InitializeTracing()</p>
<p> at System.ServiceModel.DiagnosticUtility..cctor()</p>
<p> --- End of inner exception stack trace ---</p>
<p> at System.ServiceModel.DiagnosticUtility.get_ShouldUseActivity()</p>
<p> at System.ServiceModel.Channels.CommunicationObject.set_TraceOpenAndClose(Boolean value)</p>
<p> at System.ServiceModel.ChannelFactory`1..ctor(Type channelType)</p>
<p> at System.ServiceModel.ChannelFactory`1..ctor(Binding binding, EndpointAddress remoteAddress)</p>
<p> at System.ServiceModel.ClientBase`1..ctor(Binding binding, EndpointAddress remoteAddress)</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.ResetConnection()</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.InitializeObject(Uri sharepointUri, NetworkCredential credential)</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListServiceUtility.GetFields(Uri sharepointUri, NetworkCredential credentials, String listName, String viewName)</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.GetAccessibleSharePointColumns(String sharepointUrl, String listName, String viewName)</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.ValidateSharePointColumns()</p>
<p> at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.Validate()</p>
<p> at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostValidate(IDTSManagedComponentWrapper90 wrapper)</p>
Comments: ** Comment from web user: kevinidzi **
OK - so that's a pretty generic error, i'm guessing that you build the package using a list in dev or test environment - and in production, the list is different. There are internal IDs that must be the same for the adapter to work. So i'd suggest you recreate your list using an export and import (via excel) to ensure all of the column names start off matching in each environment. Any modifications to column names is fine -- but the FIRST time you set a column, it embeds that in the column id that is used for mapping.