{“message”:"NOT_FOUND: entity not found for {"userId" (in browser console window)
Works fine in editor, synced the sandbox database to live… can see all the records in the table on the page but when try to edit or save new item (custom form) I get an error… any ideas?
Where exactly is this {"userid" being used?
Are you trying to have it in a URL like this?
As to do that you would need to put the page like this in code.
`/Members/${wixUsers.currentUser.id}`;
So if you used it for a link it would be like this.
wixLocation.to(`/Members/${wixUsers.currentUser.id}`);
Have a look at this tutorial here for more info about the above.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area#update-page-1
You can also see Wix Users API and the id function here.
https://www.wix.com/corvid/reference/wix-users.User.html#id
The error is from the console window of the browser… I uploaded a jpeg in orginal post… I will look at the tutorial but seems something is missing from the browser error
I am accessing the page from the wix dashboard as it is a dashboard specific page
Are you using Dashboard pages as from here.
https://support.wix.com/en/article/corvid-working-with-dashboard-pages
As note that they are only accessible to Admin/Owner or Site Contributors and I can assume that you are Admin/Owner.
There is an ongoing issue currently with the Dashboard pages and they are asking users who are already logged in to log in again, however I don’t think that this is the cause of your issue here.
I think that it might just be down to an error in your page setup somewhere or in your code that you have used maybe. A little error somewhere can be a big pain in the backside sometimes!
As you are using Wix Users Id, just to check with the ‘entity not found’ error, are you using the right user id? It might be something simple that you are saving or editing something which uses your user id when you are trying to do it with another users data which uses their own user id.
Looking at your picture too, I would double check your code used as you have a lot of 400 bad request and 404 not found errors there.
Hmmm well I set the permissions to Everyone for each under custom permission settings and it worked (I thought I had set to Admin only for all write permissions and Everyone for read) but when I checked it wasn’t set that way… So I set back to admin only for write and still working… still getting the 404 errors though … not my code to include those files looks like backend calls… least it is working now. Thanks for the fast response