<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot update Google BigQuery data source credentials using the API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-update-Google-BigQuery-data-source-credentials-using-the/m-p/4129474#M55071</link>
    <description>&lt;P&gt;Yes, the sample code sends the JSON key as an f string which formats the key. Changing that to a raw string fixed the problem.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 11:42:55 GMT</pubDate>
    <dc:creator>afernand0</dc:creator>
    <dc:date>2024-09-02T11:42:55Z</dc:date>
    <item>
      <title>Cannot update Google BigQuery data source credentials using the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-update-Google-BigQuery-data-source-credentials-using-the/m-p/3543690#M45433</link>
      <description>&lt;P&gt;I'm trying to update credentials of a BigQuery data source using the sample code from Microsoft that's available in the link below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a service account with basic credentials to connect to BigQuery. The username and the password works when I enter from the Power BI website. However, I get an Invalid username and password error when I enter the same credentials to the webapp that the sample python code launches.&lt;BR /&gt;I'm using a service principal to authenticate with the Power BI REST API and it is an admin for both gateway and connection. Much appreciated if someone could shed some light on to what's causing the issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sample Code:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/Python" target="_blank" rel="noopener"&gt;https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/Python&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{'error': {'code': 'DM_GWPipeline_Gateway_InvalidConnectionCredentials', 'pbi.error': {'code': 'DM_GWPipeline_Gateway_InvalidConnectionCredentials', 'parameters': {}, 'details': [
                {'code': 'DM_ErrorDetailNameCode_UnderlyingErrorCode', 'detail': {'type': 1, 'value': '-2147467259'
                    }
                },
                {'code': 'DM_ErrorDetailNameCode_UnderlyingErrorMessage', 'detail': {'type': 1, 'value': 'The credentials provided for the GoogleBigQuery source are invalid. (Source at GoogleBigQuery.)'
                    }
                },
                {'code': 'DM_ErrorDetailNameCode_UnderlyingHResult', 'detail': {'type': 1, 'value': '-2147467259'
                    }
                },
                {'code': 'Microsoft.Data.Mashup.CredentialError.DataSourceKind', 'detail': {'type': 1, 'value': 'GoogleBigQuery'
                    }
                },
                {'code': 'Microsoft.Data.Mashup.CredentialError.DataSourceOriginKind', 'detail': {'type': 1, 'value': 'GoogleBigQuery'
                    }
                },
                {'code': 'Microsoft.Data.Mashup.CredentialError.DataSourceOriginPath', 'detail': {'type': 1, 'value': 'GoogleBigQuery'
                    }
                },
                {'code': 'Microsoft.Data.Mashup.CredentialError.DataSourcePath', 'detail': {'type': 1, 'value': 'GoogleBigQuery'
                    }
                },
                {'code': 'Microsoft.Data.Mashup.CredentialError.Reason', 'detail': {'type': 1, 'value': 'AccessUnauthorized'
                    }
                },
                {'code': 'Microsoft.Data.Mashup.MashupSecurityException.DataSources', 'detail': {'type': 1, 'value': '[
                            {
                                "kind": "GoogleBigQuery",
                                "path": "GoogleBigQuery"
                            }
                        ]'
                    }
                },
                {'code': 'Microsoft.Data.Mashup.MashupSecurityException.Reason', 'detail': {'type': 1, 'value': 'AccessUnauthorized'
                    }
                }
            ], 'exceptionCulprit': 1
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 22:39:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-update-Google-BigQuery-data-source-credentials-using-the/m-p/3543690#M45433</guid>
      <dc:creator>afernand0</dc:creator>
      <dc:date>2023-11-21T22:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update Google BigQuery data source credentials using the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-update-Google-BigQuery-data-source-credentials-using-the/m-p/4128419#M55051</link>
      <description>&lt;P&gt;Did you fix it?&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 20:13:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-update-Google-BigQuery-data-source-credentials-using-the/m-p/4128419#M55051</guid>
      <dc:creator>marconiqavi</dc:creator>
      <dc:date>2024-09-01T20:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update Google BigQuery data source credentials using the API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-update-Google-BigQuery-data-source-credentials-using-the/m-p/4129474#M55071</link>
      <description>&lt;P&gt;Yes, the sample code sends the JSON key as an f string which formats the key. Changing that to a raw string fixed the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 11:42:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-update-Google-BigQuery-data-source-credentials-using-the/m-p/4129474#M55071</guid>
      <dc:creator>afernand0</dc:creator>
      <dc:date>2024-09-02T11:42:55Z</dc:date>
    </item>
  </channel>
</rss>

