Hi,
I have created a collection to store user input from a form. And I have connected this data to a repeater.
Everything was working fine until a few hours ago, since when I am only getting this error message and no data shows up in the repeater either.
Also, it seems to have automatically added 2 items from I don’t know where.
I have tried restoring site to a previous version as well, but no resolution.
You have a AfterQuery hook for User_Goals collection, which tries to access item.goalCategory. In your collection there are a few items which have undefined value for goalCategory property. You need to fix the items or improve your hook code not to fail if goalCategory is undefined.
Item ids without goalCategory:
f86fffea-75bf-47d6-8c99-b0ead6417aa5
01e131ad-49cc-4cc9-87b9-32db57f9eb8f
Hi Egidijus,
Thanks for the response. Im not sure how to fix the items when i cant access the live data.
The items in the collection are not important and its ok to completely clear all items also.
Can you help me to fix this collection?
Also, can you please help me with the code required to make sure the hook AfterQuery does not.
Thanks,
Sameer
I also noticed, that some other property is missing (item.goalDate), thus still breaking hook code.
Depending on your app logic, you could set a default value for item.goalDate or not process such item at all.