on ‎2023 May 23 9:50 AM
Hi,
I have created a data model, the data is imported using Odata API, I have scheduled the import using the import method as an update. but it is creating duplicates in the data, I don't understand why?
There are this four methods available in import method
1. Update
2. Append
3. clean and replace selected version data
4. clean and replace a subset of data
The import happens once every day, I want the newly added rows in the database to be imported.
I have another data set which is having 2 million rows, I am afraid of which import method to use for this data set. As we know the maximum import limit is 800,000. please suggest an import method that doesn't create duplicates and import only deltas.
Request clarification before answering.
keerthi117
A very detailed explanation of various import methods has been explained below. Which method to use depends on what target import behavior you intent to achieve. Also you can filter the records for initial load behavior check before doing the complete load. I don't think import method
I am not sure if your data source has incremental load facility. If it has you can configure that along with import method "Append". Refer to below for details. Import method only decided the load behavior but it does not have any say on whether the data source will return delta records only.
Import Methods:
When a Date dimension is defined in the scope, the time range in the source data (determined by the minimum time value and maximum time value of the source data, as well as the granularity of the date dimension) combined with other dimensions in the scope, will determine what existing data is cleaned and replaced.
If for example, Date and Region dimensions are defined as part of a scope, only entries that fall within the time range and match Region from the source data will be replaced in the target model. Existing data that does not match the scope will be kept as is. Other dimensions that are not part of the scope will be cleaned and replaced regardless of whether the dimension members are in the source data or not.
Example to understand:

Blog with detail examples:
https://blogs.sap.com/2020/07/09/data-import-methods-in-import-data-connections-sap-analytics-cloud/
Hope this helps !!
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil ,
Clean and replace subset of data: for this option, if NO dimensions are mentioned in the scope, it takes version as first dimension to clear the data irrespective of entity. Does it check the authorization of user who has access to specific entities to clear the data from the system ? or it just cleans the data without checking the authorization. Could you please explain on this ?
Regards,
Uma
I have had a similar issue. See this ticket below, we resolved it using the KEY in the CDS view.
https://userapps.support.sap.com/sap/support/knowledge/en/2816755
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.