Skip to content

Episode 35 – Weekly plan exists in DB but workflow fails to detect it when creating posts #21

@S4KMedia

Description

@S4KMedia

Hi,

This issue is about Episode 35 (Instagram Influencer Machine).

The weekly plans ARE correctly saved in the influencer_weekly_plans data table.
I can see multiple entries with the correct:

  • influencer_id
  • week (e.g. 2025/3, 2025/4, etc.)
  • plan text

However, when running the “Create post” flow, the workflow always stops at:
“No plan for this week – You need a weekly plan before creating a post”

What’s happening:

  • The weekly plan is successfully created and stored in the DB
  • The week selector skips earlier weeks and only shows future ones
  • The Get the plan for the week / Has a plan for the week? logic never detects existing plans
  • The lookup seems to fail due to week format / mapping mismatch between form input and DB query

So the problem is NOT missing data — it’s the workflow logic that fails to match existing weekly plans.

Could you please clarify:

  • What exact week format the workflow expects at post-creation time
  • Which node is the single source of truth for the week value
  • Whether this is a known bug in Episode 35

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions