Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Wierd error while transfering data from FTP server using SSIS Package?

Posted on 2014-02-10
4
586 Views
Last Modified: 2016-02-10
i am working on SSIS package to recieve .csv files to my SQL DB.
MY FTP server is
ftp.sql.att.com

where i can find lot of csv files but i need to pick up only the before day report file so i am using varaible to check and connect to the previous date file.For that i am using below expression
"//Call_"+
RIGHT("0" + (DT_WSTR, 2)  MONTH(dateadd("d", -1, getdate())), 2)
+RIGHT("0" + (DT_WSTR, 2) DAY(dateadd("d", -2, getdate())), 2)
+(DT_WSTR, 4)  YEAR(dateadd("d", -1, getdate()))+ ".csv"

The output of varaible is     Call_02082014.csv


While executing i am getting below error


[FTP Task] Error: An error occurred with the following error message: "Object reference not set to an instance of an object.".


If with out using varaible if i connect directly to that .csv file SSIS task working properly but when i use varaible i am getting weird error.

Note:I cant run every day ssis package so that is the reason i cfreated varaible so it can check the date and pick up exact file..


Can any one help me to solve this issue please ..
0
Comment
Question by:GreatLakes07
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Barry Cunney
ID: 39849604
Hi GreatLakes,
Please confirm if you have set the EvaluateAsExpression=TRUE in the variable properties
0
 

Author Comment

by:GreatLakes07
ID: 39850122
Yes i set to TRUE.
0
 
LVL 17

Accepted Solution

by:
Barry Cunney earned 500 total points
ID: 39853128
Hi GreatLakes
In the FTP Task Editor on the FileTransfer page, please confirm if you have set IsRemotePathVariable = TRUE
0
 

Author Closing Comment

by:GreatLakes07
ID: 39908371
great
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.net Duplicating a table - primary key not created 3 31
TSQL convert date to string 4 34
SSRS Deployment problem 5 64
TSQL XML Namespaces 7 22
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question