Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query_poll_table is getting errors when attempting to update table #1

Open
brountre opened this issue Feb 3, 2022 · 2 comments
Open

Comments

@brountre
Copy link

brountre commented Feb 3, 2022

(.venv) PS C:\Repos\Code\Python\pgsf> python.exe .\query_poll_table.py Account

Traceback (most recent call last):
File "C:\Repos\Code\Python\pgsf\query_poll_table.py", line 275, in
main()
File "C:\Repos\Code\Python\pgsf\query_poll_table.py", line 273, in main
sync_table(args.table)
File "C:\Repos\Code\Python\pgsf\query_poll_table.py", line 232, in sync_table
pg_merge_update(td, tmp_tablename)
File "C:\Repos\Code\Python\pgsf\query_poll_table.py", line 141, in pg_merge_update
cursor.execute(sql)
psycopg2.errors.UndefinedColumn: column "IsDeleted" does not exist
LINE 5: WHERE NOT "IsDeleted"
^
HINT: Perhaps you meant to reference the column "tmp_account.isdeleted" or the column "account.isdeleted".

@nirgal
Copy link
Owner

nirgal commented Feb 10, 2022

Please make sure the column "IsDeleted" is selected for synchronisation in the csv file.

@brountre
Copy link
Author

I believe this is set for synchronization. Please see attached mapping file

Account.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants