Symptom
Error to import data "Number of attributes in the file is greater than the number of attributes in the entity. Use the latest template to ensure correctness.".
Environment
- SAP Service Cloud v2
- SAP Sales Cloud v2
Reproducing the Issue
- Click on the profile icon.
- Go to Settings.
- Navigate to 'Import and Export data' screen.
- Click on the import button.
- Select Create or Update.
- Fill the details and click on import data.
- Result: Error "Number of attributes in the file is greater than the number of attributes in the entity. Use the latest template to ensure correctness. " Is triggered.
Cause
A. Create option was selected, but the file used is from export function.
B. Update option was selected, but the file used is from Download Template function.
C. The CSV file was saved as CSV UTF-8 format.
D. There are commas in one of the extensions field labels. The Data Import parser treats the comma as a column separator, so it interprets this as two separate columns, resulting in a column count mismatch error.
Resolution
A. When selecting the Create option, the system expects that the user will use the latest template from the "Download template" button. Do not use the file from the Export function for creating new data. The file from Export should be used only for Update method.
Please follow the below steps to get the template for inserting new date into the system.
- Click on the profile icon.
- Go to Settings.
- Navigate to 'Data Import and Export' screen.
- Click on the 'Download template' button to download a fresh template.
- Select the entity and download it.
- Fill the desired data in the new file and save it.
- Click on the import button.
- Select Create.
- Fill the details and add the new file.
- Click on import data.
Note: Do not remove or add any columns to the template when importing new data to the system.
B. When selecting the Update method, the system expects that the user will first export the record and use that file to update the necessary data.
- Click on the profile icon.
- Go to Settings.
- Navigate to 'Data Import and Export' screen.
- Click on Export button.
- Select the entity.
- Use the filter to select the wanted records.
- Select file type.
- Click on Export data.
- Open the exported file and perform the changes you want.
- Save the file. Then you can go back to 'Data Import and Export' screen and upload the file for Update method.
Note: Do not remove or add any columns to the template when updating data.
C. This encoding is not supported to be imported in the system. Please save the files as just CSV format or xlsx and the import should occur correctly.
D. Commas are not supported within a column name. Please remove the comma from the Extension fields labels in the Extensibility Admin settings.
Keywords
Data Import, Insert, Create, Template, Attributes, File, UTF-8, Update , KBA , CEC-CRM-IMX , Data Import/Export for SAP Sales/Service Cloud , How To
SAP Knowledge Base Article - Public