# Node-red-contrib-json-db DataError: The Data Path can't be empty

**URL:** <https://discourse.nodered.org/t/node-red-contrib-json-db-dataerror-the-data-path-cant-be-empty/77991>\
**Category:** General\
**Tags:** database, docker\
**Created:** [27 April 2023 23:05 UTC](https://discourse.nodered.org/t/node-red-contrib-json-db-dataerror-the-data-path-cant-be-empty/77991 "2023-04-27T23:05:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EchoSmith](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@EchoSmith](https://discourse.nodered.org/u/EchoSmith)\
**Post date:** [27 April 2023 23:05 UTC](https://discourse.nodered.org/t/node-red-contrib-json-db-dataerror-the-data-path-cant-be-empty/77991/1 "2023-04-27T23:05:55Z")

</div>

Hello,  
I have used this node before without issue, however when I run it in the latest docker container I am getting this error message. DataError: The Data Path can't be empty. If I test it outside a docker it works fine, but soon as it is in a docker container the error message appears.  
Here is the example flow I have been using.

```auto
[
    {
        "id": "50cbab180f96f2ec",
        "type": "DataIn",
        "z": "54e00243c63a0667",
        "collection": "dd241ba0efa3c601",
        "name": "",
        "update": false,
        "topic": "",
        "x": 910,
        "y": 720,
        "wires": []
    },
    {
        "id": "b534ad217423053c",
        "type": "DataOut",
        "z": "54e00243c63a0667",
        "collection": "dd241ba0efa3c601",
        "name": "",
        "topic": "",
        "error": false,
        "x": 920,
        "y": 780,
        "wires": [
            [
                "668fc139d5107d1c"
            ]
        ]
    },
    {
        "id": "bd22848411e9cc13",
        "type": "inject",
        "z": "54e00243c63a0667",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "datapath",
                "v": "/client",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 720,
        "y": 720,
        "wires": [
            [
                "50cbab180f96f2ec"
            ]
        ]
    },
    {
        "id": "ad69d02b37b5abcf",
        "type": "inject",
        "z": "54e00243c63a0667",
        "name": "",
        "props": [
            {
                "p": "datapath",
                "v": "/",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 710,
        "y": 780,
        "wires": [
            [
                "b534ad217423053c"
            ]
        ]
    },
    {
        "id": "668fc139d5107d1c",
        "type": "debug",
        "z": "54e00243c63a0667",
        "name": "debug 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1100,
        "y": 780,
        "wires": []
    },
    {
        "id": "dd241ba0efa3c601",
        "type": "json-db-collection",
        "name": "",
        "collection": "workplace",
        "save": true
    }
]

```

I thought this could be a permission issue so I did a chmod 777 to the JsonDB folder and file that was created, but still no luck. Does anyone have any ideas as to why this flow works on a stand alone version but not in a docker container?  
Thanks

---

<div class="post-metadata">

**Author:** ![cameo69](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cameo69/32/66593_2.png) [@cameo69](https://discourse.nodered.org/u/cameo69)\
**Post date:** [28 April 2023 07:25 UTC](https://discourse.nodered.org/t/node-red-contrib-json-db-dataerror-the-data-path-cant-be-empty/77991/2 "2023-04-28T07:25:17Z")

</div>

Well, I tried in docker and it failed.  
But so did the example delivered with it, too.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/e/fe8ce4384b86b5fb2c74808cae9c352767b49f90.png)

The node has not been updated in 6 years and most of it is way older...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/b/1bb244d21ebb2bf98318c32120290821c425353b.png)

I guess the node simply is broken.

---

<div class="post-metadata">

**Author:** ![EchoSmith](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@EchoSmith](https://discourse.nodered.org/u/EchoSmith)\
**Post date:** [28 April 2023 09:50 UTC](https://discourse.nodered.org/t/node-red-contrib-json-db-dataerror-the-data-path-cant-be-empty/77991/3 "2023-04-28T09:50:18Z")

</div>

Thanks for testing it out man, I tried what looks to be another clone and it looks to work. json-db-node-red So if anyone else has this issue just do not use that repo and use this one.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 May 2023 09:50 UTC](https://discourse.nodered.org/t/node-red-contrib-json-db-dataerror-the-data-path-cant-be-empty/77991/4 "2023-05-12T09:50:36Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
