# Non existing related data requested

**URL:** https://community.forestadmin.com/t/non-existing-related-data-requested/3367
**Category:** Help me!
**Created:** [September 29, 2021, 10:00am UTC](https://community.forestadmin.com/t/non-existing-related-data-requested/3367 "2021-09-29T10:00:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JeremyV](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/jeremyv/32/1033_2.png) [@JeremyV](https://community.forestadmin.com/u/JeremyV)
#### Post date: [September 29, 2021, 10:00am UTC](https://community.forestadmin.com/t/non-existing-related-data-requested/3367/1 "2021-09-29T10:00:02Z")

</div>

I got a new error message that have never occurred in the past :

![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/6/664c91c46327ba45295b16ddcad35a40861a081b.png)

```javascript
IntegrationBudgets.hasMany(models.integrationBudgetEntries, {
      foreignKey: {
        name: 'integrationBudgetIdKey',
        field: 'integration_budget_id',
      },
      as: 'integrationBudgetIntegrationBudgetEntries',
    });

```

```javascript
router.post('/actions/ajouter-ligne-budget', permissionMiddlewareCreator.smartAction(), (request, response) => {
  const data = request.body.data.attributes.values;
  const integration_budget_id = request.body.data.attributes.ids[0];
  const repartition_key_id = data['Clé de répartition'].split(' - ')[0];

  const body = {
    integration_budget_entry: {
      integration_budget_id,
      display_name: data['Libellé'],
      repartition_key_id,
      amount: data['Montant TTC'] * 100
    }
  };

  axios.post(`${API_URL}/forest_admin/integration_budget_entries`, body, {
    headers: {
      'Authorization': `Bearer ${process.env.ACCESS_TOKEN}`,
      'X-CURRENT-USER-EMAIL': request.user.email
    },
  }).then(() => {
    response.send({
      refresh: {
        relationships: ['integrationBudgetIntegrationBudgetEntries']
      }
    });
  }).catch(err => {
    response.status(400).send({ error: err.response.data.error.message });
  });
});

```

The error is triggered because of the “refresh” statement in the response.send.

---

<div class="post-metadata">

### Author: ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)
#### Post date: [September 29, 2021, 12:37pm UTC](https://community.forestadmin.com/t/non-existing-related-data-requested/3367/2 "2021-09-29T12:37:54Z")

</div>

Hey @JeremyV 👋,

This message was introduced yesterday, but indeed, in your configuration it should not appear. This is due to your `"as": "xxx"` alias.

~~However, this message is only for information purpose, and your related data should still be refreshed as expected. Could you confirm ?~~  
It does impact the behavior of the data refresh. We are currently working on the fix and I’ll keep you informed once it is released.

Sorry for the inconvenience

---

<div class="post-metadata">

### Author: ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)
#### Post date: [September 29, 2021, 3:48pm UTC](https://community.forestadmin.com/t/non-existing-related-data-requested/3367/3 "2021-09-29T15:48:49Z")

</div>

Hey @JeremyV. The change was rollbacked, your relation should be refreshed as expected.

Let me know 🙏

---

<div class="post-metadata">

### Author: ![JeremyV](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/jeremyv/32/1033_2.png) [@JeremyV](https://community.forestadmin.com/u/JeremyV)
#### Post date: [October 1, 2021, 12:27pm UTC](https://community.forestadmin.com/t/non-existing-related-data-requested/3367/4 "2021-10-01T12:27:26Z")

</div>

Indeed @anon39848301 the message has disappeared, Many thanks.
