# The datasource configuration "import" was not found in database.php

**URL:** <https://discourse.cakephp.org/t/the-datasource-configuration-import-was-not-found-in-database-php/950>\
**Category:** Need Help\
**Created:** [August 10, 2016, 4:37pm UTC](https://discourse.cakephp.org/t/the-datasource-configuration-import-was-not-found-in-database-php/950 "2016-08-10T16:37:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthi\_Srv](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@Karthi\_Srv](https://discourse.cakephp.org/u/Karthi_Srv)\
**Post date:** [August 10, 2016, 4:37pm UTC](https://discourse.cakephp.org/t/the-datasource-configuration-import-was-not-found-in-database-php/950/1 "2016-08-10T16:37:07Z")

</div>

Hi, I am new to cakePHP Please support  
**I got these error when**

$options = [  
‘conditions’ =\> [‘[Product.id](http://Product.id)’ =\> $productId],  
‘contain’ =\> [  
‘ProductShippingAvailabilityType’ =\> [‘fields’ =\> [‘website\_desc’]],  
‘Item’ =\> [‘fields’ =\> [‘availability’, ‘date\_last\_found’]],  
],  
‘fields’ =\> [‘id’],  
];  
$product = $this-\>find(‘first’, $options);

**While accessing $this-\>find i Got these error.**

[MissingDatasourceConfigException] The datasource configuration “import” was not found in database.php  
Exception Attributes: array (  
‘config’ =\> ‘import’,  
)
