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

Formula prints Python Object reference under some conditions #600

Open
acrosman opened this issue Feb 2, 2022 · 0 comments
Open

Formula prints Python Object reference under some conditions #600

acrosman opened this issue Feb 2, 2022 · 0 comments
Assignees

Comments

@acrosman
Copy link

acrosman commented Feb 2, 2022

The following recipe will generate a Python object reference in the output instead of either a error or blank output when the value is invalid or the expected value.

Recipe

- object: Contact
  fields:
    FirstName:
      fake: FirstName
- object: Opportunity
  fields:
    ContactId:
      random_reference: Contact
    Name: Opportunity1
  friends:
    - object: CampaignMember
      fields:
        ContactId: ${{Opportunity.ContactId}}

Generated Output

[{"_table": "Contact", "id": 1, "FirstName": "Kylie"},
{"_table": "Opportunity", "id": 1, "ContactId": 1, "Name": "Opportunity1"},
{"_table": "CampaignMember", "id": 1, "ContactId": "<snowfakery.object_rows.ObjectReference object at 0x000001E03EDCBA30>"}]
@acrosman acrosman changed the title Formula prints Formula prints Python Object reference under some conditions Feb 2, 2022
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

3 participants