Kathy Hughes, MVP

All MindsharpBlogs

SharePoint Encounters

My Links

Archives

Blog Stats

Asia Pacific SharePoint Training

Cats

Citrix

Personal

Resources

SharePoint Training

Method 'post' of object 'IOWSPostData' failed

If you get this error when attempting to create a new SharePoint (MOSS or WSS) list from either an Excel 2007 or Excel 2003 spreadsheet, then the reason could be due to an Excel add-in you've added - in my case it was an Excel add-in for Analysis services. The following post shows how to resolve the issue. This is something to consider when planning client add-ins... Note, I have not yet tested this modification/fix in a multi-server/user environment.

[original post can be found at:- http://www.tek-tips.com/viewthread.cfm?qid=1330234&page=1]

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

 

posted on Sunday, March 16, 2008 1:51 PM

Feedback

# re: Method 'post' of object 'IOWSPostData' failed 8/16/2008 11:00 PM Sabine Gossart

Tried this but now get compile error.

Any advice?

sabine@solidworks.com

# re: Method 'post' of object 'IOWSPostData' failed 10/21/2008 2:34 AM Dan Johnson

The error was overcome by this solution, but a new problem was created.

When choosing the cell range, I selected the header row, expecting that the column names would be imported and named correctly. This was not the case. Instead, the header row was imported as a record. The column names were default (Column A, Column B, etc.).

Any thoughts?

Title  
Name  
Url
CAPTCHA
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments