# Undefined boolean become true in service

**URL:** https://community.appfarm.io/t/undefined-boolean-become-true-in-service/2177
**Category:** Bug reports
**Created:** [December 12, 2025, 9:57am UTC](https://community.appfarm.io/t/undefined-boolean-become-true-in-service/2177 "2025-12-12T09:57:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![\_sivert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/_sivert/32/1484_2.png) [@\_sivert](https://community.appfarm.io/u/_sivert)
#### Post date: [December 12, 2025, 9:57am UTC](https://community.appfarm.io/t/undefined-boolean-become-true-in-service/2177/1 "2025-12-12T09:57:29Z")

</div>

Hi!

I trigger a service from my app using the Run Service action node. When I send a boolean query parameter that is `undefined` on the app side, it seems to initialise as `true` in the service. I only use the bool to read data, so there is no way it can be changed by the service.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/3/3db02b875428a4a069d302f855d5c74358d3ae11.png)

As you can see from the screenshot below forApproval, invoiced and notInvoiced are all `undefined`. However, the service variables they are bound to are set to `true` (even when putting a break point at the first action node).

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/c/c5f79b3877a7c7cc13ef094ef278f620d62a77a9.png)

![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/c/ce145c6aa863586624470805f4a315f02bb3ecb5.png)

Setting Value On Create = `false` also does not help. I assume this is not intended functionality? Are you able to recreate it?

The issue is not present when using the Web Request action node. In that case the query parameter is not present in the request, thus the service variable is never bound to any value.

Also, I have worked around the issue by sending `false` if the value is `undefined`.

---

<div class="post-metadata">

### Author: ![rhys](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/rhys/32/1379_2.png) [@rhys](https://community.appfarm.io/u/rhys)
#### Post date: [December 12, 2025, 10:47am UTC](https://community.appfarm.io/t/undefined-boolean-become-true-in-service/2177/2 "2025-12-12T10:47:44Z")

</div>

Hi Sivert,

We have some rules for parsing of string values to booleans. When parsing the string value “undefined” to a boolean, the value returned is true. We have been able to recreate this on our end, and this is forwarded to the Dev team as a challenge, to evaluate if this should be the result or not.

Rhys
