+ Reply to Thread
Results 1 to 10 of 10

Error saving to Sharepoint: Getting list of available content types...

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Error saving to Sharepoint: Getting list of available content types...

    Every morning my macro creates and saves 15 workbooks to our Sharepoint site. Often (3 mornings per week) I get the message "Getting List of Available Content Types...", which stays forever. If I hit "Cancel", I get the error message
    Please Login or Register  to view this content.
    on this line of code
    Please Login or Register  to view this content.
    In this case, Region 2_9 is the fifth workbook created/saved. If I try to continue the code, we keep going in the same loop. I have to kill Excel and start over. I'd appreciate some help in resolving this.

    Thanks,
    John
    Last edited by jomili; 05-29-2012 at 09:02 AM. Reason: Change my funky title

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error saving to Sharepoint: Getting list of available content types...

    what happens if you save as manually at the same time
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Error saving to Sharepoint: Getting list of available content types...

    Use

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by snb; 05-29-2012 at 09:42 AM.



  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Error saving to Sharepoint: Getting list of available content types...

    Martin,
    I haven't tried to save manually, but if I close Excel and rerun it saves just fine.

    SNB, I thought it might have something to do with the filetype, so I'll try your "56" routine on tomorrow's run. However, I'm puzzled as to why this would be an issue SOMETIMES and not every time if it's a problem with the filetype. Every one of 15 workbooks is saved every day using the exact same convention; only the name itself changes.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error saving to Sharepoint: Getting list of available content types...

    ok sorry i meant locally not manually! run the same macro 100 times but change the path to your c drive. does it fail?. if not its probably some weird sharepoint thing.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Error saving to Sharepoint: Getting list of available content types...

    SNB,
    Your code made the difference, after a small change. Instead of going with the "ThisWorkbook" option, I went this route instead:
    Please Login or Register  to view this content.
    However, the ", 56" wasn't welcomed by my VBA, so I changed it as so:
    Please Login or Register  to view this content.
    Thanks for all the help on this one. I still don't understand why I was getting a sometimes error, but it worked well this morning.

  7. #7
    Registered User
    Join Date
    12-02-2014
    Location
    Cedar Rapids, IA
    MS-Off Ver
    2010
    Posts
    4

    Re: Error saving to Sharepoint: Getting list of available content types...

    Please help! I am having this exact same issue. I am using the FileFormat attribute with the saveas command. I have also added a 3 second wait before the saveas command to see if this helped but it did not. The site seems to allow 3 saves to go through and then the issue occurs. I am drowning! Please help.
    Last edited by xaldec; 12-04-2014 at 09:57 AM. Reason: forgot additional information

  8. #8
    Registered User
    Join Date
    02-08-2005
    Location
    Kent, UK
    MS-Off Ver
    2010
    Posts
    69

    Re: Error saving to Sharepoint: Getting list of available content types...

    I have the same issue, it allows for 2 saves to go through but then the error appears. I've tried the above code but it doesn't make any difference.

  9. #9
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Error saving to Sharepoint: Getting list of available content types...

    FYI that shortly after I started this post we changed our whole methodology and quit using the Sharepoint site, so my issue went away.

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Error saving to Sharepoint: Getting list of available content types...

    xaldec, koltregaskes,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1