I am running SQL/BIDS 2005 (current PROD environment).
I'm trying to do some basic POC and the task is fairly trivial:
- Get the XML file from the hard drive
- Do some mapping
- Update DB with the results
Steps I’ve taken:
- Create a new package
- Add Data Flow Task
- Add XML source task in the Data Flow
It is all working perfectly fine when I provide the XML and XSD location in the XML source properties.
I can see all the XML fields fine so I can proceed with the mapping etc.
The above is obviously not acceptable and what I need to do is pass both XML and XSD values from variables (and later on form the config file).
So I went to Data Flow’s Expressions and pointed the XML and XSD to the variables (I evaluated the results and it was perfect).
…except it doesn’t work.
When I try running the open the XML source task it throws the following:
The component has detected potential metadata corruption during validation. Then it gives the stack with the Object Reference nopt set to an instance... starting with the Dts.Pipeline.ManagedComponentHostValidate(IDTSManagedComponentWrapper90 wrapper)
As I mentioned I validate the xml doc and schema and its well formatted. When passing those directly in the xml source it works. It only doesn't work when I am trying to pass those values from the Data Flow level (as Expressions).