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

Unknown type name 'IndustriesManufacturingSettings' specified in package.xml in v7.88.4 and 7.89.1 #866

Closed
MaciekLeks opened this issue Feb 23, 2021 · 31 comments

Comments

@MaciekLeks
Copy link

MaciekLeks commented Feb 23, 2021

Summary

After upgrading version from 7.86.3 to either 7.88.4 or 7.89.1 we get

Error  sdx_sourceDeploy_pkg_1614089165664/package.xml        Unknown type name 'IndustriesManufacturingSettings' specified in package.xml

while we run:

sfdx force:source:deploy -p force-app -u ALIAS -c -w 60 -l RunLocalTests

We had to downgarde to 7.86.3 cause we have nothing to do with that settings in our code.

Step to reproduce

It could be hard to reproduce while it could be related to our force-app, but you can try to use the sfdx force:source:deploy instruction from the Summary.

@uip-robot-zz
Copy link

Git2Gus App is installed but the .git2gus/config.json doesn't have right values. You should add the required configuration.

@MaciekLeks MaciekLeks added the investigating We're actively investigating this issue label Feb 23, 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.

@calvinle1
Copy link

Hi, our developers are also experiencing this issue with version 7.89.1.

Can you please confirm?

@MaciekLeks MaciekLeks changed the title Unknown type name 'IndustriesManufacturingSettings' specified in package.xml in v7.88.4 Unknown type name 'IndustriesManufacturingSettings' specified in package.xml in v7.88.4 and 7.89.1 Feb 24, 2021
@MaciekLeks
Copy link
Author

Hi, our developers are also experiencing this issue with version 7.89.1.

Can you please confirm?

Yes, the same result. I've updated the title.

@calvinle1
Copy link

Hi, our developers are also experiencing this issue with version 7.89.1.
Can you please confirm?

Yes, the same result. I've updated the title.

Thanks

@calvinle1
Copy link

Hi, any resolution to this, other than downgrading the CLI? Thanks

@MaciekLeks
Copy link
Author

MaciekLeks commented Mar 26, 2021

I discovered what causes the "Unknown type name 'IndustriesManufacturingSettings' specified in package.xml" error in every sfdx-cli version except v7.86.3 in our project: File force-app/setup/clm/setttings/Content.settings-meta.xml needed for Vlocity CLM. Empty project only with this file raises the error. The full project without it compile without the error. And file content is:

<?xml version="1.0" encoding="UTF-8"?>
<ContentSettings xmlns="http://soap.sforce.com/2006/04/metadata">
    <enableContent>true</enableContent>
    <enableContentAutoAssign>true</enableContentAutoAssign>
</ContentSettings>

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

github-actions bot commented Apr 2, 2021

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.

@mshanemc
Copy link
Contributor

mshanemc commented Apr 2, 2021

I can't reproduce this. I'm on v7.93.1, with the restDeploy=false. The file you supplied is the only thing I added to the results of project:create. Anything else required to get the error?

Screen Shot 2021-04-02 at 9 12 55 AM

@MaciekLeks
Copy link
Author

MaciekLeks commented Apr 3, 2021

I can't reproduce this. I'm on v7.93.1, with the restDeploy=false. The file you supplied is the only thing I added to the results of project:create. Anything else required to get the error?

Have you installed vlocity cme before trying to sfdx deploy? We use (sfdx-project.json excerpt):

"dependencies": [
        {
          "subscriberPackageVersionId": "04t1J000001BRWt"
        }

@no-response no-response bot removed the more information required Issue requires more information or a response from the customer label Apr 3, 2021
@hnep12
Copy link

hnep12 commented Apr 7, 2021

This issue is occurring for OmniChannel.settings deployment as well. Below is the code.

true true

@maggiben
Copy link
Contributor

A fix has been put on toolbelt, users facing this issue can try the following:

  1. upgrade to the latest sfdx-cli via npm or tarballs
  2. clone the toolbelt repo
    git clone https://github.com/salesforcecli/toolbelt.git
  3. change directory
    cd toolbelt
  4. checkout branch with fix
    git checkout bm/W-9543092
  5. install plugin dependencies you're going to need yarn installed globally via npm npm install -g yarn
    yarn install
  6. link local plugin to sfdx-cli
    sfdx plugins:link .
  7. then try deploying as you would normally ie:
    sfdx force:source:deploy -p force-app -u ALIAS -c -w 60 -l RunLocalTests

@madhavapakash
Copy link

@maggiben - please we do not find this repo at all git clone https://github.com/salesforcecli/toolbelt.git

@maggiben
Copy link
Contributor

Hi, is this issue still happening for you ?, please post below:

@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 plugin-source labels Sep 17, 2021
@tomekind92
Copy link

@maggiben the issue still exists for sfdx force:source:push

@ArkadiuszGrzesiak
Copy link

ArkadiuszGrzesiak commented Sep 23, 2021

@maggiben I checked on sfdx-cli / 7.118.1 and 7.117.0 and after using sfdx force:source:push the IndustriesManufacturingSettings error still exists
IndustriesManufacturingSettings

@shetzel
Copy link
Contributor

shetzel commented Sep 23, 2021

@ArkadiuszGrzesiak - what is the output of sfdx plugins --core? I'm mostly interested in if there are any non-core plugins installed that could be causing a problem. I can't reproduce this with a few recent CLI versions I tried.

From the error it looks like the name of that settings file might be incorrect which causes a bad manifest entry such as, <members>IndustriesManufacturingSettings</members>. The name of the file in your project should be IndustriesManufacturing.settings-meta.xml. If you set the SFDX_MDAPI_TEMP_DIR env var and run the push command again, then check the specified temp dir it should look like this:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
  <types>
    <name>Settings</name>
    <members>IndustriesManufacturing</members>
  </types>
  <version>52.0</version>
</Package>

@no-response
Copy link

no-response bot commented Sep 24, 2021

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 Sep 24, 2021
@MaciekLeks
Copy link
Author

Please reopen the issue. My teammates posted two last messages showing that the problem still exists. We do not use Industries Manufacturing at all.

@no-response no-response bot removed the more information required Issue requires more information or a response from the customer label Sep 24, 2021
@no-response no-response bot reopened this Sep 24, 2021
@shetzel
Copy link
Contributor

shetzel commented Sep 24, 2021

@MaciekLeks - this issue needs reproducible steps.

@shetzel shetzel closed this as completed Sep 24, 2021
@shetzel shetzel added the more information required Issue requires more information or a response from the customer label Sep 24, 2021
@shetzel shetzel reopened this Sep 24, 2021
@tomekind92
Copy link

The issue still exists when I pushing the code do scratch/sandbox org. I've added the "IndustriesManufacturing.settings" into my deployment package and I have the below error:

| IndustriesManufacturing | Settings | "Not available for deploy for this organization" |

@no-response
Copy link

no-response bot commented Oct 1, 2021

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 Oct 1, 2021
@jacekpreuhs
Copy link

Hi @shetzel ,
I've made some additional tests:

  1. configured SFDX_MDAPI_TEMP_DIR variable as you mentioned
  2. used sfdx force:source:push -f -u DEV command to test deployment and got error:
    Unknown type name 'IndustriesManufacturingSettings' specified in package.xml
  3. IndustriesManufacturingSettings folder was created in SFDX_MDAPI_TEMP_DIR folder
  4. package.xml was created in folder with following xml tags:
IndustriesManufacturingSettings Content

Please find attached screenshots.
image
image
image
image
image

cc: @MaciekLeks @ArkadiuszGrzesiak

@WillieRuemmele
Copy link
Member

WillieRuemmele commented Oct 22, 2021

Hi @jacekpreuhs

a few questions:
what version of the cli and the plugins are you using sfdx --version --verbose?
have you enabled this type in the org? In Setup search for Manufacturing and enable it there, or in the project-scratch-def.json add "INDUSTRIESMFGACCOUNTFORECAST" to the features array

Cristian has created this repo to try and replicate the issue. Using this repo

  • create an org
  • enable the type in setup
  • retrieve it locally with sfdx force:source:retrieve -x package.xml
  • run sfdx force:source:push -f and I see the following output
*** Deploying with SOAP ***
Job ID | 0Af8A00001PTykiSAD
SOURCE PROGRESS | ████████████████████████████████████████ | 1/1 Components
=== Pushed Source
STATE  FULL NAME                TYPE      PROJECT PATH
─────  ───────────────────────  ────────  ─────────────────────────────────────────────────────────────────────────
Add    IndustriesManufacturing  Settings  force-app/main/default/settings/IndustriesManufacturing.settings-meta.xml

this was done using 7.123.1 of the sfdx-cli

@MaciekLeks
Copy link
Author

Please reopen the issue.

@no-response no-response bot removed the more information required Issue requires more information or a response from the customer label Oct 22, 2021
@no-response no-response bot reopened this Oct 22, 2021
@WillieRuemmele
Copy link
Member

Hi @MaciekLeks we'll reopen this issue once we are able to reproduce it. I've just asked for some information you, or anyone else on this thread could provide. I've provided a repository to try and reproduce it but was unable to with the current version of the CLI. Can you help me reproduce it?

@jacekpreuhs
Copy link

jacekpreuhs commented Oct 29, 2021

Hi @WillieRuemmele ,

  1. below you can find result of sfdx --version --verbose
    image

  2. in our org (scratch or Production) we do not have Manufacturing feature enabled and we do not planning to use this feature. As I know this relates to Manufacturing Cloud: https://www.salesforce.com/ap/editions-pricing/manufacturing-cloud/
    image

  3. I do not understand why we need to turn on Manufacturing feature in order to resolve deployment errors when we don't want to use it at all. Se previous comments from @MaciekLeks on 26th March. He explained that deployment error occurs when following content settings is used in repo:

<?xml version="1.0" encoding="UTF-8"?>
<ContentSettings xmlns="http://soap.sforce.com/2006/04/metadata">
    <enableContent>true</enableContent>
    <enableContentAutoAssign>true</enableContentAutoAssign>
</ContentSettings>

I do not see here any feature related to Manufacturing. Could you please explain why Manufacturing is required for this content settings configuration?

Thanks,
Jacek

@WillieRuemmele
Copy link
Member

Hi @jacekpreuhs

thanks for the info. I agree - you shouldn't have to enable that setting if you're not using it.

can you please walk us through how to recreate this bug, from how you create the metadata type, what commands are involved, and any steps in the org's UI that're required.

Thanks

@pawel-id
Copy link

pawel-id commented Nov 15, 2021

Why are we trying to discover the wheel again? This issue was happening to force:source:deploy and it was fixed in 7.116.2 see https://github.com/forcedotcom/cli/blob/main/releasenotes/sfdx/README.md#71162-sep-2-2021 there is even a reference to the issue we are discussing right now:

FIX: The force:source:deploy command correctly deploys the IndustriesManufacturingSettings metadata type. Previously it returned the error Unknown type name 'IndustriesManufacturingSettings' specified in package.xml.

Then we discovered that it is happening also to force:source:push. Why not check and potentially reuse the solution applied with that fix?

@mshanemc
Copy link
Contributor

mshanemc commented Dec 2, 2021

@pawel-id the short answer is because push and deploy use very different code at this point in time while we transition push/pull/status to the new library #1258

@mshanemc
Copy link
Contributor

fixed (deploy/push are on the same codebase https://github.com/forcedotcom/source-deploy-retrieve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests