validate attrs before set

read the latest api and block the creation if the set fails