External data column showing blank values on edit properties but shows values in view properties.
Hello, I am setting external data column value using code like ClientContext context = new ClientContext(txtDestinationSite.Text); FileCreationInformation newFile = new FileCreationInformation(); newFile.Content = ReadToEnd(fileInfo.FileInf.OpenRead()); newFile.Url = "/" + cmbBxLibraries.Text + "/" + fileInfo.FileInf.Name; List docs = context.Web.Lists.GetByTitle(cmbBxLibraries.Text); Microsoft.SharePoint.Client.File uploadFile = docs.RootFolder.Files.Add(newFile); ListItem item = uploadFile.ListItemAllFields; item["Document_x0020_Source"] = fileInfo.Source; item.Update(); context.Load(uploadFile); context.ExecuteQuery(); this is uploading and setting value without error. but when i editing file property its value is not showing instead of showing it on View properties. and also is not showing in the document library view. Please tell where am doing wrong?
January 4th, 2012 6:10am

Hi SarveshSingh2011: About your question.If the value of the [fileInfo.Source] does not match the unique field values of your External data,you will get the issue. You can try to check it as following: Choose the Item you upload->Edit Properties-> Input the value(copy by View Properties)->Check if External Item exits(check if error) Also you can go to Select External Item(s) to find what value it can Identification. And decided to reassign the item value or change the External data source to resolve it. For more information ,please refer to this site: http://blog.libinuko.com/2010/04/10/sharepoint-2010-how-to-create-external-content-type/ Thanks, Lhan Han
Free Windows Admin Tool Kit Click here and download it now
January 6th, 2012 8:06am

Hi SarveshSingh2011: About your question.If the value of the [fileInfo.Source] does not match the unique field values of your External data,you will get the issue. You can try to check it as following: Choose the Item you upload->Edit Properties-> Input the value(copy by View Properties)->Check if External Item exits(check if error) Also you can go to Select External Item(s) to find what value it can Identification. And decided to reassign the item value or change the External data source to resolve it. For more information ,please refer to this site: http://blog.libinuko.com/2010/04/10/sharepoint-2010-how-to-create-external-content-type/ Thanks, Lhan Han
January 6th, 2012 8:06am

Hi SarveshSingh2011: About your question.If the value of the [fileInfo.Source] does not match the unique field values of your External data,you will get the issue. You can try to check it as following: Choose the Item you upload->Edit Properties-> Input the value(copy by View Properties)->Check if External Item exits(check if error) Also you can go to Select External Item(s) to find what value it can Identification. And decided to reassign the item value or change the External data source to resolve it. For more information ,please refer to this site: http://blog.libinuko.com/2010/04/10/sharepoint-2010-how-to-create-external-content-type/ Thanks, Lhan Han
Free Windows Admin Tool Kit Click here and download it now
January 6th, 2012 4:02pm

Hi SarveshSingh2011: About your question.If the value of the [fileInfo.Source] does not match the unique field values of your External data,you will get the issue. You can try to check it as following: Choose the Item you upload->Edit Properties-> Input the value(copy by View Properties)->Check if External Item exits(check if error) Also you can go to Select External Item(s) to find what value it can Identification. And decided to reassign the item value or change the External data source to resolve it. Thanks, Lhan Han
January 6th, 2012 4:02pm

I have tried your approach to define Unique value. i have changed like this. item["Document_x0020_Source"] = 1; "1" is my unique ID value for the BCS data column. but when i am using this code ...its still not showing in the default view of the library which is the same thing as before.
Free Windows Admin Tool Kit Click here and download it now
January 17th, 2012 7:02am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics