无法发布到 Phonograph,出现只读错误。

huangapple go评论56阅读模式
英文:

Unable to post to Phonograph , getting readonly error

问题

当我尝试更新 Phonograph 中的一行时,我收到了以下错误。

q_update_phonograph 抛出了以下错误:{
  "errorCode": "INVALID_ARGUMENT",
  "errorName": "Phonograph2:ReadOnlyTables",
  "errorInstanceId": "instanceId",
  "parameters": {
    "tableRids": "[phonograph rid]",
    "dataInputLocatorRids": "[foundry dataset rid]"
  }
}

这是我在 Table Storage 服务中提交的事件后传递的内容。

{
  "extractors": {
    "result": "$"
  },
  "headers": {},
  "method": "POST",
  "path": "storage/edits/tables/{tableRid}/events",
  "pathParams": {
    "tableRid": "phonograph rid"
  },
  "queryParams": {},
  "bodyJson": {
    "primaryKey": {
      "uniq_field": "uniq_fieldValue"
    },
    "payload": {
      "type": "rowModified",
      "rowModified": {
        "columns": {
          "Comments": "Test Data"
        }
      }
    }
  }
}
英文:

When i am trying to update a row in Phonograph i am getting the following error.

q_update_phonograph threw the following error: {
  "errorCode": "INVALID_ARGUMENT",
  "errorName": "Phonograph2:ReadOnlyTables",
  "errorInstanceId": "instanceId",
  "parameters": {
    "tableRids": "[phonograph rid]",
    "dataInputLocatorRids": "[foundry dataset rid]"
  }
}

This is what i am passing in the Table Storage Service Post Event

{
  "extractors": {
    "result": "$"
  },
  "headers": {},
  "method": "POST",
  "path": "storage/edits/tables/{tableRid}/events",
  "pathParams": {
    "tableRid": "phonograph rid"
  },
  "queryParams": {},
  "bodyJson": {
    "primaryKey": {
      "uniq_field": "uniq_fieldValue"
    },
    "payload": {
      "type": "rowModified",
      "rowModified": {
        "columns": {
          "Comments": "Test Data"
        }
      }
    }
  }
}

答案1

得分: 0

首先需要创建写回数据集,然后这个问题将会被解决。
谢谢 nicornk

英文:

First the write back dataset needs to be created, then this issue will be resolved.
Thank you nicornk

huangapple
  • 本文由 发表于 2023年6月13日 18:54:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76464173.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定