I am working on Sitecore Mobile SDK and I have a field named [Email]. I can't insert the data of Email's field into Sitecore because the exception :
[Sitecore Mobile SDK] Data from the internet has unexpected format
How I can fix this problem ?
Update : I update my question as request. My code as below :
var builder = ItemWebApiRequestBuilder.CreateItemRequestWithParentPath("/sitecore/content/home")
.ItemTemplatePath(@"User Defined/MyTemplate")
.ItemName("myItemName");
and AddFieldsRawValuesByNameToSet
builder.AddFieldsRawValuesByNameToSet("Email", txtEmail.Text);
Update 1: I have an item named as below (@ symbol):
I found my problem is when I update an item by
UpdateItemRequestWithId
it worked but if I use
CreateItemRequestWithParentPath
it throw the exception. I dont know why this.
Try to use
HttpUtility.UrlEncode
before passing the item name, e.g.:More information in