【问题标题】:Couchdb sum error on all map views所有地图视图上的 Couchdb 总和错误
【发布时间】:2017-01-11 06:27:33
【问题描述】:

我的 cloudant 数据库运行良好,然后我开始在我的所有地图视图中收到 SUMERROR。大多数 map 函数都没有 reduce 函数。

{error: "invalid_value",…}
error: "invalid_value"
reason: "The _sum function requires that map values be numbers, arrays of numbers, or objects, not 'null'. Objects cannot be mixed with other data structures. Objects can be arbitrarily nested, provided that the values for all fields are themselves numbers, arrays of numbers, or objects."
ref: 2090670111

我不确定错误的原因是什么以及如何解决它。

【问题讨论】:

    标签: couchdb cloudant


    【解决方案1】:

    您的地图函数为其中一个文档发出了一个值,该值不是错误消息中列出的类型之一,您可能有一个文档作为您在地图函数中发出的字段的意外值。

    【讨论】:

      猜你喜欢
      • 2020-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多