No implicit conversion of String into Integer

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

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.