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

PMM recipe errors out "cannot represent an object" #145

Open
allisonletts opened this issue Jul 6, 2022 · 3 comments
Open

PMM recipe errors out "cannot represent an object" #145

allisonletts opened this issue Jul 6, 2022 · 3 comments
Labels
bug Something isn't working pkg-npsp-pmm Managed Package Program Management Module

Comments

@allisonletts
Copy link
Contributor

allisonletts commented Jul 6, 2022

Recipe Name
Which recipe were you attempting to run? Please provide a link to the particular file, if possible.
pmm\pmm_1_program-service.recipe.yml

Describe the bug
When I run the recipe I get this error:
Error: ('cannot represent an object', <snowfakery.object_rows.LazyLoadedObjectReference object at 0x000001E260B46B20>)

Environment
Platform: PC
In VSCode: Yes
If yes, did you run the command from the Palette or Terminal: terminal
CCI Version: 3.60.0
Python Version: 3.9.7

Org Setup

  • this is in a sandbox with NPSP and PMM
  • also tried in a scratch org (with the dev org configuration and PMM)

To Reproduce

  1. Run cci task run snowfakery --recipe datasets\npsp\pmm_1_program-service.recipe.yml

Expected behavior

  • recipe runs without error

Actual behavior

  • recipe errors out

Additional context

  • CCI Error Gist
  • running snowfakery datasets\npsp\pmm_1_program-service.recipe.yml does generate data.
@allisonletts allisonletts added the bug Something isn't working label Jul 6, 2022
@allisonletts
Copy link
Contributor Author

This issue is related to the discussion topic here: #144 (comment)

@allisonletts allisonletts changed the title PMM recipe errors out PMM recipe errors out "cannot represent an object" Jul 6, 2022
@prescod
Copy link
Contributor

prescod commented Jul 6, 2022

That looks like a Snowfakery/CCI bug, TBH.

Based on the traceback I believe a workaround is to run with the simpler generate_and_load_from_yaml command which is slower, simpler, and for the time being sometimes more reliable by virtue of its simpler code.

@allisonletts
Copy link
Contributor Author

allisonletts commented Jul 6, 2022

@prescod same issue with cci task run generate_and_load_from_yaml --generator_yaml datasets\PMM\pmm_1_program-service.recipe.yml --num_records 5 --num_records_tablename pmdm__Program__c

Gist

@programmer2coder programmer2coder added the pkg-npsp-pmm Managed Package Program Management Module label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg-npsp-pmm Managed Package Program Management Module
Projects
None yet
Development

No branches or pull requests

3 participants