in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

akalli's blog

The fix for: Method Post Error in Excel 2007 Import Spreadsheet to SharePoint

Have you tried importing a Excel 2007 spreadsheet into SharePoint Service v3 and are getting a Method Post Error? Thanks to an open SharePoint forum, someone posted the fix. 

I take no credit for this fix. My SharePoint hosting company is www.frontpages-web-hosting.com and on their forum is a post by Bradley Elder (Thanks Bradley!) I was able to easily apply the change mentioned in his post and can now import a spreadsheet from Excel 2007 to SharePoint Services v3.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

Here is his post below:

Importing lists from Excel 2007 returns a Method 'Post' of object 'IOWSPostData' failed dialog. Again, not really a problem with WSS 3.0 but rather the result of a failed Application.SharePointVersion() call in the Excel Add-In which results in Excel attempting to use the IOWSPostData.Post() method to publish the Excel range which is used with SharePoint Team Services 1.0. By forcing the version lookup result variable to 2 or greater, Excel will use SOAP to communicate with WSS 3.0 and the publish request will be successful. To make this change, open the Excel Add-In EXPTOOWS.XLA locate in C:\Program Files\Microsoft Office\Office12\1033 by default. Press Alt+F11 to display the Visual Basic code editor and search (Ctrl+F) for the line lVer = Application.SharePointVersion(URL). Comment out that line with a single quote and add the line lVer=2 so your Intialize() method should now look like this:

Sub Initialize(List, Title, URL, QuickLaunch)

strQuickLaunch = QuickLaunch

aTarget(iPublishURL) = URL

aTarget(iPublishListName) = List

aTarget(iPublishListDesc) = Title

'lVer = Application.SharePointVersion(URL)

lVer = 2

End Sub
 
~~~~~~~~~~~~~~~~~~~~~~~~~ 
Andrea Kalli
Andrea Kalli Virtual Trainer and Assistant, LLC

Comments

 

Chuck McManus said:

This post looks like it could be useful... when I attempt to import a spreadsheet list, I get a message "---------------------------

The number of columns for one or more data types in this list exceeds the limit of columns that can have the same data type on the Windows SharePoint Services server.

---------------------------"

Is this the method error you were referring to?

Kind Thanks,

C Mc

June 25, 2007 1:13 PM
 

Michael said:

I get "Cannot connect to the server at this time. Your list cannot be published" after making this change, as stated on the website I attached..

Any idea's?

July 3, 2007 9:18 AM
 

Jason said:

Chuck....here's a quote from Technet at this url...

www.microsoft.com/.../wsstshoo.mspx

"Windows SharePoint Services specifies limits for the number of columns of a certain type that you can create in each list or library. The following table lists the limits by column type.

Column Type Maximum Number

Single line of text AND Choice (Drop Down Menu or Radio Buttons)*

64

Multiple lines of text AND Choice (Checkboxes (allow multiple sections))*

32

Number AND Currency*

32

Lookup

16

Yes/No

16

Calculated

8

*In rows marked with an asterisk (*), the number given is the total for all columns of both of the types in the row combined. For example, you can create 16 Number and 16 Currency columns, or 30 Number columns and 2 Currency columns, but not 32 Number columns and 32 Currency columns.

Note   When you create a list or library, the single line of text column Title is automatically created. You can customize this column, but not delete it.

"

If you exceed these limits you will get that exact error message you gave in your post.

Hope this helps...now if I could figure out a way to get passed this!!!

July 12, 2007 1:21 PM
 

The Schlog » Blog Archive » Importing Excel 2007 spreadsheets into WSS 3.0 using Vista said:

Pingback from  The Schlog  » Blog Archive   » Importing Excel 2007 spreadsheets into WSS 3.0 using Vista

July 13, 2007 2:38 PM
 

Aamir Qureshi said:

I made IVer change and that change got me to next error "Cannot connect to the server at this time. Your table cannot be published."

It did work couple of times but now I am getting this error. Any suggestions?

July 24, 2007 11:02 AM
 

Frank said:

I also made IVer change and that change got me to next error "Cannot connect to the server at this time. Your table cannot be published."

Need help.  Any suggestions?

July 31, 2007 3:56 PM
 

Alison said:

I was also receiving this error message - on a machine running Office 2003. I switched to another box with Office 2007 and the spreadsheet imported without error. If the above fix didn't correct your problem, did you get the original error on a box running Office 2007 or Office 2003?

September 4, 2007 9:58 AM
 

Bradley Elder said:

Funny story...

I got this error again and forgot I solved the problem once before and Googled the issue and this blog came up on the first page of the search.

This is truly a case of what goes around, comes around.  Thanks for posting the blog so I cold find my solution again.

October 24, 2007 6:37 PM
 

EXCEL Tabelle in Sharepoint 2007 (MOSS) importieren « PrivatesPortal said:

Pingback from  EXCEL Tabelle in Sharepoint 2007 (MOSS) importieren « PrivatesPortal

November 5, 2007 8:24 AM
 

Horst Henn said:

Strange things happen. I received the error message "Cannot connect to server ... " with a client machine running VISTA and Office 2007 when trying to import to MOSS a very small EXCEL table 3 lines x 5 columns.

Import works fine with Sharepoint 2003 (Version 2) and VISTA / Office 2007 client.!

November 6, 2007 8:02 AM
 

Dirk Van den Berghe SharePoint Admin Blog said:

I was recently asked to investigate an issue with importing an Excel sheet into a new SharePoint List

November 27, 2007 2:53 AM
 

Brian said:

How do you fix this NEXT ERROR?!?!?

I also made IVer change and that change got me to next error "Cannot connect to the server at this time. Your table cannot be published."

Help!

December 5, 2007 5:10 PM
 

Donzy said:

After the change .. Got also the "Cannot connect to the server at this time. Your table cannot be published" error ...

Any suggestion ?

Config:

- Windows XP

- Excel 2007

and WSS 3.0

Thx

December 11, 2007 6:28 AM
 

Donzy said:

I finally found this for the second error:

support.microsoft.com/.../en-us

December 11, 2007 6:40 AM
 

Hemendra said:

Hi Guys

I am having problem with Excel 2007.i am unable to import my excel sheet to sharepoint 2007.Error is "cannot connect to the server at this time.your table can not be published".

even i have modified EXPTOOWS.xla

<before>

lVer = Application.SharePointVersion(URL)

</before>

<after change>

lVer = Application.SharePointVersion(URL)

lVer = 2

</after change>

pls help me i am really stuck with that

Thanks in Advance

Hemendra

April 17, 2008 11:42 PM
 

bfattima said:

I follow the steps C:\Program Files\Microsoft Office\Office12\1033 but when I click alt+F11 nothing comes up.

May 21, 2008 6:34 PM
 

Rui Alves said:

Thanks big time, this worked.

bfattima see in excel options if you have disable all macros. you have at least to prompt. So check option prompt for macros.

I readed that for some ppl works only with lVer = 3

June 3, 2008 5:01 AM
 

Dallas said:

I was only able to get the import to work on sites in the root site collection.

I was having the same problems as Hemendra on sites that where in a collection under /sites/.

July 10, 2008 3:35 PM
 

SMW said:

There's an answer here:www.sharepointblogs.com/.../importing-a-spreadsheet.aspx

That actually works.

July 10, 2008 5:57 PM

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts