About 2 days ago, the same old code start getting the following error and page is not loading to due to 500 error. However, not sure what are the causes.
DatasetError: Operation (getTotalCount) not allowed on an unconfigured dataset
DatasetError: Operation (onReady) not allowed on an unconfigured dataset
Anyone has idea for the solution? thank you for the help!
$w.onReady(function () {
if (wixWindow.rendering.renderCycle === 1) {
$w("#appDataset").onReady(() => {
// Show total candidate count
let count = $w("#appDataset").getTotalCount(); // ex. 23
$w("#textTotalCandidates").text = count.toString();
refreshItemComponents();
});
});
Severe malfunction The only solution. It's simple to delete and re-add.
This also happens in the filter.
A lot of filters were broken. Simply go through the filters and fix them.
Is the dataset connected to a database?