简体   繁体   中英

SSIS Flat File to FTP

I have searched everywhere for this answer. I am setting up a Data flow task to pull Data from a table using a customer sql script, it then saves it as a flat file with dynamic naming called NMC Services_(Date Range). the issue is i need to take this one file and upload it onto an FTP Site but i continue to get one of 5 errors: Error at Package: The connection "FilePath\\NMC Service Requests_0606-0612.csv" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error at FTP Task [FTP Task]: For the FTP operation "Send", the FILE connection manager "File Path\\NMC Service Requests_0606-0612.csv" can not be found.

Error at FTP Task: There were errors during task validation.

(Microsoft.DataTransformationServices.VsIntegration)

using a variable or expression doesn't change it. The file writes to the file path but does not go out and grab it.

This isn't copied it is built from scratch.

When using a variable i get this

Error at FTP Task: Failed to lock variable "File Path\\NMC Service Requests_0606-0612.csv" for read access with error 0xC0010001 "The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container during execution of the package, and the variable is not there. The variable name may have changed or the variable is not being created.".

Error at FTP Task: The Validate method on the task failed, and returned error code 0x80131500 (Failed to lock variable "File Path\\NMC Service Requests_0606-0612.csv" for read access with error 0xC0010001 "The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container during execution of the package, and the variable is not there. The variable name may have changed or the variable is not being created.". ). The Validate method must succeed and indicate the result using an "out" parameter.

Error at FTP Task: There were errors during task validation.

(Microsoft.DataTransformationServices.VsIntegration)

I have rebuilt the whole Package from scratch over and over again and still have the issue.

I was able to figure out the issue. I am using an expression to determine the name of the file that it is needing to send. When I set up the variable I put the file path to the file as the value, and then setting evaluate as expression true. I erased the value and placed the expression i use to dynamically name the file in the variable properties under expression and it works like a charm. Thanks for the help!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM