# Getting "Parameter validation failed: Invalid length for parameter SessionTags\[0\].Value, value: 0, valid min length: 1"

**URL:** <https://community.amazonquick.com/t/getting-parameter-validation-failed-invalid-length-for-parameter-sessiontags-0-value-value-0-valid-min-length-1/27572>\
**Category:** Q&A\
**Tags:** SDK, developer, quick-sight\
**Created:** [March 21, 2024, 6:30am UTC](https://community.amazonquick.com/t/getting-parameter-validation-failed-invalid-length-for-parameter-sessiontags-0-value-value-0-valid-min-length-1/27572 "2024-03-21T06:30:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leon](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@Leon](https://community.amazonquick.com/u/Leon)\
**Post date:** [March 21, 2024, 6:30am UTC](https://community.amazonquick.com/t/getting-parameter-validation-failed-invalid-length-for-parameter-sessiontags-0-value-value-0-valid-min-length-1/27572/1 "2024-03-21T06:30:59Z")

</div>

I have the following code which is using RLS and it’s working fine with data filtering until I have a session tag like below where I have an empty string. Just wondering what should I do in this scenario, just don’t provide param SessionTags all together, will the customer see everything i.e unfiltered data in this case? Thanks

```auto
qs_client.generate_embed_url_for_anonymous_user(
            AwsAccountId=account_id,
            Namespace="default",
            AuthorizedResourceArns=auth_resource_arns,
            ExperienceConfiguration={"Dashboard": {"InitialDashboardId": dashboard_id}},
            SessionTags=session_tags,
            SessionLifetimeInMinutes=session_lifetime_in_minutes,
        )

```

```auto
Session tags: [{'Key': 'tag_application_name', 'Value': ''}]

```

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [March 22, 2024, 8:49am UTC](https://community.amazonquick.com/t/getting-parameter-validation-failed-invalid-length-for-parameter-sessiontags-0-value-value-0-valid-min-length-1/27572/2 "2024-03-22T08:49:39Z")

</div>

@Leon ,

[GenerateEmbedUrlForAnonymousUser - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_GenerateEmbedUrlForAnonymousUser.html#API_GenerateEmbedUrlForAnonymousUser_RequestSyntax) ( There needs to a minimum of 1 item for the session tag) .

Additionally if you try with a whitespace , here is what you get

> “errorMessage”: “An error occurred (InvalidParameterValueException) when calling the GenerateEmbedUrlForAnonymousUser operation: Tag key cannot be empty or have only whitespaces.”,  
> “errorType”: “InvalidParameterValueException”,

If you want the customer to see everything, then don’t add a session tag else you need add a value to filter what the customer is allowed to see.

Kind regards,  
Koushik

---

<div class="post-metadata">

**Author:** ![Leon](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@Leon](https://community.amazonquick.com/u/Leon)\
**Post date:** [March 22, 2024, 10:01am UTC](https://community.amazonquick.com/t/getting-parameter-validation-failed-invalid-length-for-parameter-sessiontags-0-value-value-0-valid-min-length-1/27572/3 "2024-03-22T10:01:22Z")

</div>

In this case I don’t want customer to see anything, maybe just empty visuals without data.

Sounds like I can only provide this 1 session tag with a very very special char, is this the only way?

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [May 10, 2024, 8:30am UTC](https://community.amazonquick.com/t/getting-parameter-validation-failed-invalid-length-for-parameter-sessiontags-0-value-value-0-valid-min-length-1/27572/4 "2024-05-10T08:30:58Z")

</div>

@Leon ,

Yes that would be the only way. I will mark this question as resolved.

Kind regards,  
Koushik
