# SELECT node error: can't deduce types for patch

**URL:** <https://forum.xod.io/t/select-node-error-cant-deduce-types-for-patch/2327>\
**Category:** Uncategorized\
**Created:** [June 10, 2019, 5:57am UTC](https://forum.xod.io/t/select-node-error-cant-deduce-types-for-patch/2327 "2019-06-10T05:57:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gp1](https://avatars.discourse-cdn.com/v4/letter/g/59ef9b/32.png) [@gp1](https://forum.xod.io/u/gp1)\
**Post date:** [June 10, 2019, 5:57am UTC](https://forum.xod.io/t/select-node-error-cant-deduce-types-for-patch/2327/1 "2019-06-10T05:57:46Z")

</div>

I hope someone can help me diagnose this problem. I have a motor patch (that works!) with three numeric inputs (pins). One for motor run duration, one for left side speed and one for right side speed.

I need to feed different values to those three inputs depending upon whether I want to go forward, back, right, or left. Input pins can only accept a single wire, so I am using a SELECT node to set the values that are sent to the three pins. Here is the patch:

 ![direction](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/1/13f3380ef3dca2bcbe06ae85e4e777b6e04bc65b.png)

I call that my direction patch. I set default values for each of the “X” inputs on the SELECT node. I attempted to use my direction patch in this “move” patch:

 ![move](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/2/23187a033f099c66d27fa450a51e0c176c99a527.png)

However, I receive an error when attempting to compile it.

> Transpiling…  
> Can’t deduce types for patch Connect links or bind values to generic inputs

The only generic inputs are on the SELECT node. So, I went back and put input-number inputs on each of the “X” inputs of the SELECT node (they appear in the image above as IN1, IN2, etc). I still get the same error after adding the input-number inputs which should enable XOD to deduce their types, namely number.

I don’t know what is causing this error and would appreciate some insight.

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 10, 2019, 2:56pm UTC](https://forum.xod.io/t/select-node-error-cant-deduce-types-for-patch/2327/2 "2019-06-10T14:56:17Z")

</div>

Are there any more details in error message? One of the patches you are using might be including other nodes that have generic input.

---

<div class="post-metadata">

**Author:** ![gp1](https://avatars.discourse-cdn.com/v4/letter/g/59ef9b/32.png) [@gp1](https://forum.xod.io/u/gp1)\
**Post date:** [June 10, 2019, 3:08pm UTC](https://forum.xod.io/t/select-node-error-cant-deduce-types-for-patch/2327/3 "2019-06-10T15:08:48Z")

</div>

No, that is the entire message. I just noticed that I get that same error when I try to compile the “direction” patch (the first image with the select nodes) by itself. So it apparently has nothing to do with my “move” patch (the second image above).

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 10, 2019, 4:35pm UTC](https://forum.xod.io/t/select-node-error-cant-deduce-types-for-patch/2327/4 "2019-06-10T16:35:08Z")

</div>

Odd. This compiles without problem for me:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/f/ff799b2b6138a5604d30a3d7074fd6db6e5521d5.png)

Which version of XOD are you running? I’m on 0.29.1

---

<div class="post-metadata">

**Author:** ![gp1](https://avatars.discourse-cdn.com/v4/letter/g/59ef9b/32.png) [@gp1](https://forum.xod.io/u/gp1)\
**Post date:** [June 10, 2019, 11:15pm UTC](https://forum.xod.io/t/select-node-error-cant-deduce-types-for-patch/2327/5 "2019-06-10T23:15:03Z")

</div>

I’m on 0.29.1 on MacOS v10.14.5.

I tried making a custom SELECT patch by replacing the generic inputs and outputs with “known” inputs and outputs. I got the same error. 🤔 – odd, considering there were no generic inputs at all.

I’ve decided to simply uninstall and reinstall XOD and rebuild the direction patch from scratch. That appears to have worked.
