Question on behalf of @phuoc-sleek-sand
Hi, When add caching in BAP server, I got this error
2022-08-05 12:31:51,210 WARN [main] com.mgmtp.a12.dataservices.model.bulkload.BulkImportProblemReporter: Error while importing models
java.lang.IllegalArgumentException: Cannot find cache named ‘modelGraphCache’ for Builder[public void com.mgmtp.a12.dataservices.model.internal.ModelCacheUtil.invalidateModelGraphCaches()] caches=[modelGraphCache, modelSubTypesMapCache] | key=‘’ | keyGenerator=‘’ | cacheManager=‘’ | cacheResolver=‘’ | condition=‘’,true,false
I use ehcache same as which is using in data services, does anybody know what’s the problem here?
Answer on behalf of @tomas-thin-gale
Hi it looks like you do not have the cache defined in ehcache.xml or hazelcast.xml based on which version you are using. in 33.0.0 we started to use hazelcast as default cache and we recommend using that unless you have some strong reasons not to use it
Hi Tomas, Thanks for you suggestion. I’m using dataservices 33.0.7 and see it is using ehcache.

Do you redefine cache definition in your code? because the definition that is bundled with the dataservices-core contains the mapping for modelGraphCache
<cache alias="modelGraphCache"> <expiry> <ttl>86400</ttl> </expiry> <heap>100</heap> </cache>
as seen in the code here: <INTERNAL_LINK>
this answer is valid for Data services 30.1 - 33.0.x