BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
elwayfan446
Barite | Level 11

Good morning.  I have created a copy task that uses a variables to define the paths of the files I need to download. 

 

elwayfan446_0-1611757742545.png

 

The macros resolve fine and the files download but I get the following error in the log:

ERROR: Download exception occurred. Error while trying to get remote file.

 

When I open the .xlsx files that download I get the following message:

 

elwayfan446_0-1611763047245.png

 

If I transfer the files via sftp directly to my network drive the files open normally without an error so something appears to be happening during the download in the copy task.  Has anyone ever seen this and is there a fix?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

Should not matter, but your SASApp looks like Linux so use a forward slash in the Download from field.

 

This task emits lots of messages in the Application Log, so turning that on in Tools->Options might reveal something. It's a lot to decipher, so SAS Tech Support might be able to help at that point.

SAS Innovate 2026: Register now! April 27-30 in Grapevine TX -- it's the premier conference for SAS users!

View solution in original post

4 REPLIES 4
ChrisHemedinger
Community Manager

Can you change the download spec to "*.xlsx" (note the dot before "xlsx")?  Does that help?

SAS Innovate 2026: Register now! April 27-30 in Grapevine TX -- it's the premier conference for SAS users!
elwayfan446
Barite | Level 11

Thanks, I didn't catch that before.  However, I changed it and I am still having the same issues.

ChrisHemedinger
Community Manager

Should not matter, but your SASApp looks like Linux so use a forward slash in the Download from field.

 

This task emits lots of messages in the Application Log, so turning that on in Tools->Options might reveal something. It's a lot to decipher, so SAS Tech Support might be able to help at that point.

SAS Innovate 2026: Register now! April 27-30 in Grapevine TX -- it's the premier conference for SAS users!
elwayfan446
Barite | Level 11

The forward slash fixed the issue!  I've never seen anything that indicates a forward slash is needed on a wildcard macro like this in EG so I didn't even think to try that.  I appreciate the suggestion and ultimately helping me figure out how to fix this!

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 5899 views
  • 2 likes
  • 2 in conversation