[Python] Azure TableClient ConnectionString update_request TypeError on dict

Discussão em 'Python' iniciado por Stack, Março 20, 2025.

  1. Stack

    Stack Membro Participativo

    I'm creating the table client like so:

    with TableClient.from_connection_string(self.connection_string, table_name=self.table_name) as table_update_entity:
    table_update_entity.update_entity(_entity, mode = UpdateMode.REPLACE)


    The _entity variable is a dictionary build like so:

    _entity = {
    str: str,
    .
    .
    .
    str: str,
    str: dict # This dict build is shown below
    }
    dict = {
    str: str,
    str; str,
    str: str,
    str: list,
    str: list,
    str: list
    }


    And I'm getting the following error:


    <class 'TypeError'>

    Type not supported when sending data to the service: <class 'dict'>.
    ​

    I've been trying to fix it for the past few hours, tried google, tried chatGPT and no luck for now, no solution I found help.


    Currently the only way I managed to "do it" is by deleting the request and then recreating it from 0

    Continue reading...

Compartilhe esta Página