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

New Release objects cause errors in pull command #1014

Closed
Dane1986 opened this issue May 17, 2021 · 9 comments
Closed

New Release objects cause errors in pull command #1014

Dane1986 opened this issue May 17, 2021 · 9 comments
Labels
more information required Issue requires more information or a response from the customer

Comments

@Dane1986
Copy link

Dane1986 commented May 17, 2021

Summary

It's not possible to do a pull from a developer sandbox after the new release is installed, errors show Listview not found for several new standard objects. For example Work Plan. This happens with every new release. Workaround can be adding these objects to the force ignore file but that for me is not a workaround. When there is a new object, sfdx should recognize the whole object as new and should pull accordingly.

Steps To Reproduce:

  1. Do a full retrieve of the production org to create a (git) full sandbox project
  2. Create a new developer sandbox
  3. Perform pull -f command

Expected result

Pull with or without changes.

Actual result

The following error occurs:
ERROR running force:source:pull: Source conflict(s) detected.
ERROR running force:source:pull: Entity of type 'ListView' named 'WorkPlanTemplate.My_WorkPlanTemplates' cannot be found
Entity of type 'ListView' named 'WorkPlanSelectionRule.My_WorkPlanSelectionRules' cannot be found
Entity of type 'ListView' named 'WorkPlan.All_WorkPlans' cannot be found
Entity of type 'ListView' named 'WorkPlan.My_WorkPlans' cannot be found
Entity of type 'ListView' named 'WorkStepTemplate.My_WorkStepTemplates' cannot be found
Entity of type 'ListView' named 'WorkPlan.My_RecentWorkPlans' cannot be found
Entity of type 'ListView' named 'WorkPlanSelectionRule.My_RecentWorkPlanSelectionRules' cannot be found
Entity of type 'ListView' named 'WorkPlanTemplate.My_RecentWorkPlanTemplates' cannot be found
Entity of type 'ListView' named 'WorkStepTemplate.My_RecentWorkStepTemplates' cannot be found
Entity of type 'ListView' named 'WorkPlanTemplate.All_WorkPlanTemplates' cannot be found
Entity of type 'ListView' named 'WorkStepTemplate.All_WorkStepTemplates' cannot be found

Additional information

SFDX CLI Version(to find the version of the CLI engine run sfdx --version): 7.101.0-5e36989

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core): 50.12.0

OS and version: Windows 10 latest updates

@Dane1986 Dane1986 added the investigating We're actively investigating this issue label May 17, 2021
@github-actions
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@maggiben
Copy link
Contributor

maggiben commented May 18, 2021

Hi Dane1986, Im doing a sfdx force:source:pull -f on a scratch or and works fine, maybe its something to do with sandboxes specifically ?, can your you create a barebones org for us to test ?

@shetzel
Copy link
Contributor

shetzel commented May 18, 2021

What does the generated package.xml and pulled metadata look like for the pull request? You can inspect it more easily if you set the SFDX_MDAPI_TEMP_DIR env var to a known location, do the pull, then inspect the contents.

@Dane1986
Copy link
Author

Dane1986 commented May 20, 2021

The problem occurs when you have a full org git repo, the new standard objects are not in de objects folder which is sort of a logical issue. But after retrieving the new standard objects to the repo and redeploying them to the sandbox (somehow the listviews that are retrieved are then "Created" again, which is strange because I retrieved them from that sandbox) I still get the Listview error for the "MyRecent...." listviews for those objects. I changed the opening post to add the step of creating a full org project.

When the object is in the project and I do a pull, then I still get these errors:
ERROR running force:source:pull: Entity of type 'ListView' named 'WorkPlan.My_RecentWorkPlans' cannot be found
Entity of type 'ListView' named 'WorkPlanSelectionRule.My_RecentWorkPlanSelectionRules' cannot be found
Entity of type 'ListView' named 'WorkPlanTemplate.My_RecentWorkPlanTemplates' cannot be found
Entity of type 'ListView' named 'WorkStepTemplate.My_RecentWorkStepTemplates' cannot be found

@mshanemc
Copy link
Contributor

Does it happen on anything besides these WorkPlan* objects? And also, I second Steve's question about what's happening in the package.xml (via the temp dir)

@mshanemc mshanemc added the more information required Issue requires more information or a response from the customer label May 24, 2021
@github-actions
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@Dane1986
Copy link
Author

I will try to do the analyses on SFDX_MDAPI_TEMP_DIR today. @mshanemc We had this before with ShiftTemplate objects. We work with a developer sandbox for each feature and my guess is that this does happen when we create a new sandbox from production (which doesn't have these objects yet) and Salesforce then "installs" the new features in the creation process. The new stuff is then not properly flagged as created in changes. It is not seen as a new object/listview, but sfdx gives an error.

@no-response no-response bot removed the more information required Issue requires more information or a response from the customer label May 25, 2021
@shetzel shetzel added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Feb 1, 2022
@no-response
Copy link

no-response bot commented Feb 8, 2022

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.

@no-response no-response bot closed this as completed Feb 8, 2022
@jh480
Copy link

jh480 commented Dec 27, 2023

For anyone interested, this seems to be a metadata-API feature with "pre-installed" listviews that are localised (change user language => listview name changes too).
These listviews are visible via listMetadata, but cannot be retrieved on their own, only via the whole CustomObject.
Deploying them will create a new double entry with the same fullname (both visible in listMetadata), but with static (English) label, which then can also be retrieved on its own (though, with mdapi, retrieval of the whole object and another deployment will fail with a duplicate-name error).
Best course of action would be to add any such listviews to .forceignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required Issue requires more information or a response from the customer
Projects
None yet
Development

No branches or pull requests

5 participants