# Can't create new resources

**URL:** https://community.forestadmin.com/t/cant-create-new-resources/2270
**Category:** Help me!
**Created:** [April 8, 2021, 11:01am UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270 "2021-04-08T11:01:27Z")
**Posts on this page:** 11
**Page:** 2

<div class="post-metadata">

### Author: ![anon90145840](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon90145840](https://community.forestadmin.com/u/anon90145840)
#### Post date: [April 8, 2021, 1:42pm UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/21 "2021-04-08T13:42:37Z")

</div>

It needs to be different from dev, devel, develop, development, local or localhost. That’s why I was suggesting Staging

---

<div class="post-metadata">

### Author: ![nathanqueija](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nathanqueija/32/1837_2.png) [@nathanqueija](https://community.forestadmin.com/u/nathanqueija)
#### Post date: [April 8, 2021, 1:46pm UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/22 "2021-04-08T13:46:06Z")

</div>

Yeah, that fixes the issue. Is this documented somewhere or is it a bug on your side?

---

<div class="post-metadata">

### Author: ![anon90145840](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon90145840](https://community.forestadmin.com/u/anon90145840)
#### Post date: [April 8, 2021, 1:48pm UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/23 "2021-04-08T13:48:02Z")

</div>

As for the creation issue, from the data you provided, I can see that the `id` field is missing from the response.

As mentioned in the [documentation](https://docs.forestadmin.com/documentation/reference-guide/collections/create-a-smart-collection#creating-a-smart-collection) you need to have a unique `id` in the Smart Collection for it to work correctly

---

<div class="post-metadata">

### Author: ![anon90145840](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon90145840](https://community.forestadmin.com/u/anon90145840)
#### Post date: [April 8, 2021, 1:49pm UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/24 "2021-04-08T13:49:18Z")

</div>

It’s a bug from our side that we are aware of, and it will be solved ASAP

---

<div class="post-metadata">

### Author: ![nathanqueija](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nathanqueija/32/1837_2.png) [@nathanqueija](https://community.forestadmin.com/u/nathanqueija)
#### Post date: [April 8, 2021, 1:50pm UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/25 "2021-04-08T13:50:38Z")

</div>

No wait, you asked for the data in `request.body.data` not in the response. In the request I don’t have any IDs yet.  
Do you mean in the response I pass to the serializer, correct? Let me check this.  
What I don’t understand is why this stopped working. We never sent an ID in the creation route. For the GET route we have IDs of course, but for the POST we never sent an ID and it worked from the beginning. Is this an update on your side? I’ll double check here and will let you know.

---

<div class="post-metadata">

### Author: ![anon90145840](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon90145840](https://community.forestadmin.com/u/anon90145840)
#### Post date: [April 8, 2021, 1:53pm UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/26 "2021-04-08T13:53:06Z")

</div>

The data I would like to see is the data you pass to the serializer here

```javascript
serializer.serialize(request.body.data.attributes)

```

---

<div class="post-metadata">

### Author: ![nathanqueija](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nathanqueija/32/1837_2.png) [@nathanqueija](https://community.forestadmin.com/u/nathanqueija)
#### Post date: [April 8, 2021, 1:54pm UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/27 "2021-04-08T13:54:01Z")

</div>

Ok, I’ll check and let you know. Just a moment.

---

<div class="post-metadata">

### Author: ![nathanqueija](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nathanqueija/32/1837_2.png) [@nathanqueija](https://community.forestadmin.com/u/nathanqueija)
#### Post date: [April 9, 2021, 7:42am UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/28 "2021-04-09T07:42:28Z")

</div>

Hi Olesya,

This solved the issue. We serialized the id of the newly created resource and sent it back in the response and the bug is gone. This still intrigues me tough because we created a bunch of resources before without sending the ID and we never faced this error.  
I’d like to suggest a better error message when this happens, by the message I was getting: `This collection does not exist` I would never figure out that this is the issue.  
I appreciate your attention and support.

---

<div class="post-metadata">

### Author: ![nathanqueija](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nathanqueija/32/1837_2.png) [@nathanqueija](https://community.forestadmin.com/u/nathanqueija)
#### Post date: [April 9, 2021, 7:50am UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/29 "2021-04-09T07:50:18Z")

</div>

What is still not fixed is the Activity tab. The API call to `https://api.forestadmin.com/api/rendering/86432/activity-logs?page%5Bnumber%5D=1` times out or returns 500.

It says missing Allow Origin Header.

---

<div class="post-metadata">

### Author: ![anon90145840](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon90145840](https://community.forestadmin.com/u/anon90145840)
#### Post date: [April 9, 2021, 8:09am UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/30 "2021-04-09T08:09:53Z")

</div>

Hello Nathan,

Would you mind opening a different ticket for this issue to keep better track of it? Thanks

---

<div class="post-metadata">

### Author: ![nathanqueija](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nathanqueija/32/1837_2.png) [@nathanqueija](https://community.forestadmin.com/u/nathanqueija)
#### Post date: [April 9, 2021, 9:35am UTC](https://community.forestadmin.com/t/cant-create-new-resources/2270/31 "2021-04-09T09:35:42Z")

</div>

Sure, I just created a new issue.

[Previous page](https://community.forestadmin.com/t/cant-create-new-resources/2270.md?page=1)
