# \[Resolved\] Error when trying to create a related record via a barcode scanning action

**URL:** <https://community.noloco.io/t/resolved-error-when-trying-to-create-a-related-record-via-a-barcode-scanning-action/1501>\
**Category:** Bugs\
**Created:** [December 2, 2024, 12:30pm UTC](https://community.noloco.io/t/resolved-error-when-trying-to-create-a-related-record-via-a-barcode-scanning-action/1501 "2024-12-02T12:30:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EthosLuke](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@EthosLuke](https://community.noloco.io/u/EthosLuke)\
**Post date:** [December 2, 2024, 12:30pm UTC](https://community.noloco.io/t/resolved-error-when-trying-to-create-a-related-record-via-a-barcode-scanning-action/1501/1 "2024-12-02T12:30:23Z")

</div>

I’m trying to create an action button that allows engineers to quickly scan items they’ve at a job whilst they’re on the job record.

Unfortunately, trying to do this results in an error:  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/noloco/original/2X/b/bf18a8e3169fe4dd288b0377839dbf0448a5818a.png)

Here’s the config of the action button:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/noloco/original/2X/d/def3d65e62b88f67c94424cbdffa3238fc5582f3.png)

I’ve done some testing and this appears to be an issue for 1-M relationships (collections) - scanning a barcode and creating a record that’s a M-1 or 1-1 relationship doesn’t throw up this error.

---

<div class="post-metadata">

**Author:** ![domhnall](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/domhnall/32/1003_2.png) [@domhnall](https://community.noloco.io/u/domhnall)\
**Post date:** [December 2, 2024, 1:13pm UTC](https://community.noloco.io/t/resolved-error-when-trying-to-create-a-related-record-via-a-barcode-scanning-action/1501/2 "2024-12-02T13:13:33Z")

</div>

Hey @EthosLuke 👋

Thanks for flagging this, we are currently triaging the issue and will let you know shortly what we find.

---

<div class="post-metadata">

**Author:** ![domhnall](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/domhnall/32/1003_2.png) [@domhnall](https://community.noloco.io/u/domhnall)\
**Post date:** [December 3, 2024, 1:07pm UTC](https://community.noloco.io/t/resolved-error-when-trying-to-create-a-related-record-via-a-barcode-scanning-action/1501/3 "2024-12-03T13:07:01Z")

</div>

Just wanted to follow up here @EthosLuke to let you know that the fix for this is now live and seems to be working well.

Can you give it a go on your end and let us know too please?

---

<div class="post-metadata">

**Author:** ![EthosLuke](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@EthosLuke](https://community.noloco.io/u/EthosLuke)\
**Post date:** [December 3, 2024, 1:33pm UTC](https://community.noloco.io/t/resolved-error-when-trying-to-create-a-related-record-via-a-barcode-scanning-action/1501/4 "2024-12-03T13:33:26Z")

</div>

Working now! Thanks for the quick fix team!
