<p>This appears to have been fixed in <a href="https://github.com/craftcms/feed-me/releases/tag/5.1.4" rel="nofollow noreferrer">v5.14</a>.</p>

CC BY-SA 4.0
2023-08-30T14:53:34.507Z
2023-08-30T14:53:34.507Z
plaintxt
<p>I have a feed that needs to map data to a lightswitch field. When the API returns data for that field that equates to boolean true, it works fine. But when the data equates to boolean false (&quot;false&quot; &quot;no&quot; &quot;0&quot;), the data is being removed from processing.</p>
<p>After running the feed, I go to Logs and expand one of the items. The &quot;{{ feed name }}: Data ready to import&quot; item shows all data returned from the API except the one that needs to be mapped to the lightswitch. Again, it's only removed when the value equates to boolean false.</p>
<p>So when running the feed, the lightswitch is able to move from off to on, but not from on to off.</p>

CC BY-SA 4.0
2023-08-11T21:11:28.513Z
Can you provide an example of the returned API data?
CraftQuest
CC BY-SA 4.0
2023-08-14T00:30:07.997Z
@CraftQuest ```{"ID":"9643c70f12343dk0e039a093a0a1544","name":"Darth Vader","objCode":"USER","homeGroupID":"5e5020c201c4edc31aea2a26","firstName":"Darth","lastName":"Vader","title":"Sith Lord","emailAddr":"darth@vader.com","phoneNumber":"15551231234","phoneExtension":"3223","DE:Employee Type":"FTE","DE:Executive Team":"0","DE:User is Remote":"Yes"}``` - The Executive Team item is the one in question.
plaintxt
<plugin-feedme><craft4>
Boolean false Feed Me data is not being processed
# Boolean false Feed Me data is not being processed

(Asked by: username_0 on 2023-08-11)

I have a feed that needs to map data to a lightswitch field. When the API returns data for that field that equates to boolean true, it works fine. But when the data equates to boolean false ("false" "no" "0"), the data is being removed from processing.

After running the feed, I go to Logs and expand one of the items. The "{{ feed name }}: Data ready to import" item shows all data returned from the API except the one that needs to be mapped to the lightswitch. Again, it's only removed when the value equates to boolean false.

So when running the feed, the lightswitch is able to move from off to on, but not from on to off.

**Tags:** plugin-feedme, craft4
> **Comments:**
> **username_1**: Can you provide an example of the returned API data?  
> **username_0**: @CraftQuest ```{"ID":"9643c70f12343dk0e039a093a0a1544","name":"Darth Vader","objCode":"USER","homeGroupID":"5e5020c201c4edc31aea2a26","firstName":"Darth","lastName":"Vader","title":"Sith Lord","emailAddr":"darth@vader.com","phoneNumber":"15551231234","phoneExtension":"3223","DE:Employee Type":"FTE","DE:Executive Team":"0","DE:User is Remote":"Yes"}``` - The Executive Team item is the one in question.  

---

## 1 answers

### Answer by username_0 on 2023-08-30. Score: 1

This appears to have been fixed in [v5.14](https://github.com/craftcms/feed-me/releases/tag/5.1.4).


---

