Skip to content

sf data bulk export fails, ERR_STRING_TOO_LONG #3507

@tggagne

Description

@tggagne

Expected result

sf data bulk export should have exported 700K+ records

Actual result

node:buffer:636
    slice: (buf, start, end) => buf.utf8Slice(start, end),
                                    ^

Error: Cannot create a string longer than 0x1fffffe8 characters
    at Object.slice (node:buffer:636:37)
    at Buffer.toString (node:buffer:864:14)
    at MemoryWriteStream.toString (/Users/tgagne/.local/share/sf/client/2.120.3-0e363e5/node_modules/@jsforce/jsforce-node/lib/util/stream.js:43:44)
    at MemoryWriteStream.<anonymous> (/Users/tgagne/.local/share/sf/client/2.120.3-0e363e5/node_modules/@jsforce/jsforce-node/lib/util/stream.js:58:24)
    at MemoryWriteStream.emit (node:events:531:35)
    at finish (node:internal/streams/writable:955:10)
    at node:internal/streams/writable:936:13
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  code: 'ERR_STRING_TOO_LONG'
}

Node.js v22.21.1

Additional information

System Information

CLI:
@salesforce/cli/2.123.1 darwin-arm64 node-v22.22.0

Plugin Version:
@oclif/plugin-autocomplete 3.2.40 (core)
@oclif/plugin-commands 4.1.40 (core)
@oclif/plugin-help 6.2.37 (core)
@oclif/plugin-not-found 3.2.74 (core)
@oclif/plugin-plugins 5.4.56 (core)
@oclif/plugin-search 1.2.38 (core)
@oclif/plugin-update 4.7.19 (core)
@oclif/plugin-version 2.2.36 (core)
@oclif/plugin-warn-if-update-available 3.1.55 (core)
@oclif/plugin-which 3.2.43 (core)
@salesforce/cli 2.123.1 (core)
agent 1.29.0 (core)
apex 3.9.6 (core)
api 1.3.9 (core)
auth 4.1.5 (core)
code-analyzer 5.10.0 (user)
data 4.0.68 (core)
deploy-retrieve 3.24.8 (core)
info 3.4.101 (core)
limits 3.3.75 (core)
marketplace 1.3.10 (core)
omnistudio-migration-tool 1.7.0 (user)
org 5.9.66 (core)
packaging 2.25.1 (core)
schema 3.3.91 (core)
settings 2.4.55 (core)
signups 2.6.56 (user)
sobject 1.4.82 (core)
telemetry 3.7.2 (core)
templates 56.4.7 (core)
trust 3.7.113 (core)
user 3.6.49 (core)
@salesforce/sfdx-plugin-lwc-test 1.2.1 (user)
@salesforce/sfdx-scanner 4.12.0 (user)
sfdx-git-delta 6.32.2 (user)
vlocityestools 0.25.1 (user)
SF ENV. VARS.
SF_DISABLE_AUTOUPDATE,true
SF_BINPATH,/Users/tgagne/.local/share/sf/client/bin/sf
SF_DISABLE_SOURCE_MEMBER_POLLING,true
SF_SKIP_NEW_VERSION_CHECK,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
❌ warn - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches 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 bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions