Skip to content

cli is not able to edit existing genAiFunctions #3075

Open
@mulecalle

Description

@mulecalle

Steps:

  1. retrieve a genAiFunctions from an org
    Screenshot 2024-10-22 at 10 40 50 AM

  2. modify the output/schema.json file
    Screenshot 2024-10-22 at 10 40 18 AM

  3. execute a sf project deploy start --source-dir force-app/main/default/genAiFunctions/* ...

❯ make deploy
sf project deploy start --source-dir force-app/main/default/genAiFunctions/* --target-org builders-automation --ignore-errors --ignore-conflicts --ignore-warnings --verbose
Deploying v61.0 metadata to [email protected] using the v62.0 SOAP API.
Deploy size: 6.74 KB of ~39 MB limit
Deployed files count: 10 of 10,000 limit
Deploy ID: 0AfEE000000mKCX0A2
Status: Succeeded | ████████████████████████████████████████ | 3/3 Components

Deployed Source
==================================================================================================================================================================================================
| State     Name                                Type          Path
| ───────── ─────────────────────────────────── ───────────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
| Unchanged call_integration_service            GenAiFunction force-app/main/default/genAiFunctions/call_integration_service/call_integration_service.genAiFunction-meta.xml
| Unchanged call_integration_service            GenAiFunction force-app/main/default/genAiFunctions/call_integration_service/input/schema.json
| Unchanged call_integration_service            GenAiFunction force-app/main/default/genAiFunctions/call_integration_service/output/schema.json

Expected result

The agent action is updated in the org.

Actual result

The agent action is not being updated in the org.

See the Unchanged state in (3)

Additional information

System Information

CLI:
@salesforce/cli/2.62.6 darwin-x64 node-v20.17.0

Plugin Version:
@oclif/plugin-autocomplete 3.2.5 (core)
@oclif/plugin-commands 4.1.3 (core)
@oclif/plugin-help 6.2.14 (core)
@oclif/plugin-not-found 3.2.22 (core)
@oclif/plugin-plugins 5.4.14 (core)
@oclif/plugin-search 1.2.11 (core)
@oclif/plugin-update 4.6.3 (core)
@oclif/plugin-version 2.2.14 (core)
@oclif/plugin-warn-if-update-available 3.1.18 (core)
@oclif/plugin-which 3.2.15 (core)
@salesforce/cli 2.62.6 (core)
apex 3.5.1 (core)
api 1.3.1 (core)
auth 3.6.65 (core)
data 3.7.0 (core)
deploy-retrieve 3.12.17 (core)
info 3.4.9 (core)
limits 3.3.32 (core)
marketplace 1.2.26 (core)
org 4.6.0 (core)
packaging 2.8.11 (core)
schema 3.3.34 (core)
settings 2.3.23 (core)
signups 2.5.21 (user)
sobject 1.4.41 (core)
source 3.5.21 (core)
telemetry 3.6.15 (core)
templates 56.3.22 (core)
trust 3.7.33 (core)
user 3.5.32 (core)
sfdx-plugin-prettier 1.0.5 (user)
SF ENV. VARS.
SF_BINPATH,/Users/scalle/.local/share/sf/client/bin/sf
SF_AUTOUPDATE_DISABLE,true
SF_DISABLE_AUTOUPDATE,true
SF_UPDATE_INSTRUCTIONS,Use "npm update --global @salesforce/cli" to update npm-based installations.
Windows: false
Shell: zsh
Channel: stable

Diagnostics

✅ pass - salesforcedx plugin isn’t installed
✅ pass - you don't have any linked plugins
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org/
✅ pass - using latest or latest-rc CLI version
✅ pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
❌ warn - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion
✅ pass - can access: https://test.salesforce.com
✅ pass - can access: https://appexchange.salesforce.com/services/data
✅ pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
❌ fail - [@salesforce/plugin-auth] CLI supports v2 crypto

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue or pull request that identifies or fixes a bugowned by another teamThe Salesforce CLI team does not own this work but will pass on the information to the correct team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions