Image shows the azure table JavaScriptを使用してAzureテーブルストレージから最新のレコードを取り出す方法は?JavaScriptを使用してAzureテーブルストレージから最新のレコードを取り出す方法は?
私は、記事を見た How to retrieve latest record using RowKey or Timestamp in Azure Table storage
しかし、私は、Nodejsサーバ側で任意の提案を同じを実装したいです。 コードはこれまでのところ、
var dt = Date().toLocaleString();
console.log("Got response: " + dt);
var entGen = azure.TableUtilities.entityGenerator;
var task = {
PartitionKey: entGen.String('ConfigData'),
RowKey: dt,
DeviceId: entGen.String(req.body.devId),
};
// Insert the entity to the table
tableSvc.insertEntity('configurationData', task, function (error, result, response) {
if (!error) {
// Entity inserted
console.log("Added the data in table successfully");
}
else{
console.log(error);
}
});
私は、エラーの下に事前に
name: 'StorageError',
message: 'The \'RowKey\' parameter of value \'11/21/2017, 8:17:24 AM\' is out of range.\nRequestId:687de370-0002-0055-09a1-62d5e1000000\nTime:2017-11-21T08:17:25.6350503Z',
code: 'OutOfRangeInput',
statusCode: 400,
requestId: '687de370-0002-0055-09a1-62d5e1000000' }
感謝を得ました。
はあなたが表示されことができますどのようにデータがどのように見えるのですか? 何か問題がありますか? – Adriano
質問に記載されている記事に従おうとしました。 問題はC#にあります。 javascript –
データの見た目はどうですか...リスト、配列、辞書、JSONファイルですか? – Adriano