# Problem Creating Object in Realtime DB

**URL:** <https://community.thunkable.com/t/problem-creating-object-in-realtime-db/565405>\
**Category:** Questions about Thunkable X\
**Created:** [May 12, 2020, 6:36pm UTC](https://community.thunkable.com/t/problem-creating-object-in-realtime-db/565405 "2020-05-12T18:36:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sr3](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sr3/32/68664_2.png) [@sr3](https://community.thunkable.com/u/sr3)\
**Post date:** [May 12, 2020, 6:36pm UTC](https://community.thunkable.com/t/problem-creating-object-in-realtime-db/565405/1 "2020-05-12T18:36:06Z")

</div>

Hi! I’m not having success creating an object in Realtime DB in the normal way. What I’m trying to create is:

{Service Center  
{Customer  
{Address Data}  
}  
}  
Maybe there’s something wrong with my blocks:

 ![Screenshot (20)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/2/d2469edc354fa0d29aea00458784995956d76843.png)

Realtime DB doesn’t acknowledge anything at all with this configuration. It looks similar to me to examples I’ve seen in videos that worked, and I actually had something like this working a couple weeks ago. But lately, nothing happens at all in the data base with this configuration.

I have been able to get the response I want in Realtime DB with this layout:

 ![Screenshot (19)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/88d8082c607bafeb4f01f12672e5e2452de9d571.png)

It works the way I want, but it seems like a lot of blocks that the other layout should also accomplish. Is there something I’m missing in object creation?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [May 16, 2020, 10:34pm UTC](https://community.thunkable.com/t/problem-creating-object-in-realtime-db/565405/2 "2020-05-16T22:34:29Z")

</div>

Hi @sr3,

Could you show a snippet of what your Firebase should look like, along with some more information on it. A project link would be awesome.

---

<div class="post-metadata">

**Author:** ![sr3](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sr3/32/68664_2.png) [@sr3](https://community.thunkable.com/u/sr3)\
**Post date:** [May 19, 2020, 9:17pm UTC](https://community.thunkable.com/t/problem-creating-object-in-realtime-db/565405/3 "2020-05-19T21:17:57Z")

</div>

Sorry for the delay. Busy weekend…

Here’s a screenshot of the Realtime DB:

 ![Screenshot (23)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/d/7d40c9025a276f1b7de8105da45297c167684ea1.png)

Project link: [Thunkable](https://x.thunkable.com/projects/5ea8e2b0990228b49f50f9ba/8da35e02-197b-44c0-8002-7abcf129b7ad/designer)

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [May 19, 2020, 11:57pm UTC](https://community.thunkable.com/t/problem-creating-object-in-realtime-db/565405/4 "2020-05-19T23:57:59Z")

</div>

Hi,

When the button is clicked, do you update all information under the persons name? Does the user submit all this data at the same time?  
ADDRESS LINE 1:  
ADDRESS LINE 2:  
CITY:  
STATE:  
ZIPCODE:

I don’t currently have access to a computer to show you a solution done out so apologies on that end. Your first set of blocks using the **create object with fields** block should work fine, this is how I would potentially achieve something like this. Thunkable Docs have an example of this [here](https://docs.thunkable.com/realtime-db#separating-your-data-into-project-buckets).

This post also has some information too:

> [@Project Bucket option in ios](http://community.thunkable.com/t/project-bucket-option-in-ios/31957/2):
>
> Hi, In Thunkable X, instead, you specify it in the block property “key”.

The only potential issue I can find with your blocks is two users having the same name, but this wasn’t in your request so I wont go there 😝

---

<div class="post-metadata">

**Author:** ![sr3](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sr3/32/68664_2.png) [@sr3](https://community.thunkable.com/u/sr3)\
**Post date:** [May 20, 2020, 4:45pm UTC](https://community.thunkable.com/t/problem-creating-object-in-realtime-db/565405/5 "2020-05-20T16:45:16Z")

</div>

Thanks! Since I’m the only one using this right now, I have made two users, both me, with the same name. 😉

I have tried using the create object with fields, and that’s when I don’t get a response from the database. Nothing happens. That’s when I looked for another option and did the cumbersome nesting solution. It works that way, so I don’t think the issue is having more than one user with the same name.

The weird thing is that at one point I did get something working with the create object with fields solution. But it quit working and I haven’t been able to figure out why…

---

<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, 11:29am UTC](https://community.thunkable.com/t/problem-creating-object-in-realtime-db/565405/6 "2024-11-08T11:29:05Z")

</div>


