You need to add a derived column to your data flow, and assign User::CurrentFileName
to the new column, then include this new column in your column mapping.
In your stored procedure, change @[USER::CurrentFileName]
to a proper SQL type such as @filename nvarchar(255)
.
Suggestion: You could also do away with the stored procedure, and insert directly into the table (would be faster, since its bulk inserted) by using a SQL destination instead of Executing a procedure for every row.