Failed to load initial data

On one of my dynamic page, I have 2 dataset (Stylists and Reviews) connected to the page and I am getting the following errors. If I were to remove the Reviews dataset, the error is gone.

I tried clearing out the Reviews database in both sandbox and live, re-syncing it again, and its still giving me the same error. Really appreciate if someone can give me a hand here. Thanks in advances.


#failtoloadinitialdata

1 Like

Have you got both datasets or the reviews dataset connected by code anywhere on the page as the reviews dataset is failing somehow whilst the stylist dataset is fine.

Remember that any dataset needs to load before you can use any code on it like get current item for example.

Have you simply tried just adding both datasets onReady function to your page onReady event so that both your page and datasets are loaded before something happens.

Finally figure it out last night. It was a data access permission issue. The review dataset was created as “user form submit” where the default level for viewing is admin only. Have to change that to everyone.

Rookie mistake. Thanks @giveawhisky for the response.

#rookiemistake

This helped me thanks Jacky

Have issue “failed to load initial date error” in console, seems internal wix error, have any information about that?

check the permissions on the collection / data store. i had mine wrong and got this. I made them more readable and it worked.

1 Like