Skip to content

Commit

Permalink
Monitoring config fix + deployment errors parsing enhancements (#810)
Browse files Browse the repository at this point in the history
* Monitoring config: Fix way to define how to upload connected app

* New deployment tip: Couldn't retrieve or load information on the field + fix parsing

* Fix hyperlinks in doc

* cspell

* [Mega-Linter] Apply linters fixes

---------

Co-authored-by: nvuillam <[email protected]>
  • Loading branch information
nvuillam and nvuillam authored Oct 1, 2024
1 parent 07c66ed commit 807a710
Show file tree
Hide file tree
Showing 90 changed files with 142 additions and 86 deletions.
1 change: 1 addition & 0 deletions .github/linters/.cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"CCAU",
"COLLECTIONURI",
"COMPTES",
"Couldn",
"Callout",
"Catg",
"Chantier",
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`

## [5.0.8] 2024-10-01

- Monitoring config: Fix way to define how to upload connected app
- New deployment tip: Couldn't retrieve or load information on the field
- Fix parsing of errors when they are unknown
- Fix SEO info in deployment tips documentation

## [5.0.7] 2024-09-25

- hardis:org:monitoring:backup : fix issue when metadata type is unknown
Expand Down
2 changes: 1 addition & 1 deletion build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class SfdxHardisBuilder {
tip.expressionRegex[0]
const tipFileMd = [
"---",
`title: : ${tip.label} (Deployment assistant)`,
`title: ${tip.label} (Deployment assistant)`,
`description: How to solve Salesforce deployment error ${errorDescription}`,
"---",
"<!-- markdownlint-disable MD013 -->"
Expand Down
16 changes: 16 additions & 0 deletions docs/salesforce-deployment-assistant-error-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,22 @@ There is a reference to {2} in {1}, and {2} is not found. You can either:

```
---
## [Couldn't retrieve or load information on the field](sf-deployment-assistant/Couldn-t-retrieve-or-load-information-on-the-field.md)
**Detection**
- RegExp: `Error (.*) Something went wrong. We couldn't retrieve or load the information on the field: (.*)\.`
**Resolution**
```shell
There is a reference to {2} in {1}, and {2} is not found. You can either:
- Commit {2} in your deployment sources and make sure it is named in package.xml
- Remove the reference to {2} in {1}
```
---
## [Custom object not found](sf-deployment-assistant/Custom-object-not-found.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/sfdx-hardis-json-schema-parameters.html
Original file line number Diff line number Diff line change
Expand Up @@ -5785,6 +5785,6 @@ <h2 class="mb-0">
</div>

<footer>
<p class="generated-by-footer">Generated using <a href="https://github.com/coveooss/json-schema-for-humans">json-schema-for-humans</a> on 2024-09-16 at 13:06:43 -0700</p>
<p class="generated-by-footer">Generated using <a href="https://github.com/coveooss/json-schema-for-humans">json-schema-for-humans</a> on 2024-10-01 at 18:31:55 +0200</p>
</footer></body>
</html>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : A sharing rule may be useless (Deployment assistant)
title: A sharing rule may be useless (Deployment assistant)
description: How to solve Salesforce deployment error Required field is missing: sharingCriteriaRules
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/API-Version-error.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : API Version error (Deployment assistant)
title: API Version error (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) The (.*) apiVersion can't be "([0-9]+)"/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Allow deployment with pending Apex Jobs (Deployment assistant)
title: Allow deployment with pending Apex Jobs (Deployment assistant)
description: How to solve Salesforce deployment error You can bypass this error by allowing deployments with Apex jobs in the Deployment Settings page in Setup.
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Async exception in test class (Deployment assistant)
title: Async exception in test class (Deployment assistant)
description: How to solve Salesforce deployment error /System.AsyncException: (.*) Apex/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : CRM Analytics: A Recipe must specify a DataFlow (Deployment assistant)
title: CRM Analytics: A Recipe must specify a DataFlow (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) A Recipe must specify a Dataflow/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Campaign can not be updated (Deployment assistant)
title: Campaign can not be updated (Deployment assistant)
description: How to solve Salesforce deployment error The object "Campaign" can't be updated
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Can not change field type to a formula field (Deployment assistant)
title: Can not change field type to a formula field (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Cannot update a field from a Formula to something else/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Can not change field type with picklist (Deployment assistant)
title: Can not change field type with picklist (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Cannot change which global value set this picklist uses/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Can not change type due to existing data (Deployment assistant)
title: Can not change type due to existing data (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Cannot change type due to existing data/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Can not delete custom field (Deployment assistant)
title: Can not delete custom field (Deployment assistant)
description: How to solve Salesforce deployment error /This (.*) is referenced elsewhere in salesforce.com/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Can-not-delete-record-type.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Can not delete record type (Deployment assistant)
title: Can not delete record type (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Cannot delete record type through API/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Can-not-find-folder.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Can not find folder (Deployment assistant)
title: Can not find folder (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Cannot find folder:(.*)/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Can-not-find-user--2-.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Can not find user (2) (Deployment assistant)
title: Can not find user (2) (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) In field: (.*) - no User named (.*) found/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Can-not-find-user.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Can not find user (Deployment assistant)
title: Can not find user (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Cannot find a user that matches any of the following usernames/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Can not test item deployment in simulation mode (Deployment assistant)
title: Can not test item deployment in simulation mode (Deployment assistant)
description: How to solve Salesforce deployment error /Test only deployment cannot update/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Cannot update a field to a Summary from something else (Deployment assistant)
title: Cannot update a field to a Summary from something else (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Cannot update a field to a (.*) from something else/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Change-Matching-Rule.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Change Matching Rule (Deployment assistant)
title: Change Matching Rule (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Before you change a matching rule, you must deactivate it/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Condition missing reference (Deployment assistant)
title: Condition missing reference (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) field integrity exception: unknown \(A condition has a reference to (.*), which doesn't exist.\)/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Couldn't retrieve or load information on the field (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Something went wrong. We couldn't retrieve or load the information on the field: (.*)\./gm
---
<!-- markdownlint-disable MD013 -->
# Couldn't retrieve or load information on the field

## Detection

- RegExp: `Error (.*) Something went wrong. We couldn't retrieve or load the information on the field: (.*)\.`

## Resolution

```shell
There is a reference to {2} in {1}, and {2} is not found. You can either:
- Commit {2} in your deployment sources and make sure it is named in package.xml
- Remove the reference to {2} in {1}

```
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Custom-field-not-found.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Custom field not found (Deployment assistant)
title: Custom field not found (Deployment assistant)
description: How to solve Salesforce deployment error Error PS_Admin In field: field - no CustomField named User.expcloud__Portal_Username__c found
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Custom metadata entry not found (Deployment assistant)
title: Custom metadata entry not found (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) In field: (.*) - no CustomMetadata named (.*) found/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Custom-object-not-found.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Custom object not found (Deployment assistant)
title: Custom object not found (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) In field: field - no CustomObject named (.*) found/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Dependent class is invalid and needs recompilation (Deployment assistant)
title: Dependent class is invalid and needs recompilation (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Dependent class is invalid and needs recompilation/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Duplicate-label.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Duplicate label (Deployment assistant)
title: Duplicate label (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Duplicate label: (.*)/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Duplicate value Platform Action Id List (Deployment assistant)
title: Duplicate value Platform Action Id List (Deployment assistant)
description: How to solve Salesforce deployment error duplicate value found: PlatformActionListId duplicates value on record with id
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Empty-source-items.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Empty source items (Deployment assistant)
title: Empty source items (Deployment assistant)
description: How to solve Salesforce deployment error Required field is missing: sharingOwnerRules
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Enable-CRM-Analytics.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Enable CRM Analytics (Deployment assistant)
title: Enable CRM Analytics (Deployment assistant)
description: How to solve Salesforce deployment error It should be created by enabling the CRM Analytics Cloud preference
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Error-parsing-file.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Error parsing file (Deployment assistant)
title: Error parsing file (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Error parsing file: (.*)/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Expired Access / Refresh Token (Deployment assistant)
title: Expired Access / Refresh Token (Deployment assistant)
description: How to solve Salesforce deployment error expired access/refresh token
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Field not available for element (Deployment assistant)
title: Field not available for element (Deployment assistant)
description: How to solve Salesforce deployment error /Field (.*) is not available for/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Flow must be deleted manually (Deployment assistant)
title: Flow must be deleted manually (Deployment assistant)
description: How to solve Salesforce deployment error /.flow (.*) insufficient access rights on cross-reference id/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Formula picklist field issue (Deployment assistant)
title: Formula picklist field issue (Deployment assistant)
description: How to solve Salesforce deployment error Les champs de liste de sélection sont pris en charge uniquement dans certaines fonctions.
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Insufficient access rights on cross-reference id (Deployment assistant)
title: Insufficient access rights on cross-reference id (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) insufficient access rights on cross-reference id/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Invalid-field-for-upsert.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Invalid field for upsert (Deployment assistant)
title: Invalid field for upsert (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Invalid field for upsert, must be an External Id custom or standard indexed field: (.*) \((.*)\)/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Invalid field in related list (Deployment assistant)
title: Invalid field in related list (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Invalid field:(.*) in related list:(.*)/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Invalid formula grouping context (Deployment assistant)
title: Invalid formula grouping context (Deployment assistant)
description: How to solve Salesforce deployment error Invalid custom summary formula definition: You must select a grouping context to use any report summary function
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Invalid-report-type.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Invalid report type (Deployment assistant)
title: Invalid report type (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) invalid report type/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Invalid scope:Mine, not allowed (Deployment assistant)
title: Invalid scope:Mine, not allowed (Deployment assistant)
description: How to solve Salesforce deployment error Invalid scope:Mine, not allowed
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Invalid-type.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Invalid type (Deployment assistant)
title: Invalid type (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) Invalid type: (.*) \((.*)\)/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Mandatory custom field can not be in a profile/permission set (Deployment assistant)
title: Mandatory custom field can not be in a profile/permission set (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) You cannot deploy to a required field: (.*)/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Missing Data Category Group (Deployment assistant)
title: Missing Data Category Group (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) In field: DeveloperName - no DataCategoryGroup named (.*) found/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Missing-Feature-Work-Com.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Missing Feature Work.Com (Deployment assistant)
title: Missing Feature Work.Com (Deployment assistant)
description: How to solve Salesforce deployment error WorkBadgeDefinition
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Missing-Quick-Action.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Missing Quick Action (Deployment assistant)
title: Missing Quick Action (Deployment assistant)
description: How to solve Salesforce deployment error /Error (.*) In field: QuickAction - no QuickAction named (.*) found/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Missing-Sales-Team.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Missing Sales Team (Deployment assistant)
title: Missing Sales Team (Deployment assistant)
description: How to solve Salesforce deployment error related list:RelatedAccountSalesTeam
---
<!-- markdownlint-disable MD013 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/sf-deployment-assistant/Missing-e-mail-template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Missing e-mail template (Deployment assistant)
title: Missing e-mail template (Deployment assistant)
description: How to solve Salesforce deployment error /In field: template - no EmailTemplate named (.*) found/gm
---
<!-- markdownlint-disable MD013 -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: : Missing feature Chatter Collaboration Group (Deployment assistant)
title: Missing feature Chatter Collaboration Group (Deployment assistant)
description: How to solve Salesforce deployment error CollaborationGroup
---
<!-- markdownlint-disable MD013 -->
Expand Down
Loading

0 comments on commit 807a710

Please sign in to comment.