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

sfdx force:source:deploy issue using REST or SOAP #1506

Closed
fedegiust opened this issue May 12, 2022 · 7 comments
Closed

sfdx force:source:deploy issue using REST or SOAP #1506

fedegiust opened this issue May 12, 2022 · 7 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@fedegiust
Copy link

Summary

We use Org Deployment model and when trying to run a validation deployment using REST we are getting
The deploy operation is missing a job ID. Initialize an operation with an ID, or start a new job.

Steps To Reproduce:

We generate a delta package.xml using the sgd:source:delta plugin

This is the package.xml generated

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Lead</members>
        <name>Workflow</name>
    </types>
    <types>
        <members>Lead.Demo_Request_Reminder_Lead_2H</members>
        <members>Lead.SAP_Lead_Referral_AU</members>
        <members>Lead.SAP_Lead_Referral_HK_SG</members>
        <name>WorkflowAlert</name>
    </types>
    <version>54.0</version>
</Package>

and run this to do the validation

sfdx force:source:deploy -c -x temp/package/package.xml -u PROD -w 1 --verbose --loglevel=debug

Expected result

This package does not have Apex or Triggers, only a workflow update, so the expected result would be to execute the validation against the Prod

Actual result

If we run it using REST we are getting

Metadata API request failed: The deploy operation is missing a job ID. Initialize an operation with an ID, or start a new job.

If we deploy using SOAP

INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations

The test level should not be required if there is no APEX regardless of the env
According to the documentation even if we specify RunLocalTests but there is no Apex it shouldn't run the tests but it's running them anyways making the deployment take much longer.
image

System Information

{
        "cliVersion": "sfdx-cli/7.146.1",
        "architecture": "win32-x64",
        "nodeVersion": "node-v16.14.2",
        "pluginVersions": [
                "@oclif/plugin-autocomplete 0.3.0 (core)",
                "@oclif/plugin-commands 1.3.0 (core)",    
                "@oclif/plugin-help 3.3.1 (core)",        
                "@oclif/plugin-not-found 1.2.6 (core)",   
                "@oclif/plugin-plugins 1.10.11 (core)",
                "@oclif/plugin-update 1.5.0 (core)",
                "@oclif/plugin-warn-if-update-available 1.7.3 (core)",
                "@oclif/plugin-which 1.0.4 (core)",
                "@salesforce/sfdx-diff 0.0.6",
                "@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
                "@salesforce/sfdx-scanner 2.13.2",
                "alias 2.0.0 (core)",
                "apex 0.11.0 (core)",
                "auth 1.8.2 (core)",
                "community 1.1.4 (core)",
                "config 1.3.30 (core)",
                "custom-metadata 1.0.12 (core)",
                "data 0.6.12 (core)",
                "generator 1.2.2 (core)",
                "info 2.0.0 (core)",
                "limits 2.0.0 (core)",
                "org 1.11.2 (core)",
                "salesforce-alm 54.1.0 (core)",
                "schema 2.0.0 (core)",
                "sfdmu 4.14.3",
                "sfdx-cli 7.146.1 (core)",
                "sfdx-git-delta 5.2.0",
                "source 1.9.3 (core)",
                "spm-plugin 1.0.4",
                "telemetry 1.4.0 (core)",
                "templates 54.3.0 (core)",
                "trust 1.1.0 (core)",
                "user 1.7.1 (core)"
        ],
        "osVersion": "Windows_NT 10.0.19043"
}

Additional information

This is the full output of using --dev-debug and REST

  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623 +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\package.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\oclif.manifest.json +4ms
  @oclif/config:sfdx-cli using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\oclif.manifest.json +0ms
  @oclif/config reading user plugins pjson C:\Users\Usuario\AppData\Local\sfdx\package.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\package.json +3ms
  @oclif/config loading plugins [
  { name: '@salesforce/sfdx-diff', tag: 'latest', type: 'user' },
  { name: '@salesforce/sfdx-scanner', tag: 'latest', type: 'user' },
  { name: 'spm-plugin', tag: 'latest', type: 'user' },
  { name: 'sfdmu', tag: 'latest', type: 'user' },
  { name: 'sfdx-git-delta', tag: 'latest', type: 'user' }
] +2ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\package.json\package.json +11ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\package.json\package.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\package.json\package.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\package.json\package.json +1ms
  @oclif/config reading user plugin C:\Users\Usuario\AppData\Local\sfdx\node_modules\sfdx-git-delta +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\sfdx-git-delta\package.json +1ms
  @oclif/config reading user plugin C:\Users\Usuario\AppData\Local\sfdx\node_modules\@salesforce\sfdx-diff +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\@salesforce\sfdx-diff\package.json +2ms
  @oclif/config reading user plugin C:\Users\Usuario\AppData\Local\sfdx\node_modules\@salesforce\sfdx-scanner +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\@salesforce\sfdx-scanner\package.json +2ms
  @oclif/config reading user plugin C:\Users\Usuario\AppData\Local\sfdx\node_modules\spm-plugin +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\spm-plugin\package.json +2ms
  @oclif/config reading user plugin C:\Users\Usuario\AppData\Local\sfdx\node_modules\sfdmu +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\sfdmu\package.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\sfdx-git-delta\oclif.manifest.json +2ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\@salesforce\sfdx-scanner\oclif.manifest.json +2ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\spm-plugin\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\sfdmu\oclif.manifest.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\node_modules\@salesforce\sfdx-diff\oclif.manifest.json +3ms
  @oclif/config:@salesforce/sfdx-scanner using manifest from C:\Users\Usuario\AppData\Local\sfdx\node_modules\@salesforce\sfdx-scanner\oclif.manifest.json +0ms
  @oclif/config:sfdx-git-delta using manifest from C:\Users\Usuario\AppData\Local\sfdx\node_modules\sfdx-git-delta\oclif.manifest.json +0ms
  @oclif/config:spm-plugin using manifest from C:\Users\Usuario\AppData\Local\sfdx\node_modules\spm-plugin\oclif.manifest.json +0ms
  @oclif/config:sfdmu using manifest from C:\Users\Usuario\AppData\Local\sfdx\node_modules\sfdmu\oclif.manifest.json +0ms
  @oclif/config:@salesforce/sfdx-diff using manifest from C:\Users\Usuario\AppData\Local\sfdx\node_modules\@salesforce\sfdx-diff\oclif.manifest.json +0ms
  @oclif/config loading plugins [
  '@oclif/plugin-autocomplete',
  '@oclif/plugin-commands',
  '@oclif/plugin-help',
  '@oclif/plugin-not-found',
  '@oclif/plugin-plugins',
  '@oclif/plugin-update',
  '@oclif/plugin-warn-if-update-available',
  '@oclif/plugin-which',
  '@salesforce/plugin-alias',
  '@salesforce/plugin-apex',
  '@salesforce/plugin-auth',
  '@salesforce/plugin-config',
  '@salesforce/plugin-community',
  '@salesforce/plugin-custom-metadata',
  '@salesforce/plugin-data',
  '@salesforce/plugin-generator',
  '@salesforce/plugin-info',
  '@salesforce/plugin-limits',
  '@salesforce/plugin-org',
  '@salesforce/plugin-source',
  '@salesforce/plugin-schema',
  '@salesforce/plugin-telemetry',
  '@salesforce/plugin-templates',
  '@salesforce/plugin-trust',
  '@salesforce/plugin-user',
  '@salesforce/sfdx-plugin-lwc-test',
  'salesforce-alm'
] +32ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-autocomplete +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-autocomplete\package.json +40ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-commands +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-commands\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-update +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-update\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-warn-if-update-available +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-warn-if-update-available\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-which +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-which\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-alias +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-alias\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-apex +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-apex\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-auth +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-auth\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-config +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-config\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-community +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-community\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-custom-metadata +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-custom-metadata\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-data +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-data\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-org +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-org\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-telemetry +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-telemetry\package.json +14ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-templates +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-templates\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-trust +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-trust\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-user +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-user\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\sfdx-plugin-lwc-test +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\sfdx-plugin-lwc-test\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-help +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-help\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-not-found +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-not-found\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-plugins +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-plugins\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-generator +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-generator\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-info +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-info\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-limits +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-limits\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-source +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-source\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-schema +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-schema\package.json +0ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\salesforce-alm +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\salesforce-alm\package.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-autocomplete\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-warn-if-update-available\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-commands\oclif.manifest.json +2ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-update\oclif.manifest.json +5ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-which\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-apex\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-alias\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-auth\oclif.manifest.json +2ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-config\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-community\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-data\oclif.manifest.json +2ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-telemetry\oclif.manifest.json +3ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-custom-metadata\oclif.manifest.json +2ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-templates\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-org\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-trust\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-user\oclif.manifest.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-help\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\sfdx-plugin-lwc-test\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-not-found\oclif.manifest.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-generator\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-plugins\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-info\oclif.manifest.json +2ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-limits\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-schema\oclif.manifest.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-source\oclif.manifest.json +3ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\salesforce-alm\oclif.manifest.json +2ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-generator\.oclif.manifest.json +1ms
  @oclif/config:@oclif/plugin-commands using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-commands\oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-autocomplete using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-autocomplete\oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-warn-if-update-available using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-warn-if-update-available\oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-which using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-which\oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-update using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-update\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-alias using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-alias\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-auth using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-auth\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-apex using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-apex\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-config using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-config\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-telemetry using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-telemetry\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-community using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-community\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-custom-metadata using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-custom-metadata\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-data using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-data\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-org using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-org\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-trust using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-trust\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-user using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-user\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-templates using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-templates\oclif.manifest.json +0ms
  @oclif/config:@salesforce/sfdx-plugin-lwc-test using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\sfdx-plugin-lwc-test\oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-help using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-help\oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-not-found using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-not-found\oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-plugins using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-plugins\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-limits using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-limits\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-info using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-info\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-schema using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-schema\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-source using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-source\oclif.manifest.json +0ms
  @oclif/config:salesforce-alm using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\salesforce-alm\oclif.manifest.json +0ms
  @oclif/config:@salesforce/plugin-generator using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-generator\.oclif.manifest.json +0ms
  @oclif/config loading plugins [
  '@oclif/plugin-help',
  '@oclif/plugin-warn-if-update-available',
  '@oclif/plugin-not-found'
] +119ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-generator\package.json +18ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-help +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-help\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-not-found +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-not-found\package.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\package.json +1ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-help\oclif.manifest.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-not-found\oclif.manifest.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\package.json +1ms
  @oclif/config reading core plugin C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-warn-if-update-available +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-warn-if-update-available\package.json +0ms
  @oclif/config:@oclif/plugin-not-found using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-not-found\oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-help using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-help\oclif.manifest.json +0ms
  @oclif/config loadJSON C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-warn-if-update-available\oclif.manifest.json +1ms
  @oclif/config:@oclif/plugin-warn-if-update-available using manifest from C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-warn-if-update-available\oclif.manifest.json +0ms
  @oclif/config config done +9ms
  sfdx                        OS: +0ms
  sfdx                  platform: win32 +0ms
  sfdx              architecture: x64 +0ms
  sfdx                   release: 10.0.19043 +0ms
  sfdx                     shell: C:\Program Files\Git\usr\bin\bash.exe +1ms
  sfdx                      NODE: +0ms
  sfdx                   version: 16.14.2 +0ms
  sfdx                       CLI: +0ms
  sfdx                   version: 7.146.1 +1ms
  sfdx                   channel: stable +0ms
  sfdx                       bin: sfdx +0ms
  sfdx                      data: C:\Users\Usuario\AppData\Local\sfdx +1ms
  sfdx                     cache: C:\Users\Usuario\AppData\Local\sfdx +0ms
  sfdx                    config: C:\Users\Usuario\AppData\Local\sfdx +0ms
  sfdx                       ENV: +1ms
  sfdx              NODE_OPTIONS: <not set> +0ms
  sfdx   SFDX_AUTOUPDATE_DISABLE: <not set> +0ms
  sfdx              SFDX_BINPATH: C:\Users\Usuario\AppData\Local\sfdx\client\bin\sfdx +1ms
  sfdx        SFDX_COMPILE_CACHE: <not set> +1ms
  sfdx   SFDX_DISABLE_AUTOUPDATE: <not set> +0ms
  sfdx                  SFDX_ENV: development +0ms
  sfdx            SFDX_INSTALLER: true +1ms
  sfdx    SFDX_LAZY_LOAD_MODULES: true +0ms
  sfdx         SFDX_NPM_REGISTRY: <not set> +0ms
  sfdx           SFDX_REDIRECTED: 1 +1ms
  sfdx              SFDX_S3_HOST: <not set> +0ms
  sfdx  SFDX_UPDATE_INSTRUCTIONS: <not set> +0ms
  sfdx                      ARGS: +0ms
  sfdx                         0: C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\bin\node.exe +1ms
  sfdx                         1: C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\bin\run +0ms
  sfdx                         2: force:source:deploy +0ms
  sfdx                         3: -c +0ms
  sfdx                         4: -x +0ms
  sfdx                         5: temp/package/package.xml +0ms
  sfdx                         6: -u +1ms
  sfdx                         7: emarsysProd +0ms
  sfdx                         8: -w +0ms
  sfdx                         9: 1 +0ms
  sfdx                        10: --verbose +0ms
  lazy-require loading type cache from C:\Users\Usuario\AppData\Local\sfdx\module-types.json +0ms
  lazy-require loaded type cache +1ms
  lazy-require parsing type cache +0ms
  lazy-require parsed type cache +2ms
  lazy-require enabled +1ms
  @oclif/config start init hook +20ms
  sfdx:@salesforce/sfdx-scanner:hooks:init start C:\Users\Usuario\AppData\Local\sfdx\node_modules\@salesforce\sfdx-scanner\lib\lib\hooks\init +0ms
  sfdx:core TRACE Setup child 'core:config' logger instance +0ms
  sfdx:@oclif/plugin-warn-if-update-available:hooks:init start C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-warn-if-update-available\lib\hooks\init\check-update +0ms
  sfdx:@oclif/plugin-update:hooks:init start C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\plugin-update\lib\hooks\init +0ms
  sfdx:@salesforce/plugin-config:hooks:init start C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-config\lib\hooks\init\load_config_meta +0ms
  sfdx:core TRACE Setup child 'core:config' logger instance +0ms
  sfdx:core TRACE Setup child 'plugin-config:load_config_meta' logger instance +29ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for sfdx-cli +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/sfdx-scanner +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for sfdx-git-delta +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for spm-plugin +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for sfdmu +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/sfdx-diff +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-commands +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-autocomplete +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-warn-if-update-available +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-which +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-update +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-alias +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-auth +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-apex +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-config +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-telemetry +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-community +2ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-custom-metadata +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-data +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-org +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-trust +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-user +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-templates +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/sfdx-plugin-lwc-test +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-help +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-not-found +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @oclif/plugin-plugins +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-limits +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-info +1ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-schema +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-source +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for salesforce-alm +0ms
  sfdx:plugin-config:load_config_meta INFO No config meta found for @salesforce/plugin-generator +1ms
  sfdx:@salesforce/plugin-telemetry:hooks:init start C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-telemetry\lib\hooks\telemetryInit.js +0ms
  sfdx:@salesforce/sfdx-scanner:hooks:init done +526ms
  sfdx:@salesforce/plugin-config:hooks:init done +156ms
  sfdx:@salesforce/plugin-telemetry:hooks:init done +3ms
  sfdx:@oclif/plugin-update:hooks:init done +229ms
  sfdx:@oclif/plugin-warn-if-update-available:hooks:init done +272ms
  @oclif/config init hook done +538ms
  sfdx init version: @oclif/[email protected] argv: [ 'force:source:deploy', '-c', '-x', 'temp/package/package.xml', '-u', 'emarsysProd', '-w', '1', '--verbose' ] +0ms
  @oclif/config runCommand force:source:deploy [ '-c', '-x', 'temp/package/package.xml', '-u', 'emarsysProd', '-w', '1', '--verbose' ] +6ms
  @oclif/config:@salesforce/plugin-source require C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-source\lib\commands\force\source\deploy.js +578ms
  @oclif/config start prerun hook +108ms
  sfdx:@salesforce/plugin-telemetry:hooks:prerun start C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-telemetry\lib\hooks\telemetryPrerun.js +0ms
  sfdx:core TRACE Setup child 'Config' logger instance +165ms
  sfdx:core TRACE Setup child 'Config' logger instance +1ms
  sfdx:Config INFO Reading config file: C:\Users\Usuario\.sfdx\sfdx-config.json +0ms
  sfdx:Config INFO Reading config file: C:\Users\Usuario\code\build\.sfdx\sfdx-config.json +4ms
  sfdx:[email protected] Usage acknowledgement file already exists +0ms
  sfdx:[email protected] Using telemetry logging file C:\Users\Usuario\AppData\Local\Temp\sfdx-telemetry\telemetry-b351edd1e162f6dc9794b4d66273ed95fb3c2d77.log +2ms
  sfdx:[email protected] Setting up process exit handler +5ms
  sfdx:@salesforce/plugin-telemetry:hooks:prerun done +36ms
  @oclif/config prerun hook done +39ms
  sfdx:core TRACE Setup child 'Deploy' logger instance +20ms
  sfdx:force:source:deploy init version: @oclif/[email protected] argv: [ '-c', '-x', 'temp/package/package.xml', '-u', 'emarsysProd', '-w', '1', '--verbose' ] +0ms
  sfdx:Deploy INFO Running command [Deploy] with flags [{"checkonly":true,"manifest":"temp/package/package.xml","targetusername":"emarsysProd","wait":{"quantity":1,"unit":0},"verbose":true,"loglevel":"warn","soapdeploy":false,"testlevel":"NoTestRun","runtests":[]}] and args [{}] +0ms
  sfdx:core TRACE Setup child 'Org' logger instance +35ms
  sfdx:core TRACE Setup child 'Aliases' logger instance +4ms
  sfdx:Aliases INFO Reading config file: C:\Users\Usuario\.sfdx\alias.json +0ms
  sfdx:core TRACE Setup child 'AuthInfo' logger instance +5ms
  sfdx:core TRACE Setup child 'crypto' logger instance +1ms
  sfdx:crypto DEBUG retryStatus: undefined +0ms
  sfdx:core TRACE Setup child 'keyChain' logger instance +4ms
  sfdx:keyChain DEBUG platform: win32 +0ms
  sfdx:core TRACE Setup child 'KeychainConfig' logger instance +3ms
  sfdx:KeychainConfig INFO Reading config file: C:\Users\Usuario\.sfdx\key.json +0ms
  sfdx:core TRACE Setup child 'AuthInfoConfig' logger instance +7ms
  sfdx:AuthInfoConfig INFO Reading config file: C:\Users\Usuario\.sfdx\[email protected] +0ms
  sfdx:AuthInfo INFO Updated auth info for username: [email protected] +0ms
  sfdx:AuthInfo INFO Returning fields for a connection using OAuth config. +1ms
  sfdx:core TRACE Setup child 'connection' logger instance +7ms
  sfdx:connection DEBUG Last checked on 5/12/2022, 9:13:50 AM (now is 5/12/2022, 11:54:18 AM) - not getting latest +0ms
  sfdx:connection DEBUG Loaded latest apiVersion 54.0 +0ms
  sfdx:connection DEBUG Using apiVersion 54.0 +1ms
  sfdx:Deploy DEBUG restDeploy SFDX config === true.  Using REST +51ms
  sfdx:core TRACE Setup child 'SfdxProjectJson' logger instance +20ms
  sfdx:SfdxProjectJson INFO Reading config file: C:\Users\Usuario\.sfdx\sfdx-project.json +0ms
  sfdx:core TRACE Setup child 'SfdxProjectJson' logger instance +4ms
  sfdx:SfdxProjectJson INFO Reading config file: C:\Users\Usuario\code\build\sfdx-project.json +4ms
  sfdx:SfdxProjectJson TRACE Setup child 'SchemaValidator' logger instance +3ms
  sfdx:SfdxProjectJson TRACE Setup child 'SchemaValidator' logger instance +2ms
  sfdx:SchemaValidator DEBUG Schema loaded for C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\schemas\sfdx-project.schema.json +0ms
  sfdx:SfdxProjectJson WARN The config file: C:\Users\Usuario\.sfdx\sfdx-project.json is not schema valid
  sfdx:SfdxProjectJson Due to: Validation errors:
  sfdx:SfdxProjectJson should have required property 'packageDirectories' +15ms
  sfdx:SchemaValidator DEBUG Schema loaded for C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\schemas\sfdx-project.schema.json +17ms
  sfdx:SfdxProjectJson INFO Reading config file: C:\Users\Usuario\.sfdx\sfdx-project.json +6ms
  sfdx:SfdxProjectJson INFO Reading config file: C:\Users\Usuario\code\build\sfdx-project.json +0ms
  sfdx:SfdxProjectJson TRACE Setup child 'SchemaValidator' logger instance +3ms
  sfdx:SfdxProjectJson TRACE Setup child 'SchemaValidator' logger instance +4ms
  sfdx:SchemaValidator DEBUG Schema loaded for C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\schemas\sfdx-project.schema.json +11ms
  sfdx:SfdxProjectJson WARN The config file: C:\Users\Usuario\.sfdx\sfdx-project.json is not schema valid
  sfdx:SfdxProjectJson Due to: Validation errors:
  sfdx:SfdxProjectJson should have required property 'packageDirectories' +5ms
  sfdx:SchemaValidator DEBUG Schema loaded for C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\schemas\sfdx-project.schema.json +5ms
  sfdx:core TRACE Setup child 'componentSetBuilder' logger instance +45ms
  sfdx:componentSetBuilder DEBUG Building ComponentSet from manifest: temp/package/package.xml +0ms
  sfdx:componentSetBuilder DEBUG Searching in packageDir: C:\Users\Usuario\code\build\force-app\ for matching metadata +1ms
  sfdx:core TRACE Setup child 'ComponentSet' logger instance +14ms
  sfdx:core TRACE Setup child 'ComponentSet' logger instance +1ms
  sfdx:core TRACE Setup child 'ComponentSet' logger instance +1ms
  @oclif/config start predeploy hook +929ms
  @oclif/config predeploy hook done +3ms
*** Deploying v53.0 metadata with REST API v54.0 connection ***
  sfdx:Deploy INFO *** Deploying v53.0 metadata with REST API v54.0 connection *** +847ms
  sfdx:core TRACE Setup child 'MetadataApiDeploy' logger instance +782ms
  sfdx:core TRACE Setup child 'AuthInfo' logger instance +76ms
  sfdx:core TRACE Setup child 'crypto' logger instance +1ms
  sfdx:crypto DEBUG retryStatus: undefined +964ms
  sfdx:core TRACE Setup child 'keyChain' logger instance +2ms
  sfdx:keyChain DEBUG platform: win32 +962ms
  sfdx:core TRACE Setup child 'KeychainConfig' logger instance +1ms
  sfdx:KeychainConfig INFO Reading config file: C:\Users\Usuario\.sfdx\key.json +960ms
  sfdx:AuthInfo INFO Updated auth info for username: [email protected] +953ms
  sfdx:AuthInfo INFO Returning fields for a connection using OAuth config. +1ms
  sfdx:core TRACE Setup child 'connection' logger instance +5ms
  sfdx:connection DEBUG Last checked on 5/12/2022, 9:13:50 AM (now is 5/12/2022, 11:54:19 AM) - not getting latest +936ms
  sfdx:connection DEBUG Loaded latest apiVersion 54.0 +1ms
  sfdx:connection DEBUG Using apiVersion 54.0 +1ms
  sfdx:connection DEBUG deploy with REST +3ms
  sfdx:connection DEBUG Refreshing auth for org. +1ms
  sfdx:connection DEBUG request: {"url":"https://emarsys.my.salesforce.com/services/data/v54.0","method":"GET","headers":{"content-type":"application/json","user-agent":"sfdx toolbelt:"}} +1ms
  sfdx:MetadataApiDeploy DEBUG Started metadata transfer. ID = undefined +0ms
Deploy ID: undefined
  sfdx:Deploy INFO Deploy ID: undefined +1s
  sfdx:core TRACE Setup child 'source-plugin-stash' logger instance +1s
  sfdx:core TRACE Setup child 'ConfigFile' logger instance +3ms
  sfdx:ConfigFile INFO Reading config file: C:\Users\Usuario\.sfdx\stash.json +0ms
  sfdx:source-plugin-stash DEBUG Stashing SOURCE_DEPLOY data: {} in C:\Users\Usuario\.sfdx\stash.json +0ms
  sfdx:ConfigFile INFO Writing to config file: C:\Users\Usuario\.sfdx\stash.json +9ms
  sfdx:Deploy DEBUG initializing progress bar +23ms
  sfdx:core TRACE Setup child 'PollingClient' logger instance +96ms
  sfdx:MetadataApiDeploy DEBUG Polling for metadata transfer status. ID = undefined +107ms
  sfdx:MetadataApiDeploy DEBUG Polling frequency (ms): 100 +1ms
  sfdx:MetadataApiDeploy DEBUG Polling timeout (min): 1 +0ms
  sfdx:MetadataApiDeploy ERROR  +3ms
ERROR running force:source:deploy:  Metadata API request failed: The deploy operation is missing a job ID. Initialize an operation with an ID, or start a new job.
*** Internal Diagnostic ***

MetadataTransferError: Metadata API request failed: The deploy operation is missing a job ID. Initialize an operation with an ID, or start a new job.
    at MetadataApiDeploy.pollStatus (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\source-deploy-retrieve\lib\src\client\metadataTransfer.js:83:27)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Deploy.deploy (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-source\lib\commands\force\source\deploy.js:115:37)
    at async Deploy.run (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-source\lib\commands\force\source\deploy.js:32:9)
    at async Deploy._run (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\command\lib\sfdxCommand.js:81:40)
    at async Config.runCommand (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\config\lib\config.js:173:24)
    at async SfdxMain.run (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\command\lib\main.js:27:9)
    at async SfdxMain._run (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\command\lib\command.js:43:20)
    at async Object.run (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\dist\cli.js:162:47)
DUE TO:
MissingJobIdError: The deploy operation is missing a job ID. Initialize an operation with an ID, or start a new job.
    at MetadataApiDeploy.checkStatus (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\source-deploy-retrieve\lib\src\client\metadataApiDeploy.js:245:19)
    at MetadataApiDeploy.poll (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\source-deploy-retrieve\lib\src\client\metadataTransfer.js:155:42)
    at doPoll (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\core\lib\status\pollingClient.js:62:45)
    at C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\ts-retry-promise\dist\retry-promise.js:90:48
    at C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\ts-retry-promise\dist\retry-promise.js:138:42
    at step (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\ts-retry-promise\dist\retry-promise.js:46:23)
    at Object.next (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\ts-retry-promise\dist\retry-promise.js:27:53)
    at C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\ts-retry-promise\dist\retry-promise.js:21:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\ts-retry-promise\dist\retry-promise.js:17:12)
Outer stack:
    at Function.wrap (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\core\lib\sfdxError.js:171:27)
    at Deploy.catch (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\command\lib\sfdxCommand.js:248:67)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Deploy._run (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\command\lib\sfdxCommand.js:85:13)
    at async Config.runCommand (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\config\lib\config.js:173:24)
    at async SfdxMain.run (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\command\lib\main.js:27:9)
    at async SfdxMain._run (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@oclif\command\lib\command.js:43:20)
    at async Object.run (C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\dist\cli.js:162:47)
******

  sfdx:Deploy ERROR [
  sfdx:Deploy   '\x1B[1mERROR running force:source:deploy: \x1B[22m',
  sfdx:Deploy   '\x1B[31mMetadata API request failed: The deploy operation is missing a job ID. Initialize an operation with an ID, or start a new job.\x1B[39m',
  sfdx:Deploy   '\x1B[31m\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m*** Internal Diagnostic ***\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31mMetadataTransferError: Metadata API request failed: The deploy operation is missing a job ID. Initialize an operation with an ID, or start a new job.\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at MetadataApiDeploy.pollStatus (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\source-deploy-retrieve\\lib\\src\\client\\metadataTransfer.js:83:27)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at processTicksAndRejections (node:internal/process/task_queues:96:5)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async Deploy.deploy (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\plugin-source\\lib\\commands\\force\\source\\deploy.js:115:37)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async Deploy.run (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\plugin-source\\lib\\commands\\force\\source\\deploy.js:32:9)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async Deploy._run (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\command\\lib\\sfdxCommand.js:81:40)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async Config.runCommand (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@oclif\\config\\lib\\config.js:173:24)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async SfdxMain.run (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@oclif\\command\\lib\\main.js:27:9)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async SfdxMain._run (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@oclif\\command\\lib\\command.js:43:20)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async Object.run (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\dist\\cli.js:162:47)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31mDUE TO:\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31mMissingJobIdError: The deploy operation is missing a job ID. Initialize an operation with an ID, or start a new job.\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at MetadataApiDeploy.checkStatus (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\source-deploy-retrieve\\lib\\src\\client\\metadataApiDeploy.js:245:19)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at MetadataApiDeploy.poll (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\source-deploy-retrieve\\lib\\src\\client\\metadataTransfer.js:155:42)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at doPoll (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\core\\lib\\status\\pollingClient.js:62:45)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\ts-retry-promise\\dist\\retry-promise.js:90:48\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\ts-retry-promise\\dist\\retry-promise.js:138:42\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at step (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\ts-retry-promise\\dist\\retry-promise.js:46:23)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at Object.next (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\ts-retry-promise\\dist\\retry-promise.js:27:53)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\ts-retry-promise\\dist\\retry-promise.js:21:71\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at new Promise (<anonymous>)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at __awaiter (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\ts-retry-promise\\dist\\retry-promise.js:17:12)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31mOuter stack:\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at Function.wrap (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\core\\lib\\sfdxError.js:171:27)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at Deploy.catch (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\command\\lib\\sfdxCommand.js:248:67)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at processTicksAndRejections (node:internal/process/task_queues:96:5)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async Deploy._run (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@salesforce\\command\\lib\\sfdxCommand.js:85:13)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async Config.runCommand (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@oclif\\config\\lib\\config.js:173:24)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async SfdxMain.run (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@oclif\\command\\lib\\main.js:27:9)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async SfdxMain._run (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\node_modules\\@oclif\\command\\lib\\command.js:43:20)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m    at async Object.run (C:\\Users\\Usuario\\AppData\\Local\\sfdx\\client\\7.146.1-fcbd623\\dist\\cli.js:162:47)\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m******\x1B[39m\n' +
  sfdx:Deploy     '\x1B[31m\x1B[39m'
  sfdx:Deploy ] +93ms
  @oclif/config start postrun hook +1s
  @oclif/config postrun hook done +2ms
  lazy-require saving type cache to C:\Users\Usuario\AppData\Local\sfdx\module-types.json +3s
  lazy-require no changes to save +0ms
  sfdx:[email protected] Spawning "C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\bin\node.exe C:\Users\Usuario\AppData\Local\sfdx\client\7.146.1-fcbd623\node_modules\@salesforce\plugin-telemetry\processes\upload C:\Users\Usuario\AppData\Local\sfdx C:\Users\Usuario\AppData\Local\Temp\sfdx-telemetry\telemetry-b351edd1e162f6dc9794b4d66273ed95fb3c2d77.log" +2s
@fedegiust fedegiust added the investigating We're actively investigating this issue label May 12, 2022
@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.

@iowillhoit
Copy link
Contributor

Hey @fedegiust, sorry for the delay on this. I am not super familiar with this functionality and will need to check with a teammate. Did this recently work for you on a previous CLI version? Could you try the latest version of the cli?

@iowillhoit iowillhoit added the more information required Issue requires more information or a response from the customer label May 18, 2022
@fedegiust
Copy link
Author

The issue about the Test level in Prod has been there for a while now.
If I use change sets, it doesn't run the tests when there is no apex involved, but when using the CLI to prod it requires the test level and even if the package does not include a Apex it still runs all tests.
This of course make a deployment of something very simple like a validation rule, to take a lot of time
The issue about not being able to deploy with REST it's been there for a while too, at least 6 months.

@WillieRuemmele
Copy link
Member

HI @fedegiust

the CLI passes TestLevel=NoTestRun so I'm surprised to hear that it's still running tests. We've also been getting a lot of reports around test levels not working. I'll investigate if using REST or SOAP helps resolve the issue

@fedegiust
Copy link
Author

Hi @WillieRuemmele
Here's a short video demo of the issue
If I do right click on VS Code and deploy to Prod, works correctly (If I'm deploying Apex it runs tests, if there is no apex it doesn't run tests(
If I do from CLI to prod, and don't specify test level or if the test level is NoTestRun returns an error
image

image

Here's the video
https://www.loom.com/share/bca3c3aa381a41b3800ec4add9bdd0e8

@WillieRuemmele
Copy link
Member

Hi @fedegiust

Thanks for the video, it's always great to see what exactly you're doing. We currently have a few more pressing bugs that we're working on #1531 and one about --testlevel which may fix your bug. We'll mark this issue accordingly.

but once again, thank you for being so involved and helping - this is why everyone on the team loves working on OSS stuff 😄

@WillieRuemmele WillieRuemmele added bug Issue or pull request that identifies or fixes a bug and removed more information required Issue requires more information or a response from the customer investigating We're actively investigating this issue labels Jun 7, 2022
@jdgirald
Copy link

Hey @fedegiust, I had the same issue, and it seems to be fixed after 7.156.1 cli version

FIX: You can now run the force:mdapi:deploy command on a production org without specifying the --testlevel parameter if your project doesn't contain any Apex classes. Previously it incorrectly failed with the error INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations. (GitHub issue ##1542)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

5 participants