I'm trying to do an application which writes in another sharepoint list Today, I have a new trouble, if my column contains some spaces, my program returns me : Column does not exist So here an example: I have a column name: My setting values, if I want to write in this, I use this piece of code:
oListItem[variable.FieldNameTarget] = variable.FieldValue;
oListItem.Update();
So I know that SharePoint replace space by x0200, so before to reach this piece of code, I use:
foreach(var item in m_objProjectList)
{
item.FieldNameTarget=item.FieldNameTarget.Replace(@" ", "_x0020_");
}
But now, I have an error message:column "My_x0200_setting_x0200values" doesn't exist, so is there another way to achieve that?
Thank for your help
*Edit** After a quick search: SharePoint name for a list is limited to 32 characters
– Arozora Jul 04 '19 at 13:03