# Fetching data from multiple sources

**URL:** <https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768>\
**Category:** Questions about Thunkable X\
**Created:** [September 21, 2020, 9:26pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768 "2020-09-21T21:26:15Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rojroj101s](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rojroj101s](https://community.thunkable.com/u/rojroj101s)\
**Post date:** [September 21, 2020, 9:26pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/1 "2020-09-21T21:26:15Z")

</div>

anyone else having trouble with their list viewer… mine seems to be crashing since last update…

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 22, 2020, 10:46am UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/2 "2020-09-22T10:46:27Z")

</div>

Hi @rojroj101s - can you give us a little more detail than this please? I was using the Data Viewer List yesterday, connected to Google Sheets, and eveything worked fine for me.

---

<div class="post-metadata">

**Author:** ![rojroj101s](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rojroj101s](https://community.thunkable.com/u/rojroj101s)\
**Post date:** [September 22, 2020, 1:21pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/3 "2020-09-22T13:21:47Z")

</div>

Hey @Domhnallohanlon,  
It seems if I run this function twice it crashes. This is the function that cant seem to work properly. Strangely it works the first time but if the function is used again it crashes…

 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/c/9c8262504438ba67e41a85b89a2539374e609c43.png)

I should mention It uses the Local DB

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 22, 2020, 1:24pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/4 "2020-09-22T13:24:23Z")

</div>

sorry @rojroj101s - the only data viewer I can see is at the very end, when you navigate to the `ScoreKeeper` screen?

---

<div class="post-metadata">

**Author:** ![rojroj101s](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rojroj101s](https://community.thunkable.com/u/rojroj101s)\
**Post date:** [September 22, 2020, 1:26pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/5 "2020-09-22T13:26:52Z")

</div>

So when I use this function it works fine the first time, It navigates to the data viewer and I can see my info… But if this function runs again, before it can navigate to scorekeeper it crashes and I get the thunkable beaver on my screen.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 22, 2020, 1:37pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/6 "2020-09-22T13:37:51Z")

</div>

Ok, I’m moving this to it’s own topic, since it seems the error is happening in your blocks somewhere before the data viewer list is opened.

Starting at the top this is what seems to be happening:

1. Get Row #10 from Airtable
2. Add a new row to the LocalDB, with an image and two strings (have you tried checking to see if the `get property` blocks are returning the correct values?)
3. Store the RowID of the new row in the LocalDB
4. Repeat steps 1-3 for Row 11 of your Airtable

---

<div class="post-metadata">

**Author:** ![rojroj101s](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rojroj101s](https://community.thunkable.com/u/rojroj101s)\
**Post date:** [September 22, 2020, 1:45pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/7 "2020-09-22T13:45:02Z")

</div>

Yeah. I did all that. It does work the first time, but when I ask the same DB to add more rows again it crashes… I think the LocalDB might be corrupt.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 22, 2020, 1:46pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/8 "2020-09-22T13:46:58Z")

</div>

> [@rojroj101s](#):
>
> I think the LocalDB might be corrupt.

Your specific LocalDB (i.e. “Home Finalized DB”) or the component in general?

---

<div class="post-metadata">

**Author:** ![rojroj101s](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rojroj101s](https://community.thunkable.com/u/rojroj101s)\
**Post date:** [September 22, 2020, 1:48pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/9 "2020-09-22T13:48:41Z")

</div>

The component in general… Because it does the same thing with the away side… This was all working fine… I have the APK from when it was working… but now its not… its seems its crashing if this componant is being used twice…?

---

<div class="post-metadata">

**Author:** ![rojroj101s](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rojroj101s](https://community.thunkable.com/u/rojroj101s)\
**Post date:** [September 22, 2020, 1:53pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/10 "2020-09-22T13:53:54Z")

</div>

You could maybe test this… If you create a row in LocalDB…Let that action finish… Then later in your app create another row in that LocalDB… My guess is, it will crash…

---

<div class="post-metadata">

**Author:** ![Steven](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Steven](https://community.thunkable.com/u/Steven)\
**Post date:** [September 22, 2020, 4:30pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/11 "2020-09-22T16:30:12Z")

</div>

Are you updating the data source from a screen where the Data Viewer component linked to the source is not visible? If so, this is a known issue and I have a fix which we are currently testing and hope to release within the next day or so. I apologize for the inconvenience! We’re working on getting this out ASAP.

If this isn’t the case, I can take a look if you want to share your project with me (DM is fine) to see if we can determine what the issue might be.

---

<div class="post-metadata">

**Author:** ![rojroj101s](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rojroj101s](https://community.thunkable.com/u/rojroj101s)\
**Post date:** [September 23, 2020, 12:20am UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/12 "2020-09-23T00:20:37Z")

</div>

yes this sounds like it could be my situation. I’m updating a data source that is in another screen and it not visible until I navigate to that screen and make it visible.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:23pm UTC](https://community.thunkable.com/t/fetching-data-from-multiple-sources/839768/13 "2024-11-08T12:23:48Z")

</div>


