Standard users who don't have CREATE permission encounter Error in Data Import Wizard
Last updated 2022-02-10 ·Reference W-3642097 ·Reported By 2 users
Summary
When standard users who don't have CREATE permission encounter the below error message in Data Import Wizard.
In case of “Add new records” menu, this error message is displayed in Mapping phase.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Looks like there's a problem.
This page has an error. You might just need to refresh it.
afterRender threw an error in 'markup://dataImporter:diSingleMappingEditor' [Cannot read property 'length' of undefined]
Failing descriptor: {markup://dataImporter:diSingleMappingEditor}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In case of “Update existing records” menu, this error message is displayed in Mapping phase.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Sample__c import failed due to an error. Please retry the import or contact Salesforce Support with the following error ID.
Error ID: 281507513-36220 (1790033144)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This error happens when trying to map fields with the followings conditions.
- Choose Name in “Match by:”
- Standard user doesn’t have CREATE permission for the custom object
In the future release, it will be modified to the followings behavior.
- CREATE permission will be required to click "Add new records"
- EDIT will be required to click "Update existing records"
- Both CREATE and EDIT will be required to click "Add and Update existing records"
Standard user have only EDIT permission without CREATE permission.
In that case, only "Update existing records" option will be clickable.
Repro
Settings steps
- Prepare Sample object
- Prepare a standard user who has “Import Custom Objects” AND “Edit” on the custom object.
Reproduce steps 1
1. Login as a standard user ( This user has “Import Custom Objects” and only “EDIT” for the custom object )
2. Open Data Import Wizard
3. Add new records
3-1. Choose Custom objects tab in "What kind of data are you importing?" section
3-2. Click "Samples" object
3-3. Choose "Add new records" in "What do you want to do?" section
3-4. Choose Name in "Match by:" option
3-5. Upload CSV in "Where is your data located?" section
3-6. Click [Next] button
4. Click Map menu
The error message is displayed.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Looks like there's a problem.
This page has an error. You might just need to refresh it.
afterRender threw an error in 'markup://dataImporter:diSingleMappingEditor' [Cannot read property 'length' of undefined]
Failing descriptor: {markup://dataImporter:diSingleMappingEditor}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reproduce steps 2
1. Login as a standard user ( This user has “Import Custom Objects” and only “EDIT” for the custom object )
2. Open DIW
3. Update existing records
3-1. Choose Custom objects tab in "What kind of data are you importing?" section
3-2. Click "Samples" object
3-3. Choose "Update existing records" in "What do you want to do?" section
3-4. Choose Name in "Match by:" (default)
3-5. Upload CSV in "Where is your data located?" section
3-6. Click [Next] button
4. Set Mapping
4-1. Click [Next] button
5. Try starting Import
5-1. Click [Start Import] button
The error message is displayed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Sample__c import failed due to an error. Please retry the import or contact Salesforce Support with the following error ID.
Error ID: 281507513-36220 (1790033144)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Workaround
Please add CREATE permission for the standard users in this moment.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.