I solved similar case and it was all about conversion from hexa to decimal,
My case was to assign tagged vlan ID = 3
the mistake i was made:
0x310003 ---> convert to decimal --> 3211267
and this is the right way to convert:
0x31000003 ---> convert to decimal --> 822083587