# Error message not shown when creating an associated record fails

**URL:** <https://community.forestadmin.com/t/error-message-not-shown-when-creating-an-associated-record-fails/631>\
**Category:** Help me!\
**Tags:** howtos\
**Created:** [July 9, 2020, 8:21am UTC](https://community.forestadmin.com/t/error-message-not-shown-when-creating-an-associated-record-fails/631 "2020-07-09T08:21:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shriram\_Balakrishnan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shriram_balakrishnan/32/424_2.png) [@Shriram\_Balakrishnan](https://community.forestadmin.com/u/Shriram_Balakrishnan)\
**Post date:** [July 9, 2020, 8:21am UTC](https://community.forestadmin.com/t/error-message-not-shown-when-creating-an-associated-record-fails/631/1 "2020-07-09T08:21:56Z")

</div>

I have 2 collections:

1. Microskills
2. Skills

Microskills have SkillId.

Here is the list of steps to reproduce this issue:

1. In “Add Microskill”, I am shown this “create a new Skill” green text.
2. Upon clicking this, I land on “create skill” page.
3. In this page, if creation of Skill fails due to validation error, then no error message is shown.

## Expected behavior

Error message to be shown

## Actual behavior

**No Error message is getting shown**

## Failure Logs

Here is the browser console log.

```javascript
POST http://localhost:3310/forest/skills 500 (Internal Server Error)
vendor-6fea72923c819…759e3b8ff7.js:20933 
r {isAdapterError: true, stack: "Error: Ember Data Request POST http://localhost:33…dor-6fea72923c819ced706dc8759e3b8ff7.js:1396:698)", description: undefined, fileName: undefined, lineNumber: undefined, …}
description: undefined
errors: Array(1)
0:
detail: "Field 'name' doesn't have a default value"
status: 500
__proto__ : Object
[]: (...)
firstObject: (...)
hasArrayObservers: (...)
lastObject: (...)
length: 1
__proto__ : Array(0)
fileName: undefined
isAdapterError: true
lineNumber: undefined
message: "Ember Data Request POST http://localhost:3310/forest/skills returned a 500↵Payload (application/json; charset=utf-8)↵[object Object]"
name: "Error"
number: undefined
stack: "Error: Ember Data Request POST http://localhost:3310/forest/skills returned a 500↵Payload (application/json; charset=utf-8)↵[object Object]↵ at r (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13745:19)↵ at new r (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13749:54)↵ at r.handleResponse (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13819:26)↵ at r.handleResponse (http://app.forestadmin.com/assets/client-35e188907a4790012158017c8e2e66b3.js:6405:20)↵ at r [as handleResponse] (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:3462:9)↵ at s (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13786:14)↵ at http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13829:8↵ at r.Ember.RSVP.Promise.h.error (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:13829:19)↵ at u (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:1395:118)↵ at Object.fireWith [as rejectWith] (http://app.forestadmin.com/assets/vendor-6fea72923c819ced706dc8759e3b8ff7.js:1396:698)"
__proto__ : Error

```

## Context

- Package Version: 6.2.1
- Express Version: 4.16.4
- Sequelize Version: 5.15.2
- Database Version: MySQL 5.7
- Project Name: xs-library-local-dev

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [July 9, 2020, 9:05am UTC](https://community.forestadmin.com/t/error-message-not-shown-when-creating-an-associated-record-fails/631/2 "2020-07-09T09:05:20Z")

</div>

Hey @Shriram_Balakrishnan,

Thanks for reporting your issue!  
May I ask you to send screenshots/screencast of your issue so that I’m sure what’s your problem and how it happens exactly?

Thank you.

---

<div class="post-metadata">

**Author:** ![Shriram\_Balakrishnan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shriram_balakrishnan/32/424_2.png) [@Shriram\_Balakrishnan](https://community.forestadmin.com/u/Shriram_Balakrishnan)\
**Post date:** [July 9, 2020, 9:49pm UTC](https://community.forestadmin.com/t/error-message-not-shown-when-creating-an-associated-record-fails/631/3 "2020-07-09T21:49:13Z")

</div>

Here is the screenshot of error.

Note that this happens only when I try to create `Topic` from the `MicroTopic` Creation form by clicking on the “Create a new Topic” green text present on the Topic field of MicroTopic creation form.

 ![Screenshot 2020-07-10 at 3.13.34 AM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/485bb244fc466d070adff25abf620ab4401d7714.png)

---

<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:** [July 10, 2020, 7:58am UTC](https://community.forestadmin.com/t/error-message-not-shown-when-creating-an-associated-record-fails/631/4 "2020-07-10T07:58:11Z")

</div>

Hi @Shriram_Balakrishnan,

I’m able to reproduce your issue, the error message does not seems to appear on my end either when creating a “Skill” from the “Microskill” creation form.  
I’ve created the issue here:

https://share.clickup.com/t/h/6gr31z/HBX9I3KABJBB297

Thanks for reporting this !

---

<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:** [July 16, 2020, 10:21am UTC](https://community.forestadmin.com/t/error-message-not-shown-when-creating-an-associated-record-fails/631/5 "2020-07-16T10:21:45Z")

</div>

The fix has been released this morning. You will need to refresh the app to ensure you are running the latest version.

Let me know if everything works on your side.

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [July 21, 2020, 8:38am UTC](https://community.forestadmin.com/t/error-message-not-shown-when-creating-an-associated-record-fails/631/6 "2020-07-21T08:38:36Z")

</div>

@Shriram_Balakrishnan could you please tell us if the issue is fixed? 🙏  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Shriram\_Balakrishnan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shriram_balakrishnan/32/424_2.png) [@Shriram\_Balakrishnan](https://community.forestadmin.com/u/Shriram_Balakrishnan)\
**Post date:** [July 22, 2020, 8:38am UTC](https://community.forestadmin.com/t/error-message-not-shown-when-creating-an-associated-record-fails/631/7 "2020-07-22T08:38:28Z")

</div>

@anon39848301 @anon34731316 It works as expected now. Thanks for the fix.
