Please clarify if you are preparing a Form 1065 Partnership return or entering Schedule K-1 in your personal 1040 return.
Box 20 Code AG may have entries for several years. On a 2023 Form 1065, there are lines for 2020, 2021, 2022, and the current year. It's possible this amount has been carried forward since 2020.