Skip to content

KeyError when using Opportunity__r relational field #12

Description

@gigic31

Issue:
A custom object has a look up field to Opportunity called 'Opportunity__c'. KeyError was encountered when running Pytest on 'Opportunity__c' when the record of the custom object is being upserted.

Expected Behaviour
Since the object name can be inferred from the custom field name, expected behavior would be the system recognizing that the relational field points to Opportunity without adding it to relations.json

Workaround
Add "Opportunity__r": "Opportunity" to relations.json

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions