fatal: [bisbasedbbis-local]: FAILED! => { 17:53:20 "msg": "Unexpected templating type…
- User
fatal: [bis_base_db_bis-local]: FAILED! => { 17:53:20 "msg": "Unexpected templating type error occurred on ({{ bis_setup_files | default([]) | union([{ 'dir': item.dir, 'sql_file': item.setup_file }]) }}): coercing to Unicode: need string or buffer, list found" 17:53:20 }
- Assistant
The error message suggests that there is an unexpected type error in a template on the line where you are using the expression
{{ bis_setup_files | default([]) | union([{ 'dir': item.dir, 'sql_file': item.setup_file }]) }}.The error is related to coercing a list to a string representation. The expression is trying to concatenate or use the values from
bis_setup_fileswith the values from the list[{ 'dir': item.dir, 'sql_file': item.setup_file }]. However, one of these variables is a list instead of a string or a buffer, causing the error.To further troubleshoot and fix the issue, you should check the variables
bis_setup_files,item.dir, anditem.setup_file, and ensure that they contain the expected values and are of the correct type.