0

I'm trying to connect to an on-premises SQL Server instance using the SQL Server connector in Power Automate within a Power Platform environment linked to an Azure Virtual Network (VNET). Microsoft documentation reference

The purpose of VNET is to securely connect to Azure resources (Storage account, Key Vault, Azure SQL etc.,) from VNET without exposing the resource publicly.

After setting up the VNET connectivity I was able to securely connect to Services in Azure.

But the issue is, I'm unable to connect to an On premises SQL Server using the On-prem gateway. I tried get rows v2 method using Windows authentication, the server, database and tables list the values, but when I save the flow I get the error below.

The SQL connector document says

On-premise data gateway is not supported https://learn.microsoft.com/en-au/connectors/sql/

Help much appreciated.

{
  "error": {
    "code": 500,
    "source": "e4ab17db-*********.14.common.australia.azure-apihub.net",
    "clientRequestId": "00000000-0000-0000-0000-000000000000",
    "message": "BadGateway",
    "innerError": {
      "status": 500,
      "message": "System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.\n   at Microsoft.Azure.Connectors.Sql.NativeExecutor.SqlNativeExecutor.ExecuteAndReadResultSetsInnerAsync(ISqlConnectionCredentials credentials, IReadOnlyDictionary`2 formalParameters, IReadOnlyDictionary`2 actualParameters, String query, Int32 maxResultSets, CancellationToken cancellationToken)\n   at Microsoft.Azure.Connectors.Sql.PlexExtension.Operations.NativeExecutorOperations.ExecuteAndReadResultSetsAsync(RequestWrapper`1 wrapper, CancellationToken cancellationToken) in C:\\__w\\1\\s\\src\\Connectors\\FirstParty\\sql\\PlexExtension\\Operations\\NativeExecutorOperations.cs:line 84\n   at Microsoft.Azure.Connectors.Common.SubnetDelegation.PlexExtension.PlexExtension.ExecuteAsync(ExtensionRequest extensionRequest, IExtensionServiceProvider serviceProvider, CancellationToken cancellationToken)\nclientRequestId: 00000000-0000-0000-0000-000000000000",
      "error": {
        "message": "System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.\n   at Microsoft.Azure.Connectors.Sql.NativeExecutor.SqlNativeExecutor.ExecuteAndReadResultSetsInnerAsync(ISqlConnectionCredentials credentials, IReadOnlyDictionary`2 formalParameters, IReadOnlyDictionary`2 actualParameters, String query, Int32 maxResultSets, CancellationToken cancellationToken)\n   at Microsoft.Azure.Connectors.Sql.PlexExtension.Operations.NativeExecutorOperations.ExecuteAndReadResultSetsAsync(RequestWrapper`1 wrapper, CancellationToken cancellationToken) in C:\\__w\\1\\s\\src\\Connectors\\FirstParty\\sql\\PlexExtension\\Operations\\NativeExecutorOperations.cs:line 84\n   at Microsoft.Azure.Connectors.Common.SubnetDelegation.PlexExtension.PlexExtension.ExecuteAsync(ExtensionRequest extensionRequest, IExtensionServiceProvider serviceProvider, CancellationToken cancellationToken)"
      },
      "source": "sql-ae.azconn-ae-001.p.azurewebsites.net"
    }
  }
}
4
  • Did you read the detailed error message? Commented Oct 28 at 14:15
  • @DaleK I think you are referring to message "Format of the initialization string does not conform to specification starting..." I tried different server format servername.company.com and ip addresses but same issue. Commented Oct 28 at 23:09
  • If you want help with that you need to show us your connection string Commented Oct 28 at 23:55
  • @DaleK I'm connecting via Power Automate action. How do you get connection string Commented Oct 29 at 10:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.