Skip to content

Instantly share code, notes, and snippets.

@asbestossupply
Last active March 5, 2024 19:30
Show Gist options
  • Save asbestossupply/1ae948bcce20b1e62ab4f1674824ff0e to your computer and use it in GitHub Desktop.
Save asbestossupply/1ae948bcce20b1e62ab4f1674824ff0e to your computer and use it in GitHub Desktop.
CumulusCI Error Output
CumulusCI version: 3.84.3
Python version: 3.12.2 (/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/bin/python)
Environment Info: Darwin / arm64
Last Command Run
================================
/Users/xxx/.local/bin/cci flow run dev_org --org dev_namespaced
[03/05/24 14:25:57] ============================================================
Initializing flow: FlowCoordinator (dev_org)
Set up an org as a development environment for unmanaged metadata
============================================================
Verifying and refreshing credentials for the specified org: dev_namespaced.
Getting org info from Salesforce CLI for test-8s2ire9soexy@example.com
[03/05/24 14:25:59] ------------------------------------------------------------
Organization:
Username: test-8s2ire9soexy@example.com
Org Id: 00DO2000001VpJB
Instance: USA256S
------------------------------------------------------------
------------------------------------------------------------
Steps:
Description: Set up an org as a development environment for unmanaged metadata
Flow Steps
1) flow: dependencies [from current folder]
1) task: update_dependencies
2) task: deploy_pre
2) flow: deploy_unmanaged
0) task: dx_convert_from
when: project_config.project__source_format == "sfdx" and not org_config.scratch
1) task: unschedule_apex
2) task: update_package_xml
when: project_config.project__source_format != "sfdx" or not org_config.scratch
3) task: deploy
when: project_config.project__source_format != "sfdx" or not org_config.scratch
3.1) task: deploy
when: project_config.project__source_format == "sfdx" and org_config.scratch
4) task: uninstall_packaged_incremental
when: project_config.project__source_format != "sfdx" or not org_config.scratch
5) task: snapshot_changes
3) flow: config_dev
1) task: deploy_post
2) task: update_admin_profile
90) task: load_sample_data
4) task: snapshot_changes
------------------------------------------------------------
Starting execution
============================================================
------------------------------------------------------------
Running task: update_dependencies
------------------------------------------------------------
Options:
resolution_strategy: preproduction
packages_only: False
interactive: False
base_package_url_format: {}
Beginning task: UpdateDependencies
Project has no dependencies, doing nothing
------------------------------------------------------------
Running task: deploy_pre
------------------------------------------------------------
Options:
path: unpackaged/pre
namespace_inject: MY_NS
collision_check: False
Beginning task: DeployBundles
Processing Apex from '--apex' option
Executing anonymous Apex
[03/05/24 14:26:00] Anonymous Apex Executed Successfully!
Skipping task update_package_xml (skipped unless project_config.project__source_format != "sfdx" or not org_config.scratch)
Skipping task deploy (skipped unless project_config.project__source_format != "sfdx" or not org_config.scratch)
------------------------------------------------------------
Running task: deploy
------------------------------------------------------------
Options:
path: force-app
namespace_inject: MY_NS
collision_check: False
Beginning task: Deploy
Converting from SFDX to MDAPI format.
[03/05/24 14:26:01] Stripping namespace tokens from metadata for unmanaged deployment
Cleaning meta.xml files of packageVersion elements for deploy
Payload size: 316 bytes
Pending
[Pending]: next check in 1 seconds
[03/05/24 14:26:03] [Done]
[03/05/24 14:26:04] [Success]: Succeeded
Skipping task uninstall_packaged_incremental (skipped unless project_config.project__source_format != "sfdx" or not
org_config.scratch)
------------------------------------------------------------
Running task: snapshot_changes
------------------------------------------------------------
No task options present
Beginning task: SnapshotChanges
[03/05/24 14:26:11] ------------------------------------------------------------
Running task: deploy_post
------------------------------------------------------------
Options:
path: unpackaged/post
namespace_inject: MY_NS
collision_check: False
Beginning task: DeployBundles
Deploying all metadata bundles in path /Users/xxx/src/yyy/my-project/unpackaged/post
Path /Users/xxx/src/yyy/my-project/unpackaged/post not found, skipping
------------------------------------------------------------
Running task: update_admin_profile
------------------------------------------------------------
Options:
managed: False
namespaced_org: True
namespace_inject: MY_NS
include_packaged_objects: True
Beginning task: ProfileGrantAllAccess
Extracting existing metadata...
Pending
[03/05/24 14:26:12] [Pending]: next check in 1 seconds
[03/05/24 14:26:13] [Pending]: next check in 1 seconds
[03/05/24 14:26:14] [Pending]: next check in 2 seconds
[03/05/24 14:26:16] [Done]
[03/05/24 14:26:19] Loading transformed metadata...
Beginning task: Deploy
As user: test-8s2ire9soexy@example.com
In org: 00DO2000001VpJB
Stripping namespace tokens from metadata for unmanaged deployment
Cleaning meta.xml files of packageVersion elements for deploy
Payload size: 4436 bytes
Pending
[InProgress]: Processing Type: Profile
[03/05/24 14:26:21] [InProgress]: Processing Type: Profile
[03/05/24 14:26:22] [Done]
[03/05/24 14:26:23] [Failed]: Update of Profile Admin: Error on line 644, col 29: In field: recordType - no RecordType named Account.Business_Account
found
Exception in task config_dev.update_admin_profile

Error: Could not process MDAPI response: Update of Profile Admin: Error on line 644, col 29: In field: recordType - no RecordType named
Account.Business_Account found
Run this command for more information about debugging errors: cci error --help
Traceback (most recent call last):
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/salesforce_api/metadata.py", line 72, in __call__
return self._process_response(response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/salesforce_api/metadata.py", line 509, in _process_response
raise MetadataComponentFailure(log, response)
cumulusci.salesforce_api.exceptions.MetadataComponentFailure: Update of Profile Admin: Error on line 644, col 29: In field: recordType - no RecordType named Account.Business_Account found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/cli/cci.py", line 91, in main
cli(args[1:], standalone_mode=False, obj=runtime)
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/cli/runtime.py", line 183, in new_func
func(runtime, *args, **kw)
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/cli/flow.py", line 168, in flow_run
coordinator.run(org_config)
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/core/flowrunner.py", line 495, in run
self._run_step(step)
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/core/flowrunner.py", line 536, in _run_step
raise result.exception # PY3: raise an exception type we control *from* this exception instead?
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/core/flowrunner.py", line 287, in run_step
task()
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/core/tasks.py", line 226, in __call__
self.result = self._run_task()
^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/tasks/metadata_etl/base.py", line 173, in _run_task
result = self._deploy()
^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/tasks/metadata_etl/base.py", line 157, in _deploy
result = api()
^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/core/tasks.py", line 226, in __call__
self.result = self._run_task()
^^^^^^^^^^^^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/tasks/salesforce/BaseSalesforceMetadataApiTask.py", line 15, in _run_task
result = api()
^^^^^
File "/Users/xxx/Library/Application Support/pipx/venvs/cumulusci/lib/python3.12/site-packages/cumulusci/salesforce_api/metadata.py", line 74, in __call__
raise MetadataParseError(
cumulusci.salesforce_api.exceptions.MetadataParseError: Could not process MDAPI response: Update of Profile Admin: Error on line 644, col 29: In field: recordType - no RecordType named Account.Business_Account found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment