data get... Doesn't Output in Function File?

Hey! I’m running into an issue where the data get command works fine when typed directly into chat, but when I include it inside a function file in my datapack, it doesn’t output any SNBT to the log or chat—nothing at all happens visibly.

Example: mcfunction data get se:telemetry Root.Log

  • I'm running the function @s
  • I've tried explicitly using execute as @s

Is this expected behavior? Is there a way to get data get to display its output from inside a function, or should I be using something else like tellraw to manually output the value?

Continue to help post