graph TD

    %% Node Definitions
    d2{"Do you get an error when you manually rebuild the PDT?"}
    d3{"Is the problem isolated to a single connection?"}
    h1["Check the build failure error message."]
    h2["Test the connection and check scratch schema privileges."]
    h3["Check for a hung regenerator."]

    %% Connections
    d2 -- "Yes" --> h1
    d2 -- "No" --> d3
    d3 -- "Yes" --> h2
    d3 -- "No" --> h3

    %% Styling

    classDef decision fill:#D8EED8,stroke:#000,stroke-width:2px,font-weight:normal;
    class d2,d3 decision

    classDef solution fill:#FEF6E0,stroke:#000,stroke-width:2px,font-weight:normal;
    class h1,h2,h3 solution

    %% Click events

    click h1 href "https://cloud.google.com/looker/docs/admin-panel-database-pdts"
    click h2 href "https://cloud.google.com/looker/docs/derived-tables#persistent_derived_tables"
    click h3 href "https://cloud.google.com/looker/docs/derived-tables#the_looker_regenerator"