Hi all, I keep getting this error when trying to s...
# prefect-server
m
Hi all, I keep getting this error when trying to set up my Fivetran task using the class created in the documentation:
Copy code
azure_sql_task = FivetranSyncTask.run(
  File "/usr/local/lib/python3.9/site-packages/prefect/utilities/tasks.py", line 453, in method
    kwargs.setdefault(attr, getattr(self, attr))
AttributeError: 'str' object has no attribute 'connector_id'
Copy code
azure_sql_task = FivetranSyncTask.run(
    'abcdef',
    'abcdef',
    connector_id='hello',
    poll_status_every_n_seconds=15)
That's what I currently have and this is how I imported the class
Copy code
from prefect.tasks.fivetran.fivetran import FivetranSyncTask
k
Can you try
Copy code
azure_sql_task = FivetranSyncTask()(
    'abcdef',
    'abcdef',
    connector_id='hello',
    poll_status_every_n_seconds=15)
Assuming it’s inside your flow