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

  • SEARCH
  • Home
  • 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 3230050
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:52:54+00:00 2026-05-17T16:52:54+00:00

I have transformed an XML file See this question for a complete description What

  • 0

I have transformed an XML file

See this question for a complete description

What I want to do know is take this xml task and have it preformed in a For Each Loop. I want all xml files in a specific directory to be transformed and the resulting file to be moved to seperate directory.

It’s not working. I’m getting the following error messaes:

Error: 0xC002F304 at XML Task, XML Task: An error occurred with the following error message: "Data at the root level is invalid. Line 1, position 1.".
Error: 0xC002928F at XML Task, XML Task: Property "New Source" has no source Xml text; Xml Text is either invalid, null or empty string.

Can you perform an xml transformation within a for each loop?

  • 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-05-17T16:52:54+00:00Added an answer on May 17, 2026 at 4:52 pm

    The problem is that the XML Task was expecting the variable to contain the XML data that I was trying to transform. In fact the variable contained the file name and path pointing to the XML data.

    My coworker showed me the fix.

    Inside the XML Task select SourceType = File connection.

    Then set the source to point to your file.

    Here is the trick. At the bottom you will see Connection Manager and inside will be the file name you pointed your XML Task to. Click on the file name (inside of Connection Manager) and notice that the properties window will display.

    Change ConnectionString to any string value (I used “placeholder”).

    Click on the plus sign next to Expressions and add a connectionstring like this:
    @[User::FileName]

    In this case FileName is a Package variable that contains the path to the xml file.

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

Sidebar

Related Questions

Simple question. I have an XML file with a few dozens of comment blocks.
I have this kinda interesting requirement. Typically you use XSLT to transform an XML
I have a Nant merge task aimed at a nunit test output.xml I have
I have an XSLT transform I am using to process an XML file, inserting
I have developed an XSL file that transforms xml files into a html table.
In my Python app, I have an XML document that I'd like to transform
I have to take over and improve/finish some code that transforms Java objects from
I have IQueryable list of objects of type T which I want to transform
I have this Javascript data: [{id:123,type:test},{id:154,type:another}] How would you transform that into something so
Currently, I have a String object that contains XML elements: String carsInGarage = garage.getCars();

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.