import export of snmp won't work...

I wanted to update snmp settings on the whole lot of routers.

This is my old snmp settings which i easly could export on one router and import on another.

/snmp
set contact=mail@company.net enabled=yes engine-id="" location=somewhere trap-target=0.0.0.0 trap-version=1
/snmp community
set passcode address=0.0.0.0/0 authentication-password="" authentication-protocol=MD5 encryption-password="" encryption-protocol=DES name=passcode \
    read-access=yes security=none write-access=no

But the new settings export nicely, but the import failes. Setting the same settings from winbox workes, but from cli i get an error message.

/snmp
set contact="Someone" enabled=yes engine-id="" location=Somewhere trap-community=public-company.net trap-target=0.0.0.0 trap-version=3
/snmp community
set public-company.net address=0.0.0.0/0 authentication-password=passcode authentication-protocol=SHA1 \
    encryption-password=passcode encryption-protocol=DES name=public-company.net read-access=yes security=private \
    write-access=no
/snmp
set contact="someone" enabled=yes engine-id="" location=somewhere trap-community=public-company.net trap-target=0.0.0.0 trap-version=3

The error message i get when importing the snmp.rsc file is.

Opening script file snmp.rsc

Script file loaded successfully
input does not match any value of trap-community
interrupted

When passing in the values manually I get this error.

[admin@router34] /snmp> set contact="Someone" enabled=yes engine-id="" location=Somewhere trap-community=public-company.net trap-target=0.0.0.0 trap-version=3
input does not match any value of trap-community

And when i try to manualy add the comunity

[admin@router34] /snmp community> /snmp community
[admin@router34] /snmp community> set public-company.net address=0.0.0.0/0 authentication-password=passcode authentication-protocol=SHA1 \
\...     encryption-password=passcode encryption-protocol=DES name=public-company.net read-access=yes security=private \                              
\...     write-access=no                                                                                                
no such item

All routers are running RouterOS 5.4. If I add the same data from winbox it works nicely.

Is there any clear error here?? Names, Locations and passcodes replaced for security reasons.

[admin@router34] /snmp> set contact=“Someone” enabled=yes engine-id=“” location=Somewhere trap-community=public-company.net trap-target=0.0.0.0 trap-version=3

write step step and terminal will show you what wrong
on my router there is no trap-target