# Missing or invalid DeviceId element

**URL:** <https://forum.genieacs.com/t/missing-or-invalid-deviceid-element/3395>\
**Category:** Uncategorized\
**Created:** [January 7, 2023, 5:28am UTC](https://forum.genieacs.com/t/missing-or-invalid-deviceid-element/3395 "2023-01-07T05:28:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dineshaj](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/dineshaj/32/1383_2.png) [@dineshaj](https://forum.genieacs.com/u/dineshaj)\
**Post date:** [January 7, 2023, 5:28am UTC](https://forum.genieacs.com/t/missing-or-invalid-deviceid-element/3395/1 "2023-01-07T05:28:58Z")

</div>

Trying to connect my device but getting a Missing or invalid DeviceId element. Here is the XML which I am getting in debug. Any suggestion will be helpful.

```auto
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<SOAP-ENV:Header>
<cwmp:ID SOAP-ENV:mustUnderstand="1">169672713</cwmp:ID>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<cwmp:Inform>
<DeviceId>
<Manufacturer>FSX2</Manufacturer>
<OUI/>
<ProductClass>1GPON</ProductClass>
<SerialNumber>FSX2100803489</SerialNumber>
</DeviceId>
<Event SOAP-ENC:arrayType="cwmp:EventStruct[3]">
<EventStruct>
<EventCode>0 BOOTSTRAP</EventCode>
<CommandKey/>
</EventStruct>
<EventStruct>
<EventCode>X CT-COM LONGRESET</EventCode>
<CommandKey/>
</EventStruct>
<EventStruct>
<EventCode>1 BOOT</EventCode>
<CommandKey/>
</EventStruct>
</Event>
<MaxEnvelopes>1</MaxEnvelopes>
<CurrentTime>1970-01-01T08:14:07</CurrentTime>
<RetryCount>8</RetryCount>
<ParameterList SOAP-ENC:arrayType="cwmp:ParameterValueStruct[11]">
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
<Value xsi:type="xsd:string">1.0</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
<Value xsi:type="xsd:string">Z416.1B</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
<Value xsi:type="xsd:string">V1.1.0</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
<Value xsi:type="xsd:string">TLCO.GRP2</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
<Value xsi:type="xsd:string">http://10.0.101.190:58000</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
<Value xsi:type="xsd:string"/>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.ExternalIPAddress</Name>
<Value xsi:type="xsd:string">10.0.101.190</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.X_CT-COM_ServiceList</Name>
<Value xsi:type="xsd:string">TR069</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.UDPConnectionRequestAddress</Name>
<Value xsi:type="xsd:string">0.0.0.0:35259</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.X_CT-COM_UserInfo.UserName</Name>
<Value xsi:type="xsd:string">12345678</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Username</Name>
<Value xsi:type="xsd:string">testtt</Value>
</ParameterValueStruct>
</ParameterList>
</cwmp:Inform>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

```

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [January 9, 2023, 7:57pm UTC](https://forum.genieacs.com/t/missing-or-invalid-deviceid-element/3395/2 "2023-01-09T19:57:05Z")

</div>

> [@dineshaj](#):
>
> `<OUI/>`

You need to raise this with your vendor. They are violating the spec by not providing the OUI. See [page 66, table 36 of the spec](https://www.broadband-forum.org/download/TR-069_Amendment-2.pdf).

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/c/c3cf67084f9e5ebc5e55d0eaf05b7dfc431c29cf.png)

Subscript 9 links to [http://standards.ieee.org/faqs/OUI.html](http://standards.ieee.org/faqs/OUI.html)

---

<div class="post-metadata">

**Author:** ![Andre\_Driemeyer](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Andre\_Driemeyer](https://forum.genieacs.com/u/Andre_Driemeyer)\
**Post date:** [August 7, 2023, 6:29pm UTC](https://forum.genieacs.com/t/missing-or-invalid-deviceid-element/3395/3 "2023-08-07T18:29:36Z")

</div>

Had this problem with an particular firmware version of an ZTE ONU, i added this to the soap.ts file to fix it.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/c/c8e17ff9b1e6b2d09d705c48e94e51b232a67b08.png)

This is not a good solution so I instead tried to ‘fix’ the missing OUI with the value it was supposed to be. I also added an warning to make this problema easier to spot.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/4/462e69c5b1246de04fb5e60701a11ef87f1da741.png)
