Liquid error: next_year only supports period end dates in code

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.

Kind regards,
Anna

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:

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

image
image

Should you have any questions, please let us know.

Best,
Borja