Forum Discussion

joe4216's avatar
joe4216
New Member
4 months ago
Solved

Data flow issues

Issue Summary We are experiencing consistent refresh failures in a Dataflow Gen2 that connects to Amazon Redshift through the On‑premises Data Gateway. The refresh attempts time out when the g...
  • Ritaf1983's avatar
    4 months ago

    Hi joe4216 

    The following is a technical analysis of the GatewayDataSourceOpenConnectionTimeout error between Dataflow Gen2 and Amazon Redshift:

    The timeout error indicates a failure during the initial TCP handshake or SSL negotiation phase, where the On-premises Data Gateway fails to establish a response from Redshift within the allocated timeframe. The first critical step is isolating the network layer from the Gateway server itself. Run the following command in PowerShell: Test-NetConnection -ComputerName [Redshift_Endpoint] -Port 5439. If this returns TcpTestSucceeded: False, the issue is a firewall blockage at the local server, corporate network, or within the AWS VPC Security Groups. Ensure that Redshift Inbound Rules explicitly allow traffic from the Gateway's public or private IP.

    If basic connectivity is confirmed, analyze the Redshift connection logs by querying the stl_connection_log table. If no connection attempts from the Gateway IP are logged, the request is being dropped before reaching AWS. If attempts are logged with status failures, the issue may stem from cluster load or a mismatch in encryption protocols. Simultaneously, export the Gateway logs and search the Information and Error files for the specific Request ID. These logs will clarify if the failure is due to DNS resolution issues or a timeout in the Mashup Engine's connection pool.

    In the context of Fabric and Dataflow Gen2, verify if the Gateway is overwhelmed by concurrent requests. If the server is under high resource pressure, you can increase the available containers by modifying the Microsoft.PowerBI.DataMovement.Pipeline.GatewayCore.dll.config file, specifically increasing the MashupDefaultPoolContainerMaxCount value. Furthermore, ensure the Gateway is updated to the latest version, as Fabric-specific optimizations for Dataflow Gen2 connection management are frequently released to address cloud-to-on-premises routing latencies.

    Recommended Action Sequence:

    Validate Port 5439: Use PowerShell on the Gateway host to confirm the path to Redshift is open.

    Verify Redshift Logs: Check stl_connection_log to see if the handshake reaches the database.

    Audit Gateway Resources: Check for CPU/Memory spikes and ensure the Gateway version is current.

    Check SSL/TLS: Ensure the Gateway server supports the encryption level required by your Redshift cluster configuration.

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly