# Not Found: FlowToken with ID -\> how to find which flow/device?

**URL:** <https://community.homey.app/t/not-found-flowtoken-with-id-how-to-find-which-flow-device/127591>\
**Category:** Questions & Help\
**Created:** [January 13, 2025, 12:24pm UTC](https://community.homey.app/t/not-found-flowtoken-with-id-how-to-find-which-flow-device/127591 "2025-01-13T12:24:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timmm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timmm/32/110251_2.png) [@Timmm](https://community.homey.app/u/Timmm)\
**Post date:** [January 13, 2025, 12:24pm UTC](https://community.homey.app/t/not-found-flowtoken-with-id-how-to-find-which-flow-device/127591/1 "2025-01-13T12:24:33Z")

</div>

Hi Homey friends,

In my telegram chat I receive a notification once in a while with

Not Found: FlowToken with ID homey:manager:logic:[string with numbers].

How can I find out what flow is broken here?  
Besides of course checking all manually…

Gr. Tim

---

<div class="post-metadata">

**Author:** ![Ruurd\_van\_der\_Noord](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruurd_van_der_noord/32/71093_2.png) [@Ruurd\_van\_der\_Noord](https://community.homey.app/u/Ruurd_van_der_Noord)\
**Post date:** [January 13, 2025, 2:43pm UTC](https://community.homey.app/t/not-found-flowtoken-with-id-how-to-find-which-flow-device/127591/2 "2025-01-13T14:43:36Z")

</div>

Hi Tim, did you already take a look here: [flowchecker](https://homey.app/nl-nl/app/com.athom.flowchecker/Flow-Checker/)

Besides this checking enabled and disabled flows you might use this HomeyScript:

```auto
// Function to get and categorize flows
// Author: RuuRd van der Noord
// Date: 2025-01-06

async function getAndCategorizeFlows() {
    try {
        // Fetch standard and advanced flows from Homey
        const [aStandardFlows, aAdvancedFlows] = await Promise.all([
            Homey.flow.getFlows(),
            Homey.flow.getAdvancedFlows()
        ]);

        // Initialize arrays to hold categorized flows
        const aEnabledFlows = [];
        const aDisabledFlows = [];

        // Iterate and categorize flows
        for (const flows of [aStandardFlows, aAdvancedFlows]) {
            for (const flowId in flows) {
                const { enabled, id, name } = flows[flowId];

                if (enabled !== undefined) {
                    (enabled ? aEnabledFlows : aDisabledFlows).push({ id, name, type: flows === aStandardFlows ? 'standard' : 'advanced' });
                } else {
                    console.warn(`Flow with ID ${flowId} is missing or invalid.`);
                }
            }
        }

        // Output the results for enabled flows
        console.log('// Enabled Flows:');
        console.log('const aEnabledFlows = [');
        aEnabledFlows.forEach(({ id, name, type }) => console.log(`{ ID: '${id}', Name: '${name}', Type: '${type}' },`));
        console.log('];');

        // Output the results for disabled flows
        console.log('// Disabled Flows:');
        console.log('const aDisabledFlows = [');
        aDisabledFlows.forEach(({ id, name, type }) => console.log(`{ ID: '${id}', Name: '${name}', Type: '${type}' },`));
        console.log('];');

    } catch (error) {
        // Log any errors that occur during the flow retrieval process
        console.error('An error occurred while retrieving and categorizing flows:', error);
    }
}

// Call the function to execute the flow retrieval and categorization
await getAndCategorizeFlows();

```

---

<div class="post-metadata">

**Author:** ![Timmm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timmm/32/110251_2.png) [@Timmm](https://community.homey.app/u/Timmm)\
**Post date:** [January 13, 2025, 3:24pm UTC](https://community.homey.app/t/not-found-flowtoken-with-id-how-to-find-which-flow-device/127591/3 "2025-01-13T15:24:10Z")

</div>

Thanks Ruurd,  
Maybe this one is the problem. Is there any way, beside digging my memory/thinking what this tag(?) was?

 ![Scherm­afbeelding 2025-01-13 om 16.22.54](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/d/3dc044060006faeae6ce474261c290cf8ffc75db.jpeg)

---

<div class="post-metadata">

**Author:** ![Ruurd\_van\_der\_Noord](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruurd_van_der_noord/32/71093_2.png) [@Ruurd\_van\_der\_Noord](https://community.homey.app/u/Ruurd_van_der_Noord)\
**Post date:** [January 13, 2025, 4:15pm UTC](https://community.homey.app/t/not-found-flowtoken-with-id-how-to-find-which-flow-device/127591/4 "2025-01-13T16:15:00Z")

</div>

Well resting with the cursor on this unavailable object/variable will not show anything.  
What I do to avoid getting stuck is to create screendumps of every Flow (part).  
This does not help you now, but anyway it is a practice that can help you in the future …  
Oh yes, when you delete objects/variables/etc. think first … 😉
