> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/troubleshooting/invalid-setup-id.md).

# Invalid setup ID or datagram rejected

DATRAN shows Invalid setup ID, Datagram rejected or Invalid Point for an RTU that logs data. Check the point count and segment size.

Setting the segment size too small would normally result in an error such as invalid setup ID, Datagram rejected or possibly Invalid Point. A diagnostic error (invalid setup ID) in Datran shows that there is a points mismatch between what is configured in the HDI and what is configured to log in the RTU.

{% hint style="info" %}
**Applies to:** DATRAN VI with RTU data logging. The XL4 Plus RTU uses Datagram Version 2.
{% endhint %}

## Check these

| Cause                                                           | Fix                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| --------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| More logged points than the RTU firmware supports               | For RTUs with firmware V7.17 or prior a maximum of 35 points can be configured. For RTUs on firmware V7.18 or later the number of points increases to 255. In Datran V6.78 the number of points that can be logged increases from 35 to 255.                                                                                                                                                                                                                                                                                                                                                                                              |
| More than 255 points configured                                 | Operators should not configure more than 255 data points in the Comms Hist Data Object. 256 points will be stored as 0 (zero) points in the RTU, 257 points stored as 1 point.                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Segment size too small for the number of points                 | The following segment sizes are required to configure larger numbers of logging points: 500 bytes Segment Size -> configure up to 70 logging points; 1000 bytes Segment Size -> configure up to 141 logging points; 1500 bytes Segment Size -> configure up to 212 logging points; 1800 bytes Segment Size -> configure up to 255 logging points. The segment size is set in the comms object for the Site (RTU). Alternatively, the segment size can be set in the channel object and apply to all RTUs using that channel. See [RTU data logging (HDI)](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/rtu-data-logging.md). |
| Point numbers above the old limits without extended point count | By default, QTech Comms will only allow configuring RTUs with analogue point indices <= 128 (e.g., you can have NAI128 but not, say, NAI129). It is also common to add this property to the site Comms object so that more than 255 points can be addressed. The property can be added to the RTU comms object: "Use Extended Point Count" = 1. See [Sites, channels and RTUs](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/sites-and-rtus.md#more-than-255-points-extended-point-count).                                                                                                                                    |
| Wrong datagram version                                          | Where data is logged using the `_Comms_Hist_Data_` object in DATRAN, then Datagram version 2 must be specified (old XL4 used version 1). See [Set up RTU data logging in DATRAN VI](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/data-logging/set-up-rtu-data-logging.md).                                                                                                                                                                                                                                                                                                                                        |

When installing a new XL4 Plus ensure you apply the `_Comms_Hist_Data_` object in DATRAN. This ensures that the RTU has the correct settings for data logging.

The first time a site is polled it may need the `_Comms_Hist_Data_` reapplied. This is only necessary if Datran continues to poll the site without updating the “Bytes Remaining” counter. Usually this will not be necessary.

## Still not working? Contact QTech

Email <techsupport@qtech.co.nz> with your DATRAN VI version, the RTU's firmware version, the number of logged points, the **Segment Size**, and the exact message from DATRAN Diagnostics.
