# An error occurred in one of datasetReady callbacks - help needed

**URL:** <https://forum.wixstudio.com/t/an-error-occurred-in-one-of-datasetready-callbacks-help-needed/55950>\
**Category:** Ask the community\
**Tags:** wix-dataset, code, wix-studio\
**Created:** [February 1, 2024, 6:55pm UTC](https://forum.wixstudio.com/t/an-error-occurred-in-one-of-datasetready-callbacks-help-needed/55950 "2024-02-01T18:55:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charly\_Hamlyn](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/charly_hamlyn/32/87878_2.png) [@Charly\_Hamlyn](https://forum.wixstudio.com/u/Charly_Hamlyn)\
**Post date:** [February 1, 2024, 6:55pm UTC](https://forum.wixstudio.com/t/an-error-occurred-in-one-of-datasetready-callbacks-help-needed/55950/1 "2024-02-01T18:55:22Z")

</div>

I’m new to Wix, so sorry in advance!

I am learning my way around datasets and trying to start slowly but hitting issues even so.

Here is my test code

```javascript
$w.onReady(() => {
    $w('#MemberItem').onReady(() => {
        let MyItem = $w('#MemberItem').getCurrentItem();

        console.log(MyItem.ownStudio);

        if (MyItem.ownStudio != "No") {

            Console.log('Expand?');

            // $w('#StudioDetails').expand();

        } else {
            console.log('dont expand');
        }

    })

    console.log('hello');
});

```

When I preview I get:

hello Individual Gallery Line 23  
Yes Individual Gallery Line 9

UserError: An error occurred in one of datasetReady callbacks Caused by ReferenceError: Console is not defined  
Caused by: ReferenceError: Console is not defined

I assume I’m doing something stupid, just like to know what!

Charly

---

<div class="post-metadata">

**Author:** ![Charly\_Hamlyn](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/charly_hamlyn/32/87878_2.png) [@Charly\_Hamlyn](https://forum.wixstudio.com/u/Charly_Hamlyn)\
**Post date:** [February 1, 2024, 7:00pm UTC](https://forum.wixstudio.com/t/an-error-occurred-in-one-of-datasetready-callbacks-help-needed/55950/2 "2024-02-01T19:00:38Z")

</div>

ffs

Having looked at the code above where suddenly the second call to console.log is all red, I went back and retyped that in and now it works.

I’ll go crawl back in my shell and watch out for capital letters better.
