Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL connector, "When a row is inserted" does not trigger on row insertion. #867

Closed
VictorVenetian opened this issue Sep 1, 2023 · 4 comments
Labels

Comments

@VictorVenetian
Copy link

VictorVenetian commented Sep 1, 2023

Describe the Bug with repro steps

  1. Stateful workflow with "When a row is inserted" SQL connector and using a connection string to the Azure DB, does not trigger when a row is inserted into the table defined in the connector.
  2. If I manually press the Run button, it will trigger but the output body is empty. Zero content length.
  3. No errors indicating the condition.
  4. And yes, SQL change tracking is enabled on the DB and the table.

What type of Logic App Is this happening in?

Standard (Portal)

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "Compose": {
                "inputs": "@triggerBody()",
                "runAfter": {},
                "type": "Compose"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_row_is_inserted": {
                "inputs": {
                    "parameters": {
                        "tableName": "Test_LogicApp"
                    },
                    "serviceProviderConfiguration": {
                        "connectionName": "sql-8",
                        "operationId": "whenARowIsInserted",
                        "serviceProviderId": "/serviceProviders/sql"
                    }
                },
                "type": "ServiceProvider"
            }
        }
    },
    "kind": "Stateful"
}

Screenshots or Videos

image

Browser

Latest Edge browser.

Additional context

No response

AB#25044319

AB#25064540

@Eric-B-Wu Eric-B-Wu transferred this issue from Azure/LogicAppsUX Sep 5, 2023
@github-actions
Copy link

This issue is stale because it has been open for 45 days with no activity.

@github-actions github-actions bot added the stale label Oct 20, 2023
@VictorVenetian
Copy link
Author

Abandoned this connector since it has restrictions on the table like an Identity column that is also a PK. This is why it does not trigger. This is not the case in my database. Refactored workflow to use a recurrence connector to periodically query a secondary storage table populated from a standard SQL trigger whenever there are inserts in the target table. Once processed in the logic app workflow, I delete the rows from the secondary storage table. This works fine.

@github-actions github-actions bot removed the stale label Oct 20, 2023
Copy link

github-actions bot commented Dec 4, 2023

This issue is stale because it has been open for 45 days with no activity.

@github-actions github-actions bot added the stale label Dec 4, 2023
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant