# Invalid association definition id when uploading

**URL:** <https://community.hubspot.com/t/invalid-association-definition-id-when-uploading/75456>\
**Category:** CMS Development\
**Tags:** local-development, professional\
**Created:** [February 17, 2023, 1:52pm UTC](https://community.hubspot.com/t/invalid-association-definition-id-when-uploading/75456 "2023-02-17T13:52:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Columbo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/columbo/32/42125_2.png) [@Columbo](https://community.hubspot.com/u/Columbo)\
**Post date:** [February 17, 2023, 1:52pm UTC](https://community.hubspot.com/t/invalid-association-definition-id-when-uploading/75456/1 "2023-02-17T13:52:24Z")

</div>

Hi,

When trying to upload a module (from one portal to another) with the following line of code, I receive an error saying “invalid association definition id: 65”. I know the error is because the ids are different between the different portals. Is there a way to use these HubL-Functions without having to hard-code the IDs?

`{% set offers = crm_associations(request_contact.contact.company_id, "USER_DEFINED", 65, query, properties, true) %}`

I tried putting them into module-fields, but then I still receive the same error (except it just says “0” instead). Or is there a way to tell the _hs upload_ to ignore this error?
