# Custom Component

**URL:** <https://forum.cloverdx.com/t/custom-component/1102>\
**Category:** CloverDX Platform\
**Created:** [July 23, 2012, 12:00am UTC](https://forum.cloverdx.com/t/custom-component/1102 "2012-07-23T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenhasler](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@stephenhasler](https://forum.cloverdx.com/u/stephenhasler)\
**Post date:** [July 23, 2012, 12:00am UTC](https://forum.cloverdx.com/t/custom-component/1102/1 "2012-07-23T00:00:00Z")

</div>

When I try to create a custom component with multiple input ports, I get the error message:-

```auto
At most 1 input ports can be defined!

```

The customcomponents.xml has two input ports defined:-

```auto
        <inputPorts>
            <singlePort name="0" required="true" />
            <singlePort name="1" required="true" />
        </inputPorts>

```

Is there anything else that I need to do to configure my component to use multiple ports?

---

<div class="post-metadata">

**Author:** ![mzatopek](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mzatopek](https://forum.cloverdx.com/u/mzatopek)\
**Post date:** [July 24, 2012, 12:29pm UTC](https://forum.cloverdx.com/t/custom-component/1102/2 "2012-07-24T12:29:31Z")

</div>

Hello Stephen,

please check implementation of checkConfig() method of your custom component. I guess you find there something like following code:

```auto

if (!checkInputPorts(status, 1, 1) || !checkOutputPorts(status, 1, Integer.MAX_VALUE, false)) {
	return status;
}

```

Please, update parameters of these checks accordingly. For example this code says exactly one input port must be connected and at least one output port must be connected.

Martin
