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

Salesforce Ingestion #14569

Closed
elguero6 opened this issue Jan 3, 2024 · 1 comment · Fixed by #14570
Closed

Salesforce Ingestion #14569

elguero6 opened this issue Jan 3, 2024 · 1 comment · Fixed by #14570
Assignees

Comments

@elguero6
Copy link

elguero6 commented Jan 3, 2024

Affected module
Ingestion Framework

Describe the bug
salesforce Ingestion fails, AttributeError: 'str' object has no attribute 'database_schema' on all tables, example in one of the error below

[2024-01-03T21:41:15.648+0000] {topology_runner.py:94} DEBUG - Processing stage: type_=<class 'metadata.ingestion.models.life_cycle.OMetaLifeCycleData'> processor='yield_life_cycle_data' context=None nullable=True must_return=False cache_all=False clear_cache=False overwrite=True consumer=None cache_entities=False use_cache=False [2024-01-03T21:41:15.654+0000] {topology_runner.py:94} DEBUG - Processing stage: type_=<class 'metadata.ingestion.models.ometa_classification.OMetaTagAndClassification'> processor='yield_table_tag_details' context='tags' nullable=True must_return=False cache_all=True clear_cache=False overwrite=True consumer=None cache_entities=False use_cache=False [2024-01-03T21:41:15.654+0000] {topology_runner.py:94} DEBUG - Processing stage: type_=<class 'metadata.generated.schema.entity.data.table.Table'> processor='yield_table' context='table' nullable=False must_return=False cache_all=False clear_cache=False overwrite=True consumer=['database_service', 'database', 'database_schema'] cache_entities=False use_cache=True [2024-01-03T21:41:15.897+0000] {status.py:65} WARNING - Unexpected exception for table [TEST_TABLE]: 'str' object has no attribute 'database_schema' [2024-01-03T21:41:15.898+0000] {status.py:66} DEBUG - Traceback (most recent call last): File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/salesforce/metadata.py", line 216, in yield_table schema_name=self.context.database.database_schema, AttributeError: 'str' object has no attribute 'database_schema'

To Reproduce

Create a successful connection to Salesforce and run a ingestion.

Expected behavior
Every table in the salesforce ingestion throws an error.

Version:

  • OS: Kubernetes
  • Python version: 3.9.17
  • OpenMetadata version: 1.2.3
  • OpenMetadata Ingestion package version: 1.2.3

Additional context
Test Connection on creation of the salesforce connection is Successful

@harshach
Copy link
Collaborator

harshach commented Jan 3, 2024

@OnkarVO7 can you take a look at this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants