# Quicksight: Facing "DataSourceCredentials field is incorrectly set" error on asset bundle override to override snowflake credentials

**URL:** <https://community.amazonquick.com/t/quicksight-facing-datasourcecredentials-field-is-incorrectly-set-error-on-asset-bundle-override-to-override-snowflake-credentials/46315>\
**Category:** Q&A\
**Tags:** error, developer, quick-sight\
**Created:** [May 16, 2025, 5:11am UTC](https://community.amazonquick.com/t/quicksight-facing-datasourcecredentials-field-is-incorrectly-set-error-on-asset-bundle-override-to-override-snowflake-credentials/46315 "2025-05-16T05:11:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaushalKhokhar](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@KaushalKhokhar](https://community.amazonquick.com/u/KaushalKhokhar)\
**Post date:** [May 16, 2025, 5:11am UTC](https://community.amazonquick.com/t/quicksight-facing-datasourcecredentials-field-is-incorrectly-set-error-on-asset-bundle-override-to-override-snowflake-credentials/46315/1 "2025-05-16T05:11:28Z")

</div>

Hey I am facing weird issue for overriding snowflake credentials on asset bundle import. I don’t know but there is no clear instructions I found in AWS official documents as well. This is literally frustrating.

Here is my override JSON

```auto
"DataSources": [
                  {
                      "DataSourceId": $id,
                      "Name": $name,
                      "Credentials": {
                          "CredentialPair": {
                              "Username": $username,
                              "Password": $password
                          }
                      }
                  }
              ]

```

I also tried variations too make sure i don’t make any mistakes.

```auto
"DataSources": [
                    {
                        "DataSourceId": $id,
                        "Name": $name,
                        "DataSourceParameters": {
                            "SnowflakeParameters": {
                                "Host": "MyHost",
                                "Database": "MyDB",
                                "Warehouse": "MyWH"
                            }
                        },
                        "Credentials": {
                            "CredentialPair": {
                                "Username": $username,
                                "Password": $password
                            }
                        },
                        "SslProperties": {
                            "DisableSsl": false
                        }
                    }
                ]

```

But I get the following error everytime.

```auto
Job failed with status: {
    "Status": 200,
    "JobStatus": "FAILED",
    "Errors": [
        {
            "Arn": "myArn",
            "Type": "com.amazonaws.services.quicksight.model.InvalidParameterValueException",
            "Message": "DataSourceCredentials field is incorrectly set"
        }
......

```

Let me know what I am missing here.

---

<div class="post-metadata">

**Author:** ![Deep](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/deep/32/14783_2.png) [@Deep](https://community.amazonquick.com/u/Deep)\
**Post date:** [May 16, 2025, 8:14am UTC](https://community.amazonquick.com/t/quicksight-facing-datasourcecredentials-field-is-incorrectly-set-error-on-asset-bundle-override-to-override-snowflake-credentials/46315/2 "2025-05-16T08:14:32Z")

</div>

Hello Kaushal,

I am not sure if this will fix the issue but could try using `SnowflakeCredentials` instead of ‘CredentialPair’ and see if it helps ?

{  
“DataSources”: [  
{  
“DataSourceId”: “$id”,  
“Name”: “$name”,  
“DataSourceParameters”: {  
“SnowflakeParameters”: {  
“Host”: “MyHost”,  
“Database”: “MyDB”,  
“Warehouse”: “MyWH”  
}  
},  
“Credentials”: {  
“SnowflakeCredentials”: {  
“Username”: “$username”,  
“Password”: “[PASSWORD]”  
}  
},  
“SslProperties”: {  
“DisableSsl”: false  
}  
}  
]  
}

Thank you.

Cheers,  
Deep

---

<div class="post-metadata">

**Author:** ![KaushalKhokhar](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@KaushalKhokhar](https://community.amazonquick.com/u/KaushalKhokhar)\
**Post date:** [May 24, 2025, 10:20am UTC](https://community.amazonquick.com/t/quicksight-facing-datasourcecredentials-field-is-incorrectly-set-error-on-asset-bundle-override-to-override-snowflake-credentials/46315/3 "2025-05-24T10:20:59Z")

</div>

Hey @Deep

I already tried this and it’s not working. I would love to read official document reference, if it really exist. But i already reached to AWS support and yet they were not able to resolve this case.

I hope they will figure out the case and provide me a proper direction to address.

---

<div class="post-metadata">

**Author:** ![KaushalKhokhar](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@KaushalKhokhar](https://community.amazonquick.com/u/KaushalKhokhar)\
**Post date:** [May 29, 2025, 8:34am UTC](https://community.amazonquick.com/t/quicksight-facing-datasourcecredentials-field-is-incorrectly-set-error-on-asset-bundle-override-to-override-snowflake-credentials/46315/4 "2025-05-29T08:34:18Z")

</div>

I was able to resolve the issue! If anyone is looking to override Snowflake credentials in a Quick Sight import, here’s the working format:

```auto
{
  "DataSources": [
    {
      "DataSourceId": "$id",
      "Name": "$name",
      "DataSourceParameters": {
        "SnowflakeParameters": {
          "Host": "MyHost",
          "Database": "MyDatabase",
          "Warehouse": "MyWH"
        }
      },
      "Credentials": {
        "CredentialPair": {
          "Username": "myusername",
          "Password": " **************"
        }
      },
      "SslProperties": {
        "DisableSsl": false
      }
    }
  ]
}

```

Make sure to replace placeholders like `$id`, `$name`, and credentials with your actual values.

Hope this helps others facing the same issue!

@Deep Yes, you were correct. The issue was due to other the dependency which was not included as a part of export.
