-
I am migrating a site from v2 to v3 and i encountered an issue where form is not populating based on relationship that i can't wrap my head around. Below test results and what i looked at. I assume it's some simple issue but i can't find the problem and there are no errors either.
other fields like links are populated without problem... i also checked raw API request to pages endpoint and form is populated fine...
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
cleaning entire collection and then migrating again fixed the issue |
Beta Was this translation helpful? Give feedback.
-
Day after fix it happened again without any db changes to forms collection. I updated payload and packages to 3.22.0. Cleared forms collection and migrated again. Same issue happens and form data is not populating in pages request. I tried cleaning entire collection and creating a form manually to see if anything changes without data migration. It's the same issue |
Beta Was this translation helpful? Give feedback.
-
Ok i think I found the issue - it was with Forms collection is defined in plugins and below is my current override - I added public access to read
adding publicAccess to read override solves the issue. I got to access by trying to fetch form data in a seperate call and getting this message:
In the docs there is a mention of hiding "emails" field but can't figure it out. All I can see in defaultFields is:
and it remains unexplained why it worked for some time without any changes to |
Beta Was this translation helpful? Give feedback.
cleaning entire collection and then migrating again fixed the issue