I keep getting errors saying I don't have permission to import attachments. I don't have any attachments in my import document, so why?
Here is a sample of the error:
2022-04-11 15:02:17,557 WARN - Couldn't get attachments: the current user doesn't have the necessary permissions. 2022-04-11 15:02:17,562 INFO - Importing issue: [externalId='autoid-1560217708-Login - Existing User-Chrome', summary='Login - Existing User-Chrome'] 2022-04-11 15:02:17,742 WARN - Couldn't get attachments: the current user doesn't have the necessary permissions. 2022-04-11 15:02:17,743 INFO - Importing issue: [externalId='autoid-1530756146-Login - Missing Password-Chrome', summary='Login - Missing Password-Chrome'] 2022-04-11 15:02:17,892 WARN - Couldn't get attachments: the current user doesn't have the necessary permissions.
To fix this error, you have two options. Update the custom profile being used by the importing user or if a standard profile is being used, create a custom permission set.
Update Custom Profile
Open the error csv file you received as an attachment in the summary email after the initial import
In the error csv file, confirm which cross referenced object is causing the issue in the cell identified in the error message
Click the gear icon in the top right corner of the Salesforce screen
Select Setup
In the Quick Find search bar on the left side of the Salesforce screen, type Profiles
Click the search result for Profiles
Click Edit next to the custom profile assigned to the user performing the import
Go to the Standard Object Permission section
For the cross referenced object causing the error, check the boxes to Read, Create and Edit
Click Save
Perform the import again using the error csv file
Create Custom Permission Set
Open the error csv file you received as an attachment in the summary email after the initial import
In the error csv file, confirm which cross referenced object is causing the issue in the cell identified in the error message
Click the gear icon in the top right corner of the Salesforce screen
Select Setup
In the Quick Find search bar on the left side of the Salesforce screen, type Permission Sets
Click the search result for Permission Sets
Click New
Provide it with a Label of your choosing then click Save
Go to the Object Permission section
For the cross referenced object causing the error, check the boxes to Read, Create and Edit
Click Save
Click Manage Assignments
Click Add Assignments
Check the box next to your users name then click Assign
Click Done
Perform the import again using the error csv file
For more information on errors that can be encountered within Salesforce, what they mean and how to fix them, please review the following resources:
Core Data Types Used in API Calls
Fix Data Import Errors in Salesforce Essentials
Standard Profiles
Create Permission Sets
Regards,
Rachel Gomez
If your instance got Xray plugin and importing Test issues using Test > Test Case Importer , then please look into their existing bug, https://jira.getxray.app/browse/XRAY-8037
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.