提供的项目无效

时间:2015-08-02 17:18:06

标签: azure-mobile-services

我有两个表搜索和标准,我想在搜索表中插入以下字典,这样我就可以在服务器上同时保存搜索和标准,如article中提到的那样:

  

{       最喜欢= 0;       id =“038754C5-8442-4726-B870-50B30D6C0FD9”;       “ms_createdAt”=“460154444.053479”;       “ms_updatedAt”=“460154444.053487”;       searchcriteria = {           id =“D7ADE004-92E7-4347-A6E6-DB66260F0364”;           latitude =“41.08482”;           location =“Akron,OH”;           经度=“ - 81.51561”;           “ms_createdAt”=“460154444.055491”;           “ms_updatedAt”=“460154444.055498”;           radius = 10;           schoolLevels =“”;           schoolRating = 5;           schoolTypes =“”;       };       title =“”;       userId =“Facebook:123123123123123”; }

这是我的客户端代码:

extension ArticleReference: StringLiteralConvertible {

    public init(stringLiteral value: StringLiteralType) {
        self.init(value)
    }

    public init(extendedGraphemeClusterLiteral value: StringLiteralType) {
        self.init(value)
    }

    public init(unicodeScalarLiteral value: StringLiteralType) {
        self.init(value)
    }
}

我收到以下错误:

  

错误Domain = com.Microsoft.WindowsAzureMobileServices.ErrorDomain   代码= -1103“提供的项目无效。”的UserInfo = 0x7ff093969400   {NSLocalizedDescription =提供的项目无效。}

我使用以下方法创建了字典:

[self.searchTable insert:item completion:^(NSDictionary *result, NSError *error)
     {
         [self logErrorIfNotNil:error];
         completion(result);
     }];

0 个答案:

没有答案