# No operator matches the given name and argument types. You might need to add explicit type casts

**URL:** <https://community.forestadmin.com/t/no-operator-matches-the-given-name-and-argument-types-you-might-need-to-add-explicit-type-casts/2401>\
**Category:** Help me!\
**Created:** [April 30, 2021, 12:37am UTC](https://community.forestadmin.com/t/no-operator-matches-the-given-name-and-argument-types-you-might-need-to-add-explicit-type-casts/2401 "2021-04-30T00:37:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![piclez](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/piclez/32/2114_2.png) [@piclez](https://community.forestadmin.com/u/piclez)\
**Post date:** [April 30, 2021, 12:37am UTC](https://community.forestadmin.com/t/no-operator-matches-the-given-name-and-argument-types-you-might-need-to-add-explicit-type-casts/2401/1 "2021-04-30T00:37:13Z")

</div>

I just created a new project for a Rails app, and it worked for most of the collections, (Orders, Products) except Line Items, where I get this error:

Records Index error: PG::UndefinedFunction: ERROR: operator does not exist: bigint = character varying  
LINE 1: …order\_id" LEFT OUTER JOIN “foods” ON “foods”.“id” = "line\_it…

I do have a column there “cart\_id” that is null.

Ideas?

Great product, thanks!

Peter

---

<div class="post-metadata">

**Author:** ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)\
**Post date:** [April 30, 2021, 8:04am UTC](https://community.forestadmin.com/t/no-operator-matches-the-given-name-and-argument-types-you-might-need-to-add-explicit-type-casts/2401/2 "2021-04-30T08:04:21Z")

</div>

Hi @piclez 👋 welcome to our community!  
I need more informations to try to reproduce your issue and try to fix it.

Can you share the model definition which causes problems?  
And explain what kind of action do you try to execute?
