Wix code is not working.

Have you checked the permissions on your collection?