# No implicit conversion of String into Integer

**URL:** <https://discourse.chef.io/t/no-implicit-conversion-of-string-into-integer/13281>\
**Category:** Chef Infra (archive)\
**Created:** [July 11, 2018, 10:56am UTC](https://discourse.chef.io/t/no-implicit-conversion-of-string-into-integer/13281 "2018-07-11T10:56:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sandy](https://discourse.chef.io/u/sandy)\
**Post date:** [July 11, 2018, 10:56am UTC](https://discourse.chef.io/t/no-implicit-conversion-of-string-into-integer/13281/1 "2018-07-11T10:56:05Z")

</div>

Hi, We have recently migrated from Hosted Chef to On Premises Chef Server. We are getting "no implicit conversion of String into Integer" error when running chef-client on the node. I had done quite research and the resolution was mostly a fix in syntax of the recipe. But, the cookbook we are applying now was working fine before so not sure I should change through the code.  
Any suggestions?

![image](https://sea2.discourse-cdn.com/flex016/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Don](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@Don](https://discourse.chef.io/u/Don)\
**Post date:** [July 23, 2018, 4:44am UTC](https://discourse.chef.io/t/no-implicit-conversion-of-string-into-integer/13281/2 "2018-07-23T04:44:14Z")

</div>

That looks like ‘customer’ data bag is not being retrieved somehow and causing that error when referring the data that has not been retrieved from the data bag.
