Skip to content

Error testing recipe with SFDC data query #1025

@acrosman

Description

@acrosman

I'm trying to test a recipe that uses the Salesforce Query plugin:
- plugin: snowfakery.standard_plugins.Salesforce.SalesforceQuery

Using the command:
snowfakery .\datasets\my.recipe.yml --plugin-option org_name myOrg

This results in a python error:
ModuleNotFoundError: No module named 'cumulusci'

Running on:
Windows 11
Snowfakery and CCI were installed with Pipx

> snowfakery --version
snowfakery version 3.6.1
You have the latest version of Snowfakery

Program: C:\Users\acros\.local\pipx\venvs\snowfakery\Lib\site-packages\snowfakery\cli.py
Python: 3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]
Executable: C:\Users\acros\.local\pipx\venvs\snowfakery\Scripts\python.exe
Installation: Properly installed
> cci --version
CumulusCI version: 3.85.0 (c:\users\acros\.local\bin\cci)
Python version: 3.11.4 (C:\Users\acros\.local\pipx\venvs\cumulusci\Scripts\python.exe)


WARNING: Long path support is not enabled. This can lead to errors with some
tasks. Your administrator will need to activate the "Enable Win32 long paths"
group policy, or set LongPathsEnabled to 1 in the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.

You have the latest version of CumulusCI ⛅

See the latest CumulusCI Release Notes: https://github.com/SFDO-Tooling/CumulusCI/releases/tag/v3.85.0

Minimal testing recipe:

- plugin: snowfakery.standard_plugins.Salesforce.SalesforceQuery

- object: Contact
  fields:
    LastName:
      fake: LastName
    AccountId:
      SalesforceQuery.random_record:
        from: Account

Metadata

Metadata

Assignees

No one assigned

    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