with 2004/dbcolor json roundtrips and applying the following diff, results in a fixed ODA conversion. no Annotative data, no other APPID records.
without it fails with 
Object of class AcDbRegAppTableRecord can't be cast to AcDbEntity.

``` diff
--- ../.build/dbcolor_2004.json	2023-08-24 18:23:06.390050916 +0200
+++ dbcolor_2004.json	2023-08-24 18:31:19.434854118 +0200
@@ -545,13 +545,8 @@
       "ownerhandle": [4, 0, 0, 0],
       "entries": [
         [2, 1, 18, 18],
-        [2, 1, 221, 221],
-        [2, 1, 222, 222],
-        [2, 1, 223, 223],
-        [2, 1, 224, 224],
         [2, 2, 263, 263],
         [2, 2, 422, 422],
-        [2, 2, 515, 515]
       ]
     },
     {
@@ -3583,7 +3578,6 @@
       "cloning": 1,
       "is_hardowner": 0,
       "items": {
-        "Annotative": [2, 1, 229, 229],
         "Standard": [2, 1, 216, 216]
       }
     },
@@ -3656,258 +3650,6 @@
       "break_size": 0.125
     },
     {
-      "object": "STYLE",
-      "index": 69,
-      "type": 53,
-      "handle": [0, 1, 220],
-      "size": 94,
-      "bitsize": 727,
-      "eed": [
-        {
-          "size": 28,
-          "handle": [5, 1, 222],
-          "code": 0,
-          "value": "AnnotativeData"
-        },
-        {
-          "code": 2,
-          "value": 0
-        },
-        {
-          "code": 70,
-          "value": 1
-        },
-        {
-          "code": 70,
-          "value": 1
-        },
-        {
-          "code": 2,
-          "value": 1
-        },
-        {
-          "size": 14,
-          "handle": [5, 1, 18],
-          "code": 0,
-          "value": "Arial"
-        },
-        {
-          "code": 71,
-          "value": 34
-        }
-      ],
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 3, 3],
-      "name": "Annotative",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "is_shape": 0,
-      "is_vertical": 0,
-      "text_size": 0.0,
-      "width_factor": 1.0,
-      "oblique_angle": 0.0,
-      "generation": 0,
-      "last_height": 0.2,
-      "font_file": "Arial.ttf",
-      "bigfont_file": ""
-    },
-    {
-      "object": "APPID",
-      "index": 70,
-      "type": 67,
-      "handle": [0, 1, 221],
-      "size": 25,
-      "bitsize": 173,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "AcadAnnoPO",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
-      "object": "APPID",
-      "index": 71,
-      "type": 67,
-      "handle": [0, 1, 222],
-      "size": 29,
-      "bitsize": 205,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "AcadAnnotative",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
-      "object": "APPID",
-      "index": 72,
-      "type": 67,
-      "handle": [0, 1, 223],
-      "size": 33,
-      "bitsize": 237,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "ACAD_DSTYLE_DIMJAG",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
-      "object": "APPID",
-      "index": 73,
-      "type": 67,
-      "handle": [0, 1, 224],
-      "size": 34,
-      "bitsize": 245,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "ACAD_DSTYLE_DIMTALN",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
-      "object": "DIMSTYLE",
-      "index": 74,
-      "type": 69,
-      "handle": [0, 1, 225],
-      "size": 192,
-      "bitsize": 1458,
-      "eed": [
-        {
-          "size": 28,
-          "handle": [5, 1, 222],
-          "code": 0,
-          "value": "AnnotativeData"
-        },
-        {
-          "code": 2,
-          "value": 0
-        },
-        {
-          "code": 70,
-          "value": 1
-        },
-        {
-          "code": 70,
-          "value": 1
-        },
-        {
-          "code": 2,
-          "value": 1
-        },
-        {
-          "size": 12,
-          "handle": [5, 1, 223],
-          "code": 70,
-          "value": 388
-        },
-        {
-          "code": 40,
-          "value": 1.5
-        },
-        {
-          "size": 6,
-          "handle": [5, 1, 224],
-          "code": 70,
-          "value": 392
-        },
-        {
-          "code": 70,
-          "value": 0
-        }
-      ],
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 10, 10],
-      "name": "Annotative",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "DIMPOST": "",
-      "DIMAPOST": "",
-      "DIMSCALE": 0.0,
-      "DIMASZ": 0.18,
-      "DIMEXO": 0.0625,
-      "DIMDLI": 0.38,
-      "DIMEXE": 0.18,
-      "DIMRND": 0.0,
-      "DIMDLE": 0.0,
-      "DIMTP": 0.0,
-      "DIMTM": 0.0,
-      "DIMTOL": 0,
-      "DIMLIM": 0,
-      "DIMTIH": 1,
-      "DIMTOH": 1,
-      "DIMSE1": 0,
-      "DIMSE2": 0,
-      "DIMTAD": 0,
-      "DIMZIN": 0,
-      "DIMAZIN": 0,
-      "DIMTXT": 0.18,
-      "DIMCEN": 0.09,
-      "DIMTSZ": 0.0,
-      "DIMALTF": 25.4,
-      "DIMLFAC": 1.0,
-      "DIMTVP": 0.0,
-      "DIMTFAC": 1.0,
-      "DIMGAP": 0.09,
-      "DIMALTRND": 0.0,
-      "DIMALT": 0,
-      "DIMALTD": 2,
-      "DIMTOFL": 0,
-      "DIMSAH": 0,
-      "DIMTIX": 0,
-      "DIMSOXD": 0,
-      "DIMCLRD": {
-        "rgb": "c1000000"
-      },
-      "DIMCLRE": {
-        "rgb": "c1000000"
-      },
-      "DIMCLRT": {
-        "rgb": "c1000000"
-      },
-      "DIMADEC": 0,
-      "DIMDEC": 4,
-      "DIMTDEC": 4,
-      "DIMALTU": 2,
-      "DIMALTTD": 2,
-      "DIMAUNIT": 0,
-      "DIMFRAC": 0,
-      "DIMLUNIT": 2,
-      "DIMDSEP": 46,
-      "DIMTMOVE": 0,
-      "DIMJUST": 0,
-      "DIMSD1": 0,
-      "DIMSD2": 0,
-      "DIMTOLJ": 1,
-      "DIMTZIN": 0,
-      "DIMALTZ": 0,
-      "DIMALTTZ": 0,
-      "DIMUPT": 0,
-      "DIMATFIT": 3,
-      "DIMTXSTY": [5, 1, 17, 17],
-      "DIMLWD": 4294967294,
-      "DIMLWE": 4294967294,
-      "flag0": 0,
-      "DIMLDRBLK": [5, 0, 0, 0],
-      "DIMBLK": [5, 0, 0, 0],
-      "DIMBLK1": [5, 0, 0, 0],
-      "DIMBLK2": [5, 0, 0, 0]
-    },
-    {
       "object": "MLEADERSTYLE",
       "index": 75,
       "type": 508,
@@ -3917,7 +3659,6 @@
       "eed": [
         {
           "size": 3,
-          "handle": [5, 2, 263],
           "code": 70,
           "value": 2
         }
@@ -6436,22 +6177,6 @@
       ]
     },
     {
-      "object": "APPID",
-      "index": 146,
-      "type": 67,
-      "handle": [0, 2, 515],
-      "size": 46,
-      "bitsize": 341,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "ACAD_EXEMPT_FROM_CAD_STANDARDS",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
       "object": "DBCOLOR",
       "index": 147,
       "type": 517,
```
fixing 2004 oda issue AcDbRegAppTableRecord can't be cast to AcDbEntity
This is a GitHub Issue
repo:libredwg
owner:LibreDWG
Title : fixing 2004 oda issue AcDbRegAppTableRecord can't be cast to AcDbEntity
Issue date:

--- start body ---
with 2004/dbcolor json roundtrips and applying the following diff, results in a fixed ODA conversion. no Annotative data, no other APPID records.
without it fails with 
Object of class AcDbRegAppTableRecord can't be cast to AcDbEntity.

``` diff
--- ../.build/dbcolor_2004.json	2023-08-24 18:23:06.390050916 +0200
+++ dbcolor_2004.json	2023-08-24 18:31:19.434854118 +0200
@@ -545,13 +545,8 @@
       "ownerhandle": [4, 0, 0, 0],
       "entries": [
         [2, 1, 18, 18],
-        [2, 1, 221, 221],
-        [2, 1, 222, 222],
-        [2, 1, 223, 223],
-        [2, 1, 224, 224],
         [2, 2, 263, 263],
         [2, 2, 422, 422],
-        [2, 2, 515, 515]
       ]
     },
     {
@@ -3583,7 +3578,6 @@
       "cloning": 1,
       "is_hardowner": 0,
       "items": {
-        "Annotative": [2, 1, 229, 229],
         "Standard": [2, 1, 216, 216]
       }
     },
@@ -3656,258 +3650,6 @@
       "break_size": 0.125
     },
     {
-      "object": "STYLE",
-      "index": 69,
-      "type": 53,
-      "handle": [0, 1, 220],
-      "size": 94,
-      "bitsize": 727,
-      "eed": [
-        {
-          "size": 28,
-          "handle": [5, 1, 222],
-          "code": 0,
-          "value": "AnnotativeData"
-        },
-        {
-          "code": 2,
-          "value": 0
-        },
-        {
-          "code": 70,
-          "value": 1
-        },
-        {
-          "code": 70,
-          "value": 1
-        },
-        {
-          "code": 2,
-          "value": 1
-        },
-        {
-          "size": 14,
-          "handle": [5, 1, 18],
-          "code": 0,
-          "value": "Arial"
-        },
-        {
-          "code": 71,
-          "value": 34
-        }
-      ],
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 3, 3],
-      "name": "Annotative",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "is_shape": 0,
-      "is_vertical": 0,
-      "text_size": 0.0,
-      "width_factor": 1.0,
-      "oblique_angle": 0.0,
-      "generation": 0,
-      "last_height": 0.2,
-      "font_file": "Arial.ttf",
-      "bigfont_file": ""
-    },
-    {
-      "object": "APPID",
-      "index": 70,
-      "type": 67,
-      "handle": [0, 1, 221],
-      "size": 25,
-      "bitsize": 173,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "AcadAnnoPO",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
-      "object": "APPID",
-      "index": 71,
-      "type": 67,
-      "handle": [0, 1, 222],
-      "size": 29,
-      "bitsize": 205,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "AcadAnnotative",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
-      "object": "APPID",
-      "index": 72,
-      "type": 67,
-      "handle": [0, 1, 223],
-      "size": 33,
-      "bitsize": 237,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "ACAD_DSTYLE_DIMJAG",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
-      "object": "APPID",
-      "index": 73,
-      "type": 67,
-      "handle": [0, 1, 224],
-      "size": 34,
-      "bitsize": 245,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "ACAD_DSTYLE_DIMTALN",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
-      "object": "DIMSTYLE",
-      "index": 74,
-      "type": 69,
-      "handle": [0, 1, 225],
-      "size": 192,
-      "bitsize": 1458,
-      "eed": [
-        {
-          "size": 28,
-          "handle": [5, 1, 222],
-          "code": 0,
-          "value": "AnnotativeData"
-        },
-        {
-          "code": 2,
-          "value": 0
-        },
-        {
-          "code": 70,
-          "value": 1
-        },
-        {
-          "code": 70,
-          "value": 1
-        },
-        {
-          "code": 2,
-          "value": 1
-        },
-        {
-          "size": 12,
-          "handle": [5, 1, 223],
-          "code": 70,
-          "value": 388
-        },
-        {
-          "code": 40,
-          "value": 1.5
-        },
-        {
-          "size": 6,
-          "handle": [5, 1, 224],
-          "code": 70,
-          "value": 392
-        },
-        {
-          "code": 70,
-          "value": 0
-        }
-      ],
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 10, 10],
-      "name": "Annotative",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "DIMPOST": "",
-      "DIMAPOST": "",
-      "DIMSCALE": 0.0,
-      "DIMASZ": 0.18,
-      "DIMEXO": 0.0625,
-      "DIMDLI": 0.38,
-      "DIMEXE": 0.18,
-      "DIMRND": 0.0,
-      "DIMDLE": 0.0,
-      "DIMTP": 0.0,
-      "DIMTM": 0.0,
-      "DIMTOL": 0,
-      "DIMLIM": 0,
-      "DIMTIH": 1,
-      "DIMTOH": 1,
-      "DIMSE1": 0,
-      "DIMSE2": 0,
-      "DIMTAD": 0,
-      "DIMZIN": 0,
-      "DIMAZIN": 0,
-      "DIMTXT": 0.18,
-      "DIMCEN": 0.09,
-      "DIMTSZ": 0.0,
-      "DIMALTF": 25.4,
-      "DIMLFAC": 1.0,
-      "DIMTVP": 0.0,
-      "DIMTFAC": 1.0,
-      "DIMGAP": 0.09,
-      "DIMALTRND": 0.0,
-      "DIMALT": 0,
-      "DIMALTD": 2,
-      "DIMTOFL": 0,
-      "DIMSAH": 0,
-      "DIMTIX": 0,
-      "DIMSOXD": 0,
-      "DIMCLRD": {
-        "rgb": "c1000000"
-      },
-      "DIMCLRE": {
-        "rgb": "c1000000"
-      },
-      "DIMCLRT": {
-        "rgb": "c1000000"
-      },
-      "DIMADEC": 0,
-      "DIMDEC": 4,
-      "DIMTDEC": 4,
-      "DIMALTU": 2,
-      "DIMALTTD": 2,
-      "DIMAUNIT": 0,
-      "DIMFRAC": 0,
-      "DIMLUNIT": 2,
-      "DIMDSEP": 46,
-      "DIMTMOVE": 0,
-      "DIMJUST": 0,
-      "DIMSD1": 0,
-      "DIMSD2": 0,
-      "DIMTOLJ": 1,
-      "DIMTZIN": 0,
-      "DIMALTZ": 0,
-      "DIMALTTZ": 0,
-      "DIMUPT": 0,
-      "DIMATFIT": 3,
-      "DIMTXSTY": [5, 1, 17, 17],
-      "DIMLWD": 4294967294,
-      "DIMLWE": 4294967294,
-      "flag0": 0,
-      "DIMLDRBLK": [5, 0, 0, 0],
-      "DIMBLK": [5, 0, 0, 0],
-      "DIMBLK1": [5, 0, 0, 0],
-      "DIMBLK2": [5, 0, 0, 0]
-    },
-    {
       "object": "MLEADERSTYLE",
       "index": 75,
       "type": 508,
@@ -3917,7 +3659,6 @@
       "eed": [
         {
           "size": 3,
-          "handle": [5, 2, 263],
           "code": 70,
           "value": 2
         }
@@ -6436,22 +6177,6 @@
       ]
     },
     {
-      "object": "APPID",
-      "index": 146,
-      "type": 67,
-      "handle": [0, 2, 515],
-      "size": 46,
-      "bitsize": 341,
-      "is_xdic_missing": 1,
-      "ownerhandle": [4, 1, 9, 9],
-      "name": "ACAD_EXEMPT_FROM_CAD_STANDARDS",
-      "is_xref_ref": 1,
-      "is_xref_resolved": 0,
-      "is_xref_dep": 0,
-      "xref": [5, 0, 0, 0],
-      "unknown": 0
-    },
-    {
       "object": "DBCOLOR",
       "index": 147,
       "type": 517,
```
--- end body ---
