# Invalid Device ID with Particle Photon

**URL:** <https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001>\
**Category:** Help\
**Tags:** workflow\
**Created:** [August 13, 2021, 3:31pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001 "2021-08-13T15:31:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sven\_Schmode](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sven\_Schmode](https://forums.losant.com/u/Sven_Schmode)\
**Post date:** [August 13, 2021, 3:31pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/1 "2021-08-13T15:31:53Z")

</div>

I’m getting a **ValidationError** Invalid device ID: when using a Particle Photon.  
I believe this is rooted in the Device: Get node which is configured based on the tutorial for this device.  
The attached screenshot shows the debug log and the setup for the node.

 ![Untitled](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/5/57ead2df414f49946fab1e0bbb3a0ea99057e5eb.png)

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [August 13, 2021, 3:52pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/3 "2021-08-13T15:52:48Z")

</div>

Hello @Sven_Schmode,

Welcome to the Losant Forums! We’re happy you’re here.

It looks like you’ve got an error in your template for the `particle_device_id`. it should just be `{{data.coreid}}`. So, you should remove the `{% raw %}` and `{% end % }` from your template in the Device: Get configuration.

We did identify that this was an error with the blog formatting on our side, we’re working on a fix right now.

Let me know if this works for you.

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Sven\_Schmode](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sven\_Schmode](https://forums.losant.com/u/Sven_Schmode)\
**Post date:** [August 13, 2021, 5:19pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/4 "2021-08-13T17:19:01Z")

</div>

> [@Heath](#):
>
> {{data.coreid}}

Thanks for the quick response. However, I’m still having the same issue.  
Is it possible that the Particle Photon payload has changed since 2017 and the tutorial doesn’t apply anymore?

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [August 13, 2021, 5:26pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/5 "2021-08-13T17:26:08Z")

</div>

@Sven_Schmode,

> Is it possible that the Particle Photon payload has changed since 2017 and the tutorial doesn’t apply anymore?

This is certainly a possibility, but the payload from the first screenshot you sent along contains the same information as the example payload in the blog post. This indicates that things are still working as intended.

Would you be able to share with me your Device: State node configuration?

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Sven\_Schmode](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sven\_Schmode](https://forums.losant.com/u/Sven_Schmode)\
**Post date:** [August 13, 2021, 5:33pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/6 "2021-08-13T17:33:50Z")

</div>

Is this what you are looking for?

 ![Untitled](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/a/a6862b319c728b00e6ade603ce884537a94c88da.png)

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [August 13, 2021, 5:35pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/7 "2021-08-13T17:35:48Z")

</div>

@Sven_Schmode,

I apologize, I should have been more clear. In your workflow, if you are following along with the blog post, you should have a [Device: State Node](https://docs.losant.com/workflows/outputs/device-state/). Do you have one? If so, can you send a screenshot of its configuration (similar to what you sent for the Device: Get node you sent earlier)?

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Sven\_Schmode](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sven\_Schmode](https://forums.losant.com/u/Sven_Schmode)\
**Post date:** [August 13, 2021, 5:37pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/8 "2021-08-13T17:37:52Z")

</div>

No proble

 ![Untitled](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/a/a3d2b1faf113c657daecca2983d22541b0d7ecbd.png)  
m, here it is.

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [August 13, 2021, 5:39pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/9 "2021-08-13T17:39:41Z")

</div>

@Sven_Schmode,

Perfect! Thank you.

First thing I notice is the `{% raw %}`. Those values should just be `{{data.temperatureF}}` and `{{data.voltage}}`.

Does this help?

Heath

---

<div class="post-metadata">

**Author:** ![Sven\_Schmode](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sven\_Schmode](https://forums.losant.com/u/Sven_Schmode)\
**Post date:** [August 13, 2021, 5:51pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/10 "2021-08-13T17:51:36Z")

</div>

Not yet. I noticed that my result path is empty in Device: State. Do I need something there?

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [August 13, 2021, 5:54pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/11 "2021-08-13T17:54:35Z")

</div>

@Sven_Schmode,

You wouldn’t happen to have any leading spaces in the Tag Value, would you?

Taking a very close look at this image you sent:

 ![Untitled](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/a/a6862b319c728b00e6ade603ce884537a94c88da.png)

You might have a leading space here. That would cause this error.

Let me know if this works.

Heath

---

<div class="post-metadata">

**Author:** ![Sven\_Schmode](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sven\_Schmode](https://forums.losant.com/u/Sven_Schmode)\
**Post date:** [August 13, 2021, 5:58pm UTC](https://forums.losant.com/t/invalid-device-id-with-particle-photon/4001/12 "2021-08-13T17:58:24Z")

</div>

That was it. A leading space in front of the ID value. Thanks for your help!
