Loading
ただいま大変多くのお問い合わせをいただいており、ご連絡までにお時間を頂戴しております続きを読む

Anypoint Code Builder: Publish Workflow Fails with ENOTEMPTY Error Due to Antivirus Interference

公開日: Aug 6, 2026
説明

When attempting to publish assets using Anypoint Code Builder (ACB), the workflow fails during the post-build cleanup phase, displaying an error similar to:
```
ENOTEMPTY: directory not empty
```
This prevents the successful completion of the publish operation.

解決策

CAUSE

This issue occurs during the post-build workspace cleanup process within Anypoint Code Builder. Antivirus or endpoint security software installed on your system may temporarily lock newly generated files or directories (such as `.tmp`, `.target`, or `.apivcs` folders) that are created during the build. This file locking prevents ACB from successfully removing these directories as part of its cleanup routine, leading to the `ENOTEMPTY` error. This is a known behavior when security software interferes with file system operations on Windows.

SOLUTION

To resolve this issue, configure your antivirus or endpoint security software to exclude specific processes and directories used by Anypoint Code Builder. After applying the exclusions, perform a clean retry of the publish operation.

1.  **Configure Antivirus/Security Software Exclusions:**
    Add the following processes and directories to the exclusion list of your antivirus or endpoint security software (e.g., Bitdefender, Windows Defender, etc.):

    **Processes to exclude:**
    *   `Code.exe`
    *   `java.exe`
    *   `javaw.exe`
    *   `node.exe`

    **Directories to exclude:**
    *   `%USERPROFILE%\AnypointCodeBuilder**`
    *   `%USERPROFILE%\.exchange_modules**`
    *   `%USERPROFILE%\.m2**`
    *   `%USERPROFILE%\.vscode\extensions\salesforce.*`
    *   `<PROJECT_PATH>\.tmp**`
    *   `<PROJECT_PATH>\.target**`
    *   `<PROJECT_PATH>\.apivcs**`
    *   `%USERPROFILE%\AppData\Local\Temp**`

    *Note: `%USERPROFILE%` refers to your user profile directory (e.g., `C:\Users\YourUsername`), and `<PROJECT_PATH>` refers to the root directory of your Anypoint Code Builder project.*

    For detailed guidance on configuring exclusions, refer to the official Anypoint Code Builder documentation: [Antivirus Exclusions](https://docs.mulesoft.com/anypoint-code-builder/start-acb#antivirus-exclusions)

2.  **Perform a Clean Retry:**
    Before attempting to publish again, manually delete the `target\` folder located within your project directory. This ensures that no locked or incomplete files from previous attempts interfere with the new operation. Then, retry the publish workflow in Anypoint Code Builder.

APPLIES TO

*   Anypoint Code Builder (ACB)
*   Local development environments (typically Windows operating systems)

ナレッジ記事番号

005390659

 
読み込み中
Salesforce Help | Article