# Created subflownode not in in wanted category and color

**URL:** <https://discourse.nodered.org/t/created-subflownode-not-in-in-wanted-category-and-color/90638>\
**Category:** Developing Nodes\
**Tags:** subflow\
**Created:** [2 September 2024 10:53 UTC](https://discourse.nodered.org/t/created-subflownode-not-in-in-wanted-category-and-color/90638 "2024-09-02T10:53:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sander16091992](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sander16091992/32/94148_2.png) [@sander16091992](https://discourse.nodered.org/u/sander16091992)\
**Post date:** [2 September 2024 10:53 UTC](https://discourse.nodered.org/t/created-subflownode-not-in-in-wanted-category-and-color/90638/1 "2024-09-02T10:53:21Z")

</div>

I have packed a subflow into a package after installing the package the node does not go to the correct category  
below the packed json

```auto
[
    {
        "id": "bde86d20a9dcf656",
        "type": "subflow",
        "name": "TestIO",
        "info": "",
        "category": "Precia Molen Functions",
        "in": [
            {
                "x": 100,
                "y": 320,
                "wires": [
                    {
                        "id": "bb48283c010563a9"
                    },
                    {
                        "id": "58f48d1b6bdc4285"
                    }
                ]
            }
        ],
        "out": [
            {
                "x": 1040,
                "y": 280,
                "wires": [
                    {
                        "id": "bb48283c010563a9",
                        "port": 0
                    }
                ]
            },
            {
                "x": 1030,
                "y": 340,
                "wires": [
                    {
                        "id": "bb48283c010563a9",
                        "port": 1
                    }
                ]
            }
        ],
        "env": [
            {
                "name": "Number",
                "type": "num",
                "value": "",
                "ui": {
                    "type": "input",
                    "opts": {
                        "types": [
                            "num"
                        ]
                    }
                }
            },
            {
                "name": "State",
                "type": "str",
                "value": "",
                "ui": {
                    "type": "select",
                    "opts": {
                        "opts": [
                            {
                                "l": {
                                    "en-US": "High"
                                },
                                "v": "1"
                            },
                            {
                                "l": {
                                    "en-US": "Low"
                                },
                                "v": "0"
                            }
                        ]
                    }
                }
            }
        ],
        "meta": {},
        "color": "#FFAAAA",
        "outputLabels": [
            "Succes",
            "Abort"
        ],
        "flow":[
            {
                "id": "bb48283c010563a9",
                "type": "WaitForInput",
                "z": "bde86d20a9dcf656",
                "name": "",
                "number": "1",
                "state": "1",
                "x": 660,
                "y": 320,
                "wires": [
                    [],
                    [],
                    [
                        "8948cd8a91ad57eb"
                    ]
                ]
            },
            {
                "id": "7e18d742b5191735",
                "type": "link in",
                "z": "bde86d20a9dcf656",
                "name": "link in 2",
                "links": [
                    "8948cd8a91ad57eb"
                ],
                "x": 105,
                "y": 260,
                "wires": [
                    [
                        "58f48d1b6bdc4285"
                    ]
                ]
            },
            {
                "id": "8948cd8a91ad57eb",
                "type": "link out",
                "z": "bde86d20a9dcf656",
                "name": "UpdateIO",
                "mode": "link",
                "links": [
                    "7e18d742b5191735"
                ],
                "x": 795,
                "y": 380,
                "wires": []
            },
            {
                "id": "58f48d1b6bdc4285",
                "type": "http request",
                "z": "bde86d20a9dcf656",
                "name": "Get Input State",
                "method": "GET",
                "ret": "txt",
                "paytoqs": "ignore",
                "url": "",
                "tls": "",
                "persist": false,
                "proxy": "",
                "insecureHTTPParser": false,
                "authType": "",
                "senderr": false,
                "headers": [],
                "x": 240,
                "y": 260,
                "wires": [
                    [
                        "983f4c0c36c4cd60"
                    ]
                ]
            },
            {
                "id": "983f4c0c36c4cd60",
                "type": "function",
                "z": "bde86d20a9dcf656",
                "name": "function 3",
                "func": "msg.IoStream = msg.payload;\nmsg.payload = null;\nreturn msg;",
                "outputs": 1,
                "timeout": 0,
                "noerr": 0,
                "initialize": "",
                "finalize": "",
                "libs": [],
                "x": 420,
                "y": 260,
                "wires": [
                    [
                        "bb48283c010563a9"
                    ]
                ]
            }   
        ]
    }
]

```

It still appears in the subflow category.

---

<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:** [1 November 2024 10:53 UTC](https://discourse.nodered.org/t/created-subflownode-not-in-in-wanted-category-and-color/90638/2 "2024-11-01T10:53:35Z")

</div>

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