1. In programming, an attempt to assign a value to a variable that does not meet the required type, format, or constraints
The compiler threw an error: invalid assignment of string to integer variable.
O compilador lançou um erro: atribuição inválida de string para variável inteira.
2. In general context, the act of assigning something that is inappropriate, unsuitable, or not legally/officially valid
The invalid assignment of duties to unqualified personnel caused project delays.
A atribuição inválida de tarefas a pessoal não qualificado causou atrasos no projeto.