trouble storing data

im able to run this command in game: /data merge entity f0b3ffc7-d9c1-434e-a20f-e1875ab17f70 {test:1b} but when run as an mcfunction i get an error
Continue to help post