BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hey. I am using Sharepoint, or MOSS, and I have a form libary full of data. I am compiling that data, through Shareopint, into an Excel spreadsheet. Then, I am attempting to import that Excel spreadsheet to EG to create an automated process out of it.

The .xls file is stored on Sharepoint, meaning it's on a network mapped drive/My Network Place. Whenever I go to import it, I get the error "CopyToServerIfNeededCompleted Exception". I press ok.

Then, I get:
The Import Data Task cannot copy this file to the server, and therefore, cannot continue. Make sure you are able to connect to your default server. Reason: "Maximum line length exceeded. Line #1 contains 32767 characters."

But, the reality is that the Excel data is not THAT big...could it be that my Sharepoint server is using some encryption that makes the data too big for SAS?
2 REPLIES 2
RichardH_sas
SAS Employee
I haven't tried importing an Excel file from Sharepoint before (though we do use sharepoint a little in my group). Here are a few general thoughts:

To give you a little background, when you import from Excel, what actually happens is that EG creates a text file in a temporary directory on the SAS server and then generates some DATA step code to read that text file. Based on the message you're seeing, my guess is that the part where EG creates the text file is going awry.

One thing you might try is to do a Save-As from Excel and save the data as a CSV file. See if EG can read the CSV file that's stored on Sharepoint. Otherwise, I think you may need to contact SAS Tech Support. Because the creation of the text file is a background process for EG, there aren't many things you can tweak to change that behavior.

Richard
gregor1
Quartz | Level 8

I have a similar problem.  How are you trying to import from SP to EG?  Do you have some code you can share?

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 927 views
  • 0 likes
  • 3 in conversation