This solved 'You dont have the permission to view this record or this record does not exist!' when switchign tabs.