2 Answers
- Newest
- Most votes
- Most comments
0
try this code instead, and replace it with your Vars and values:
using Amazon.TimestreamWrite;
using Amazon.TimestreamWrite.Model;
public async Task UpdateTimeStreamTableForHistoricalData(string databaseName, string tableName)
{
var client = new AmazonTimestreamWriteClient();
var request = new UpdateTableRequest
{
DatabaseName = databaseName,
TableName = tableName,
MagneticStoreWriteProperties = new MagneticStoreWriteProperties
{
EnableMagneticStoreWrites = true,
MagneticStoreRejectedDataLocation = new MagneticStoreRejectedDataLocation
{
S3Configuration = new S3Configuration
{
BucketName = "your-s3-bucket-for-rejected-data",
ObjectKeyPrefix = "timestream-rejected-data/"
}
}
}
};
try
{
var response = await client.UpdateTableAsync(request);
Console.WriteLine($"Table updated successfully. Status: {response.Table.TableStatus}");
}
catch (Exception e)
{
Console.WriteLine($"Error updating table: {e.Message}");
}
}
answered 2 months ago
0
If you are still facing this issue, can you pls report this issue via AWS support? https://aws.amazon.com/contact-us/
Thanks!
answered 2 months ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago
No, this does not help. I wrote in my question already, this settigs are set. "Magnetic store writes" are activated and the bucket set.
But i'm still getting this error "The record timestamp is outside the time range [2024-04-11T08:46:40.278Z, 2024-08-24T19:44:25.419Z) of the data ingestion window.,".
--> Where does this date come from 2024-04-11T08:46:40.278Z? Can it be changed ?