Pages

Friday, July 19, 2013

Column values not populated into the dataset when converted from sharepoint list service returned xml


Issue:

Sometimes there is a scenario where particular column(s) value will not be populated into dataset while converting the data from the xml returned from the sharepoint list service. If the List Item Column name is something like this (Items Type/Types) thats is it contains a "/" then while converting the xml into a dataset the data of that particular column(s) would not be added to the dataset.

dsList.ReadXml(xmlTxtReader); a step in the previous example.


Resolution:

Delete that column name and create a new column name with the same values as the earlier column. Instead of having a column name with “/” have something like Items Type(Types) use “(“ and “)”. The code will work fine.

No comments:

Post a Comment