Hey Guys, hope you’re doing great
We’re using CDK to create our dashboard and everything related to Quicksight.
We created our schema based on the Quicksight one (basically we did the Dashboard in the UI, then describe-dashboard-definition thanks to the CLI and put it in CDK)
It was going really smooth. We have it for 2 month already, but since this morning, everytime we try to deploy FROM SCRATCH (that’s important), it fails on a specific parameter.
I want to point out that resources created before, don’t have this issue since their not being updated, or created, since they’re existing already. So it worked before, no question about that. It’s really recent and new ones are not being created. Following are the informations:
We have a calculated field, that is called startDate
, using this expression:
parseDate(replace(firstValue(createdAt, [createdAt ASC], [actionId]), "Z", ""), "yyyy-MM-dd'T'HH:mm:ss.SSS")
Then we have a visual, that is a simple table.
And in this table, we’re using this field in Values
as a Date
that we customise to look as a french date. With the format MMM D, H:mm:ss
So it looks like that:
{
tableVisual: {
chartConfiguration: {
fieldWells: {
tableAggregatedFieldWells: {
values: [
{
dateMeasureField: {
fieldId: "startDateField",
column: {
dataSetIdentifier: datasetName,
columnName: "startDate",
},
formatConfiguration: {
dateTimeFormat: "MMM D, H:mm:ss",
},
},
},
],
},
},
},
},
}
}
I voluntarily remove everything else because we know that it comes from that. Since removing
formatConfiguration: {
dateTimeFormat: "MMM D, H:mm:ss",
},
from the schema makes everything work
When we’re deploying now, we got this error
startDateField can not have unAggregated format
PS: sheet/executionsSheet/visual/executionsListVisual/field/startDateField
is the violated entity in the error log, so it’s definitely that.
Sure we could just remove this, but the date would be non french readable for our clients.
Does anyone has more infos about that ? Or about something that has changed ?
Thanks a lot