Hi,
I'm trying to populate the SiteUrl from a variable that has been set based on a query to a SQL table that has a URL field. Here are the steps I've taken and the result.
- Created a table with a url in it to reference a SharePoint Task List.
- Created a Execute SQL Task to grab the url putting the result set in a variable called SharePointUrl
- Created a For Each container and within the collection I use the SharePointUrl as the ADO object source variable and select rows in the first table.
- Still in the For Each container within the Variable mappings I have another Package Variable called PassSiteUrl2 and I set that to Index 0 or the value of the result set.
- I created a script task to then display the PassSiteUrl2 variable and it works great I see my url
- This is where it starts to suck eggs!!!!
- I insert a Data Flow Task into my foreach loop.
- I Insert a SharePoint List Adapter into my Data Flow
- Within my SharePoint List Adapter I set my list to be "Tasks", My list view to be "All Tasks" and then I set the url to be another SharePoint site that has a task list just so there is some default value to start with.
- Now within my Data Flow I create an expression and set the [SharePoint List Source].[SiteUrl] equal to my variable @[User::PassSiteUrl2].
- I save everything and run my SSIS package and it overlays the default [SharePoint List Source].[SiteUrl] with blanks in the SharePoint List Adapter then throws the error that its missing a url
So here is my question. Why if my package variable displays fine in my Control Flow is it now not seen or seen as blanks in the Data Flow Expression. Anyone have any ideas???
Thanks
Donald R. Landry