# ASN1 decoding error

**URL:** <https://community.unix.com/t/asn1-decoding-error/366008>\
**Category:** Programming\
**Created:** [April 7, 2017, 9:19am UTC](https://community.unix.com/t/asn1-decoding-error/366008 "2017-04-07T09:19:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tahchiev01](https://community.unix.com/letter_avatar/tahchiev01/32/6_449c533f586939b6e5f246632a46421f.png) [@tahchiev01](https://community.unix.com/u/tahchiev01)\
**Post date:** [April 7, 2017, 9:19am UTC](https://community.unix.com/t/asn1-decoding-error/366008/1 "2017-04-07T09:19:45Z")

</div>

Hi, fellows  
i am modifying asn1 schema to be able to decode a file, but i am hitting a error on one of the fields using free online tool asn1-playground. I suspect i need to change type and have tried with IDENTIFIER but it doesn't help...any ideas check the schema and file down , please

```nohighlight
D0033E: Tag mismatch or tag not expected: [UNIVERSAL 16] (expected tag [UNIVERSAL 2]); check field 'extensionProvider' (type: INTEGER) of field 'information' (type: InformationExtensions) of element #1 (type: ManagementExtension) of field 'recordExtensions' (type: ManagementExtensions) of field 'aSRecord' (type: ASRecord) of PDU #1 'IMSRecord'.
          *SKIPPED*: tag = [UNIVERSAL 16] constructed; length = 16
            <skipped>
D0049E: Field omitted: "extensionProvider"; check field 'information' (type: InformationExtensions) of element #1 (type: ManagementExtension) of field 'recordExtensions' (type: ManagementExtensions) of field 'aSRecord' (type: ASRecord) of PDU #1 'IMSRecord'.
D0049E: Field omitted: "extensionVersion"; check field 'information' (type: InformationExtensions) of element #1 (type: ManagementExtension) of field 'recordExtensions' (type: ManagementExtensions) of field 'aSRecord' (type: ASRecord) of PDU #1 'IMSRecord'.
D0049E: Field omitted: "extensionData"; check field 'information' (type: InformationExtensions) of element #1 (type: ManagementExtension) of field 'recordExtensions' (type: ManagementExtensions) of field 'aSRecord' (type: ASRecord) of PDU #1 'IMSRecord'.

```

The schema looks like that way for the specific structure:

```nohighlight
 ManagementExtensions ::= SET OF ManagementExtension  
ManagementExtension ::= SEQUENCE {
    identifier OBJECT IDENTIFIER,
    significance [1] BOOLEAN,
    information [2] InformationExtensions
}

InformationExtensions ::= SEQUENCE 
{
    -- operator specific record extensions
    extensionProvider INTEGER,
    extensionVersion INTEGER,
    extensionData ALURecordExtensions
} 

```

and the decoded file is like :

```nohighlight
recordExtensions {
    {
      identifier { 1 3 6 1 4 1 637 78 0 104 0 },
      significance FALSE,
      information InformationExtensions : {
        extensionProvider 1,
        extensionVersion 2,
        extensionData {
          system-Local-Time-Offset "-0400"
        }
      }
    }
  },

```
