Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7841129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:01:57+00:00 2026-06-02T16:01:57+00:00

I have an issue with a very simple task in SSIS 2012. I have

  • 0

I have an issue with a very simple task in SSIS 2012.

I have a for-each container that runs in FOR-EACH-FILE Enumerator mode. I want to read a target folder with XML files. The path to the folder is correctly configured. The files field is set to *.xml

The variable mapping is defined with the follwing Variable: User::FileVar , Index 0.

Now I add a simple data flow task inside the container. The dataflow task only has a XML-Data Source task, that’s it. For the XML Data source task, the XSD location is set. When I click choose columns, I can see the columns from the XSD schema.

BUT: When I save the XML task , I always get the error message: The Property XMLDataVariable is empty. I tried both data Access modes, XML file from variable and XML data from variable. The error message remains, I cannot run the package.

I don’t use any expressions, neither at the foreach loop container nor at the data flow task.

I dont know what’s wrong here, I did the steps exactly as shown in some tutorials for older versions of SSIS.

Do you have any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:01:59+00:00Added an answer on June 2, 2026 at 4:01 pm

    The issue is that the XML Source is trying to validate the existence of the given file during the design time. However, you will know the file name only during runtime when the Foreach loop container executes and loops through every XML file available in a given folder.

    I recreated an SSIS 2012 package using my answer to one of other SO questions.
    SSIS reading multiple xml files from folder

    I was able to reproduce the error The property "XMLDataVariable" on the XML Source was empty

    Error

    On the XML source, I set the property ValidateExternalMetadata to False. Setting this to false will force the package not to verify the existence of the xml file path during design time.

    ValidateExternalMetadata

    I was successfully able to execute the package.

    Successful execution

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following issue whith this very simple task. I want to create
I have a very simple script that uses Copy-Item in the Task Build section
I have an issue with something that should be very simple databinding scenario. I
I have an issue that seems like very flaky behavour, is this a problem
I am facing a very strange issue. I have a SharePoint webpart that displays
I have CMS with a script that is executed for each file that is
I have a very simple issue. I am using toggleEdit to allow the user
I have a very simple issue, and I'm not sure if it's a bug
I have a very simple page that is displaying canned data. I experienced this
PROBLEM SOLVED: I was overlooking a very simple issue, and that is that this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.