# system.kanoa.lot.createRouteInstance(lotId, routeId, userId)

Copies a route to the routeEvent table and links it with a lotId. This is the adjustable route to be used by the lot.

---
### Parameters
**lotId** `Integer`: Id of the lot<br />
**routeId** `Integer`: Id of the route. If routeId is None, we'll search for for a suitable route based on the itemId or itemClassId of the lot.<br />
**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**routeEventId** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
"lotId": 42,
"routeId": 7,
userId, 5
routeEventId, msg = system.kanoa.lot.createRouteInstance(lotId, routeId, userId)
```
