Prashant Sharma
01/09/2023, 4:20 PMexecute API
which gives as executionResponse.
Note: The issue is intermittent.Robert Moucha
01/09/2023, 4:26 PMoffset=0%2C0&limit=10%2C100
uri-decoded means:
offset=0,0
limit=10,100
This means the resultSpec must have exactly 2 dimensions. The error suggests that returned resultSpec for given AFM request has only one dimension.Robert Moucha
01/09/2023, 4:31 PMPrashant Sharma
01/09/2023, 4:32 PMPrashant Sharma
01/09/2023, 4:35 PMgdAnalyticalWorkspace.execution()
.forBuckets(insightBuckets, filters
.withSorting(sortingItems)
.execute()
.then((executionResult) => {
//response
}).catch(e => console.error(e));
Prashant Sharma
01/09/2023, 4:42 PMPrashant Sharma
01/10/2023, 8:08 AMgdAnalyticalWorkspace.execution()
.forBuckets(insightBuckets, filters
.withSorting(sortingItems)
.execute()
.then((executionResult) => {
//response
}).catch(e => console.error(e));
the payload only contains 1 dimension ie. dim_0. I believe this one is automatically generated using the dimensionGenerator
as the insight contains only one attribute and no measure.
Ideally, as we have only one attribute with no measure in the insight, there shouldn't be any second dimension with the payload. However, with InsightView component, the second dimension for measures with an empty itemIdentifiers
is going along with the API hence the API works.
If sending the empty itemIdentifers in dim_1 is the only solution, then it should go along with the custom AFM execute call as well.
Kindly look into the issue and let us know if there's any fix available.Prashant Sharma
01/10/2023, 2:53 PMDan Homola
01/10/2023, 3:13 PMwithDimensions
call in the builder (similar to withSorting
). There are factory functions in @gooddata/sdk-model
that will help you create the executions:
• newDimension
• newTwoDimensional
Also for some inspiration/real life example, here is how our BarChart generates the dimensions.Dan Homola
01/10/2023, 3:17 PMPrashant Sharma
01/10/2023, 3:20 PMMatyáš Kandl
01/10/2023, 3:26 PM.readAll()
?Prashant Sharma
01/10/2023, 3:28 PM.executionResult.readWindow([ 0, startRow ], [ 10, endRow ])
Matyáš Kandl
01/10/2023, 3:28 PMreadWindow([0, 0], [100, 10])
which does not make sense for 1 dimension.Matyáš Kandl
01/10/2023, 3:31 PM.readWindow([dim1_result_offset], [dim1_result_size])
Prashant Sharma
01/10/2023, 3:34 PMPrashant Sharma
01/10/2023, 3:34 PMreadAll
Matyáš Kandl
01/10/2023, 3:38 PMPrashant Sharma
01/10/2023, 3:46 PMMatyáš Kandl
01/10/2023, 3:58 PMPrashant Sharma
01/11/2023, 11:26 AMPrashant Sharma
01/12/2023, 10:29 AMPetr Dolejsi
01/12/2023, 11:45 AMPrashant Sharma
01/12/2023, 1:21 PMPrashant Sharma
01/12/2023, 1:21 PMPetr Dolejsi
01/12/2023, 1:23 PM<iframe src="AD_URL" style="display: none" />
Petr Dolejsi
01/12/2023, 1:24 PMsrc
starts as about:black
, when KPI dashboards are loaded, src
is set to URL of AD, when overlay with AD is supposed to be displayed, display
style property is changed to block
. Something in this vein is happening there.Prashant Sharma
01/12/2023, 1:26 PMPetr Dolejsi
01/12/2023, 1:26 PMPrashant Sharma
01/12/2023, 1:27 PMPetr Dolejsi
01/12/2023, 1:27 PM