DAP Canvas Data 2 replication error--invalid syntax

AndreDhondt
Community Novice

We've been cloning Canvas data successfully for months using DAP2, but recently noticed this sync failure, which looks to be coming from DAP code. When I run this directly in a query editor it balks at the newline separators and the quotes as well as the comma separating the two add value clauses.

 

File \"/var/task/pysqlsync/base.py\", line 851, in execute\n raise QueryException(statement) from e\npysqlsync.base.QueryException: error executing query:\nALTER TYPE \"canvas\".\"assignments__workflow_state\"\nADD VALUE 'outcome_alignment_cloning',\nADD VALUE 'failed_to_clone_outcome_alignment';", "exception_name": "QueryException", "stack_trace": { "type": "QueryException", "value": "error executing query:\nALTER TYPE \"canvas\".\"assignments__workflow_state\"\nADD VALUE 'outcome_alignment_cloning',\nADD VALUE 'failed_to_clone_outcome_alignment';", "module": "pysqlsync.base", "frames": [ { "file": "/var/task/app.py", "line": 60, "function": "lambda_handler", "statement": "asyncio.get_event_loop().run_until_complete(" }, { "file": "/var/lang/lib/python3.11/asyncio/base_events.py", "line": 654, "function": "run_until_complete", "statement": "return future.result()" }, { "file": "/var/task/app.py", "line": 105, "function": "sync_table", "statement": "await SQLReplicator(session, db_connection).synchronize(namespace, table_name)" }, { "file": "/var/task/dap/replicator/sql.py", "line": 77, "function": "synchronize", "statement": "await sync_op.run()" }, { "file": "/var/task/dap/replicator/sql_op_sync.py", "line": 39, "function": "run", "statement": "await self.explorer.synchronize(modules=[meta_schema, self.namespace_module])" }, { "file": "/var/task/pysqlsync/base.py", "line": 1442, "function": "synchronize", "statement": "await self.conn.execute(stmt)" }, { "file": "/var/task/pysqlsync/base.py", "line": 851, "function": "execute", "statement": "raise QueryException(statement) from e" } ]

 

Anyone know how to resolve this?

Labels (1)