Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

UpLoad document with managed metadata property problem

$
0
0

Hi,

I am having troubles when I'm trying to upload a document to a list with a managed metadata property.

The problem occurs only when the column is set to allow multiple values:

SPFile spfile = lList.RootFolder.Files.Add(fileName, lBytes, true);

When the doc library has the managed metadata column with the allow multiples values.

I have this error:

"Microsoft.SharePoint.SPException: Invalid look-up value.

A look-up field contains invalid data. Please check the value and try again"

If a change the column to not allow multiple values the code works great.

Anyone has this problem?

Thanks!!


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>