SFDO-Community-Sprints / Snowfakery-Recipe-Templates

Repo for all contributed Snowfakery recipes, maintained by Data Gen Toolkit team.
BSD 3-Clause "New" or "Revised" License
27 stars 8 forks source link

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

Open allisonletts opened 2 years ago

allisonletts commented 2 years ago

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

To Reproduce

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

Expected behavior

Actual behavior

Additional context

allisonletts commented 2 years ago

This issue is related to the discussion topic here: https://github.com/SFDO-Community-Sprints/Snowfakery-Recipe-Templates/discussions/144#discussioncomment-2995434

prescod commented 2 years ago

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 commented 2 years ago

@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