You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cristiand391 opened this issue
Oct 15, 2024
· 2 comments
Labels
bugIssue or pull request that identifies or fixes a bugdoctorIssue was created using the 'doctor' commandvalidatedVersion information for this issue has been validated
If sf data upsert bulk ran async/timed out I should be able to resume the operation by running sf data upsert resume --use-most-recent but that doesn't work, looks like the cache file even doesn't get created.
Actual result
sf data upsert resume --use-most-recent fails because there's no cached info from the last upsert operation:
➜ plugin-data git:(cd/data-import-bulk) rm ~/.sf/bulk-data-upsert-cache.json
➜ plugin-data git:(cd/data-import-bulk) sf data upsert bulk --file test/test-files/data-project/data/bulkUpsertLarge.csv --external-id Id --sobject account --async
Running bulk upsert request... ⣯ Remaining time: -0 minutes. | Stage: Open | Processed 0 | Success 0 | Fail 0
Running bulk upsert request... ⣷ Remaining time: -0 minutes. | Stage: Open | Proc
Running bulk upsert request... ⣾ Remaining time: -0 minutes. | Stage: Open | Proc
Running bulk upsert request... ⣽ Remaining time: -0 minutes. | Stage: Open | Proc
Running bulk upsert request... ⣻ Remaining time: -0 minutes. | Stage: Open | Proc
Running bulk upsert request... ⢿ Remaining time: -0 minutes. | Stage: Open | Proc
Running bulk upsert request... ⡿ Remaining time: -0 minutes. | Stage: Open | Proc
Running bulk upsert request... ⣟ Remaining time: -0 minutes. | Stage: Open | Proc
Running bulk upsert request... ⣯ Remaining time: -0 minutes. | Stage: Open | Proc
Job 7507i00000833slAAA | Status In Progress | Records processed 0 | Records failed
0
Run the command "sf data upsert resume -i 7507i00000833slAAA -o test-fbk0gxbrfaxy@example.com" to check the status.
Running bulk upsert request... done
%
➜ plugin-data git:(cd/data-import-bulk) sf data upsert resume --use-most-recent
Error (MissingCacheEntryError): Could not load a most recent cache entry for a bulk request. Please rerun your command with a bulk request id.
➜ plugin-data git:(cd/data-import-bulk) ll ~/.sf/bulk-data-upsert-cache.json
ls: /Users/cdominguez/.sf/bulk-data-upsert-cache.json: No such file or directory
Additional information
sf data upsert resume -i 7507i00000833slAAA works, looking at the code it seems the cache resolver crafts an object with the ID and so it can be resumed, all without a cache file.
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.
bugIssue or pull request that identifies or fixes a bugdoctorIssue was created using the 'doctor' commandvalidatedVersion information for this issue has been validated
Expected result
If
sf data upsert bulk
ran async/timed out I should be able to resume the operation by runningsf data upsert resume --use-most-recent
but that doesn't work, looks like the cache file even doesn't get created.Actual result
sf data upsert resume --use-most-recent
fails because there's no cached info from the last upsert operation:Additional information
sf data upsert resume -i 7507i00000833slAAA
works, looking at the code it seems the cache resolver crafts an object with the ID and so it can be resumed, all without a cache file.System Information
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 - [@salesforce/plugin-deploy-retrieve] default target DevHub max apiVersion 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
✅ pass - [@salesforce/plugin-auth] CLI supports v2 crypto
The text was updated successfully, but these errors were encountered: