If something works in PREVIEW but not in LIVE-MODE, this has mainly the following reasons…
-
Data is not synced. Check if you did a syncronisation between LIVE and PREVIEW-DB.
-
You do not have the right DB-PERMISSIONS. Check your DB-Permisssion-Setup.
-
Async-Await-problem–> check if your code-structure is right. Does your code have synchronous parts?
Add ASYNC-AWAIT, to let your code work synchronous.