Issues while authenticating to my SFDX orgs.
When trying to execute the migration job and to connect to my SFDX orgs, I have an error like:
Command initialization error: Access token to the CAREFUL_PRODUCTION_CAREFUL has expired or the user has no access..
How to resolve?
There are several possible reasons of this issue:
If you are using **orgs **section in the export.json (see Full export.json format.) your accessToken is probably has expired.
If you are using SFDX CLI org authentication, you need to check whether your SFDX org authentication information not expired or you have access to your org. Use force:auth:web:login or similar command to refresh your SFDX CLI authentication.
Make sure that you are using apiVersion parameter in your export.json as a string and NOT as a number:
apiVersion : "48.0" instead of apiVersion : 48.0