# Data Source Not Updating

**URL:** <https://community.thunkable.com/t/data-source-not-updating/1829554>\
**Category:** Questions about Thunkable X\
**Tags:** data-source, data-viewer, google-sheets\
**Created:** [April 12, 2022, 2:55am UTC](https://community.thunkable.com/t/data-source-not-updating/1829554 "2022-04-12T02:55:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![josiahbugdenr](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/josiahbugdenr/32/130880_2.png) [@josiahbugdenr](https://community.thunkable.com/u/josiahbugdenr)\
**Post date:** [April 12, 2022, 2:55am UTC](https://community.thunkable.com/t/data-source-not-updating/1829554/1 "2022-04-12T02:55:04Z")

</div>

I’ve been working on an app that requires the ability to edit and view values stored in the cloud across multiple devices. To do this, I’ve been using a Google Sheet as a data source. However, whenever I update a value on the sheet, the change is not reflected in any of the data viewers, or values that reference the data source. I have to manually refresh the page/app in order to see the changes. I noticed on other posts that people have had this same problem in the past but couldn’t find any solutions. Is there any way to force the app to refresh the data source after a value is updated?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 12, 2022, 3:09am UTC](https://community.thunkable.com/t/data-source-not-updating/1829554/2 "2022-04-12T03:09:04Z")

</div>

1. Have you tried using the Data Viewer List’s **Refresh** block?

> **[Data Viewer List](https://docs.thunkable.com/data-viewer-list#refresh)**
>
> Create powerful, no-code, data-driven apps connected directly to Google Sheets, Airtable, or stored locally.

1. There is currently a bug with the Get Value block in Thunkable:

> <https://github.com/thunkable/thunkable-issues/issues/1138>
>
> \### Platform
> Drag and Drop UI - web?
> Drag and Drop UI - iOS?
> 
> \### Steps to R…eproduce
> 1. Click the "Get & update values" button to get and display a value from a Google Sheet cell (e.g. 4), and update the value by one (e.g. 4+1).
> 3. Wait a few seconds (or more) and click the "Get new value" button.
> 
> \### Expected Behavior
> I would expect the second time the value is displayed that it includes the added value (e.g. 5).
> 
> \### Actual Behavior
> The second time the value is displayed, it shows the original value (e.g. 4).
> 
> \### Project Link
> https://x.thunkable.com/copy/1feeef38c13e4150815598a95155e283
> 
> \###Community Link
> https://community.thunkable.com/t/cant-get-value-from-google-sheets/1816128
> 
> \`\`\`
> STACK TRACE AND/OR SCREENSHOTS
> \`\`\`

---

<div class="post-metadata">

**Author:** ![josiahbugdenr](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/josiahbugdenr/32/130880_2.png) [@josiahbugdenr](https://community.thunkable.com/u/josiahbugdenr)\
**Post date:** [April 12, 2022, 3:25am UTC](https://community.thunkable.com/t/data-source-not-updating/1829554/3 "2022-04-12T03:25:08Z")

</div>

Thanks for the quick reply @tatiang! The Refresh block works to refresh data displayed in my Data Viewer, but not the data called up by the Get Value blocks - I assume that’s because of the bug that you mentioned. Do you know if there’s any way to reference the values stored in the Data Viewer rather than using the Get Value blocks as a work-around for this?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 12, 2022, 4:02am UTC](https://community.thunkable.com/t/data-source-not-updating/1829554/4 "2022-04-12T04:02:24Z")

</div>

Values are not stored in Data Viewers. They are stored in Data Sources and then Data Viewers display the stored data.

What is it you’re wanting to do? @muneer successfully used the `get row object` block recently to get values from a data source but I had mixed results with that.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 12, 2022, 11:24am UTC](https://community.thunkable.com/t/data-source-not-updating/1829554/5 "2022-04-12T11:24:17Z")

</div>

> [@josiahbugdenr](#):
>
> Do you know if there’s any way to reference the values stored in the Data Viewer rather than using the Get Value blocks as a work-around for this?

This has always worked for me

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/d/4da7cdf115a17e8336e3b5262c3332c004b63a18.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 11, 2022, 11:24am UTC](https://community.thunkable.com/t/data-source-not-updating/1829554/6 "2022-07-11T11:24:30Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
