getLeaderboardVersionScoresByTier from buckets leaderboard always fail by trigger script

I want to Reward top players when Leaderboard (buckets enabled) resets, but getLeaderboardVersionScoresByTier always fail because of “Score submission required to view the scores of this leaderboard”. I reset the leaderboard manually from dashboard.