# Record invalid for a route

**URL:** <https://discuss.blues.com/t/record-invalid-for-a-route/3461>\
**Category:** Uncategorized\
**Created:** [February 14, 2026, 12:51am UTC](https://discuss.blues.com/t/record-invalid-for-a-route/3461 "2026-02-14T00:51:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimK](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@JimK](https://discuss.blues.com/u/JimK)\
**Post date:** [February 14, 2026, 12:51am UTC](https://discuss.blues.com/t/record-invalid-for-a-route/3461/1 "2026-02-14T00:51:18Z")

</div>

I want to have two different files to upload and apply different routes to at different run times in the code (e.g. sensors upload every 5 mins, power usage every 30 mins) I am trying to add a second upload by defining a filename on the note.add (see code below). It compiles and runs and the data appears to upload correctly under that notefile name powerusage.qo but the route fails:

{“error”:“request failed - Record invalid. Failed to save data to uuuuuuuu/groups/groupblue. data missing required value”}

in my code:  
J \*req = NoteNewRequest(“note.add”);  
JAddStringToObject(req, “file”, “powerusage.qo”); // \<— Key for Routing  
J \*body = JAddObjectToObject(req, “body”);

in the JSON tab of the event  
“file”: “powerusage.qo”,  
“body”: {  
“charge”: 0.0002131999935954809,  
“current”: -0.00004760742012877017,  
“voltage”: 4.154165744781494  
},

In the route I selected the notefile powerusage.qo

on the route in the JSON expresssion:

{  
“feeds”:[  
{  
“key”:“voltage”,  
“value”:voltage  
},  
{  
“key”:“current”,  
“value”:current  
},  
{  
“key”:“charge”,  
“value”:charge  
}  
]  
}

thanks

---

<div class="post-metadata">

**Author:** ![JimK](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@JimK](https://discuss.blues.com/u/JimK)\
**Post date:** [February 14, 2026, 1:08pm UTC](https://discuss.blues.com/t/record-invalid-for-a-route/3461/3 "2026-02-14T13:08:11Z")

</div>

I found the problem, I forgot to preface the value with body, e,g, value":body.voltage
