HELP how to fix "Message": "Failure happened on 'Source' side. 'Type=Npgsql.PostgresException,Message=42601: syntax error at or near \"FROMpublic\"\r\n\r\nPOSITION: 10,Source=Npgsql,'"

Chris 0 Reputation points
2024-07-28T14:50:19.3366667+00:00

I created a ADF pipeline to ingest my tables in bulk to azure data lake storage from my postgres database . However while running the pipeline threw me an error : "Message": "Failure happened on 'Source' side. 'Type=Npgsql.PostgresException,Message=42601: syntax error at or near "FROMpublic"\r\n\r\nPOSITION: 10,Source=Npgsql,'"

It seems like this error is pointing to an issue in the query syntax on the source side. I am assuming that source side means the source side of the copy activity within the ForEach activity of my pipeline. Also, when i preview the output of each of the iterations of my ForEach activity, none of the data from the corresponding table in my postgres database was read (0). Granite, some of the tables are unpopulated but the tables are present from a CREATE TABLE statement. Even though some tables are empty, the pipeline shouldn't crash. I am not sure why. I don't see what could be wrong with the query. Does anyone have a solution to fix this?

azure snippet 1

azure snippet 2

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,198 questions
0 comments No comments
{count} votes