Results 1 to 4 of 4

Thread: method value of object metaproperty failed
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Nov 2016
    Posts
    77
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default method value of object metaproperty failed

    I am running a macro that saves a certain cell data to a property in sharepoint metadata. It works great. But, there's always a but, there are times that the string has a comma, then an intentional space at the end. When that is the case, I receive the following error: "method value of object metaproperty failed". Any ideas on what the problem is, had a similar issue, or are just bored and wanna kill some time?

    Any help would be greatly appreciated.

  2. #2
    MrExcel MVP
    Moderator
    xenou's Avatar
    Join Date
    Mar 2007
    Location
    Clev. OH, USA
    Posts
    16,474
    Post Thanks / Like
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Default Re: method value of object metaproperty failed

    why is the data ending with a comma and a space - doesn't sound like a legitimate value generally. perhaps your metada point is expecting a valid numeric value.

    Using: Office 2010/Win7 (work) Office 2010/Win7 (home)

    You are rich in proportion to the number of things you can let alone.
    -- Henry David Thoreau

  3. #3
    Board Regular
    Join Date
    Nov 2016
    Posts
    77
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: method value of object metaproperty failed

    You are right. It is actually a name (last, first). But sometimes there isnít a first name to go with it and is just a space. On the SharePoint site Iím able to select it from a drop down menu. It just isnít working when it is placed in the property using the macro from the workbook.

  4. #4
    MrExcel MVP
    Moderator
    xenou's Avatar
    Join Date
    Mar 2007
    Location
    Clev. OH, USA
    Posts
    16,474
    Post Thanks / Like
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Default Re: method value of object metaproperty failed

    When you say you are able to select it in sharepoint, you mean you have names there that are missing first names, like Smith, or Johnson, in the list?

    Edit: note - if the answer to the above question is no, then it's likely that you are required to provide valid names, or to put it another way you can only use names that match the selections available in sharepoint.
    Last edited by xenou; Sep 10th, 2019 at 08:48 AM.

    Using: Office 2010/Win7 (work) Office 2010/Win7 (home)

    You are rich in proportion to the number of things you can let alone.
    -- Henry David Thoreau

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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