DynamoDB:两个文档路径相互重叠;必须删除或重写这些路径之一 [英] DynamoDB: Two document paths overlap with each other; must remove or rewrite one of these paths

查看:25
本文介绍了DynamoDB:两个文档路径相互重叠;必须删除或重写这些路径之一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个更新表达式:

{
  "UpdateExpression": "SET #location = :location, #edited = :edited, #coordinates = :coordinates, #city = :city, #country = :country, #zipCode = :zipCode, #street = :street, coordinates = :coordinates",
  "ExpressionAttributeValues": {
    ":location": "Reston, VA",
    ":edited": true,
    ":coordinates": {
      "lat": 38.9586307,
      "lng": -77.35700279999999
    },
    ":city": "Reston",
    ":country": "US",
    ":zipCode": "20190",
    ":street": "11910 Market St"
  },
  "ExpressionAttributeNames": {
    "#location": "location",
    "#edited": "edited",
    "#coordinates": "coordinates",
    "#city": "city",
    "#country": "country",
    "#zipCode": "zipCode",
    "#street": "street"
  }
}

我收到了这个奇怪的错误

and I am getting this weird error

ERROR: ValidationException: Invalid UpdateExpression: Two document paths overlap with each other; must remove or rewrite one of these paths; path one: [coordinates], path two: [zipCode]

我在网上找不到任何信息,也看不到重叠的地方.任何帮助将不胜感激.

I couldn't find any information online and I can not see where the overlap. Any help will be appreciated.

推荐答案

coordinates 两次有效地出现在您的表达式中.

coordinates is effectively in your expression twice.

这篇关于DynamoDB:两个文档路径相互重叠;必须删除或重写这些路径之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆