# Could not resolve dynamic filter

**URL:** <https://forum.wixstudio.com/t/could-not-resolve-dynamic-filter/3776>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [November 13, 2021, 7:50pm UTC](https://forum.wixstudio.com/t/could-not-resolve-dynamic-filter/3776 "2021-11-13T19:50:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stjepan](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/stjepan/32/7900_2.png) [@stjepan](https://forum.wixstudio.com/u/stjepan)\
**Post date:** [November 13, 2021, 7:50pm UTC](https://forum.wixstudio.com/t/could-not-resolve-dynamic-filter/3776/1 "2021-11-13T19:50:07Z")

</div>

I’m trying to setup example from the example [https://www.wix.com/velo/example/service-list](https://www.wix.com/velo/example/service-list)  
I setup everything like it is on the example inside my project but with different database. Here is the code that I setup and initial load works as expected but browsing within categories loads this error:  
An error occurred in one of currentIndexChanged callbacks DatasetError: could not resolve dynamic filter  
. Can someone give me the hint?  
In attachment is the examples and whole setup:

import wixData from “wix-data” ;

import wixWindow from ‘wix-window’ ;

let isMobile ;

$w . onReady (() =\> {  
isMobile = wixWindow . formFactor === “Mobile” ;  
})

function showLoader ( show = **false** ) {  
if ( show === **false** ) {  
$w ( “#servicesLoaderMobile” ). hide ();  
$w ( “#servicesLoader” ). hide ();  
}  
if ( show === **true** ) {  
if ( isMobile === **true** ) {  
$w ( “#servicesLoaderMobile” ). show ();  
}  
**else** {  
$w ( “#servicesLoader” ). show ();  
}  
}  
}

//-------------Repeater Setup-------------//

// Set up each item in the services repeater as it is loaded. Note that  
// most of the repeater elements are populated using a dataset.  
**export async function** servicesRepeater\_itemReady ( $item , itemData , index ) {  
if ( index === 0 ) {  
showLoader ( **false** );  
}

}

// Set the category of services to display.  
**async function** setActiveCategory ( title , queryFilter ) {  
$w ( “#servicesRepeater” ). data = ;  
// Populate the title text with the given title.  
$w ( “#stripTitle” ). text = title ;  
showLoader ( **true** )  
// Filter the categories dataset using the given filter.  
**await** $w ( “#categoriesDataset” ). setFilter ( queryFilter );

}

// Scroll down to the displayed services.  
function scrollToServiceStrip () {  
$w ( “#servicesStrip” ). scrollTo ();  
}

/\*\*

- Adds an event handler that runs when the element is clicked.  
[Read more](https://www.wix.com/corvid/reference/$w.ClickableMixin.html#onClick)
- @param {$w.MouseEvent} event  
\*/  
export function breatheButton\_click\_1 ( event ) {  
// Create a filter that filters out all services that are not in the Breathe category.  
console . log ( wixData . filter (). eq ( “category” , “IMPLANTOLOGIJA” ))

```
const breatheQuery = wixData . filter (). eq ( "category" , "IMPLANTOLOGIJA" ); 
// Set the active category to the breathe category. 
setActiveCategory ( "IMPLANTOLOGIJA" , breatheQuery ); 
// Scroll the page to the list of services. 
scrollToServiceStrip (); 

```

}

/\*\*

- Adds an event handler that runs when the element is clicked.  
[Read more](https://www.wix.com/corvid/reference/$w.ClickableMixin.html#onClick)
- @param {$w.MouseEvent} event  
\*/  
export function moveButton\_click\_1 ( event ) {  
// Create a filter that filters out all services that are not in the Move category.  
const moveQuery = wixData . filter (). eq ( “category” , “ORALNA KIRURGIJA” );  
// Set the active category to the move category.  
setActiveCategory ( “ORALNA KIRURGIJA” , moveQuery );  
// Scroll the page to the list of services.  
scrollToServiceStrip ();  
}

/\*\*

- Adds an event handler that runs when the element is clicked.  
[Read more](https://www.wix.com/corvid/reference/$w.ClickableMixin.html#onClick)
- @param {$w.MouseEvent} event  
\*/  
export function nourishButton\_click ( event ) {  
// Create a filter that filters out all services that are not in the Nourish category.  
const nourishQuery = wixData . filter (). eq ( “category” , “PROTETIKA” );  
// Set the active category to the nourish category.  
setActiveCategory ( “PROTETIKA” , nourishQuery );  
// Scroll the page to the list of services.  
scrollToServiceStrip ();  
}

 ![](https://us1.discourse-cdn.com/wix/original/3X/b/0/b08c6b124541237d7db089c642c9193fdabda27d.jpeg)

 ![](https://us1.discourse-cdn.com/wix/original/3X/c/9/c9f8e6fb40ed3eaf25a4827ad10a1289aa87e6d4.jpeg)

 ![](https://us1.discourse-cdn.com/wix/original/3X/d/7/d79b6d85d4157ab033e119fb311646b494762562.png)

 ![](https://us1.discourse-cdn.com/wix/original/3X/9/7/9711e20fdda4f7135eca7c1139143b1d4f5bcf3a.jpeg)

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [November 14, 2021, 10:06am UTC](https://forum.wixstudio.com/t/could-not-resolve-dynamic-filter/3776/2 "2021-11-14T10:06:32Z")

</div>

I’m not sure what exactly the problem, but your servicesRepeater\_itemReady function is missing nearly all of the code that the example has. Using the code in the example, you will need to add the appropriate code to render the Repeater items.

---

<div class="post-metadata">

**Author:** ![stjepan](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/stjepan/32/7900_2.png) [@stjepan](https://forum.wixstudio.com/u/stjepan)\
**Post date:** [November 14, 2021, 6:01pm UTC](https://forum.wixstudio.com/t/could-not-resolve-dynamic-filter/3776/3 "2021-11-14T18:01:57Z")

</div>

Hi @yisrael-wix The problem is when I click on any category button bottom list doesn’t change but it is gone and mentioned issue is present. Only on the initial load I can see the items. servicesRepeater\_itemReady i n example contains the logic for the next availability period, which I removed from my setup because it is not needed. Problem is as you can see somewhere withing filter chaining and regarding the excpetion some kind of indexing in dataset…  
Items in collections are in sand box with public permission.

Here is the exception

 ![](https://us1.discourse-cdn.com/wix/original/3X/b/2/b2599381954255a76036f9f40cfbac523acce9fd.png)

---

<div class="post-metadata">

**Author:** ![stjepan](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/stjepan/32/7900_2.png) [@stjepan](https://forum.wixstudio.com/u/stjepan)\
**Post date:** [November 14, 2021, 9:23pm UTC](https://forum.wixstudio.com/t/could-not-resolve-dynamic-filter/3776/4 "2021-11-14T21:23:14Z")

</div>

I solve the problem. The issue was in the filter by category column named in the code as “category” while it was named “title” in the collection.  
Thanks for the
