# Liquid error: next\_year only supports period end dates in code

**URL:** <https://community.silverfin.com/t/liquid-error-next-year-only-supports-period-end-dates-in-code/2168>\
**Category:** Templates\
**Tags:** filter\_date\
**Created:** [October 26, 2021, 12:40pm UTC](https://community.silverfin.com/t/liquid-error-next-year-only-supports-period-end-dates-in-code/2168 "2021-10-26T12:40:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahaegglund](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@ahaegglund](https://community.silverfin.com/u/ahaegglund)\
**Post date:** [October 26, 2021, 12:40pm UTC](https://community.silverfin.com/t/liquid-error-next-year-only-supports-period-end-dates-in-code/2168/1 "2021-10-26T12:40:39Z")

</div>

Hi, For some of our clients we get this error message in one of our modules:

- Liquid error: next\_year only supports period end dates in code: `assign period_start_minus1 = period.minus_1y.year_start_date | date:'%Y'`
- Liquid error: next\_year only supports period end dates in code: `assign period_end_minus1 = period.minus_1y.year_end_date | date:'%Y'`

For most clients this works perfectly, anyone having an idea what can be wrong?

The code is in a shared part.

 ![2021-10-26_14-36-43](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/5/5ce573e6ee708c5b7846d3f15aa3af64b98b6093.png)

Kind regards,  
Anna

---

<div class="post-metadata">

**Author:** ![borjaGonzalez](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/borjagonzalez/32/825_2.png) [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)\
**Post date:** [October 26, 2021, 2:00pm UTC](https://community.silverfin.com/t/liquid-error-next-year-only-supports-period-end-dates-in-code/2168/2 "2021-10-26T14:00:14Z")

</div>

Hi Anna,

This is something we also detected in our routine checks this week. You should have got a message from our Customer Sucess team with information about it. This happens for clients that have the wrong period end dates, for example:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/0/0ada2c281e295dfd379d30d549e49ac8f7af4b8e.png)

You can check this by going into the main client’s page \> “Admin” \> “Ledgers”

![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/2/2cff12a197e66a5f89565709c204b87d785adf44.png)  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/e/ec66437131d52cd80bb0d20a23f18bd9f19a52a4.png)

Should you have any questions, please let us know.

Best,  
Borja
