Type object not in record

I am having input as a kafka queue which is pushing json data to influxdb. The data format is like this:

“counters”:{“0”:{“OR.E1”:{“E1SetupEstablishedCount”:“0”,“E1SetupFailureCount”:“0”}}}

where “0” is variable. So in telegraf i am converting string to int and having json_string = ["counters_*"]

So for this data sample i am getting counters_0_OR.E1_E1SetupEstablishedCount and counters_0_OR.E1_E1SetupFailureCount as columns.

Now while doing some computation and then applying map function the following error is showing: runtime error @10:6-10:86: map: failed to evaluate map function: member "counters_0_OR" with type object is not in the record

But if i am doing rename it is working fine.

I thought to remove counters_0_ so that column name can become from -
counters_0_OR.E1_E1SetupEstablishedCount to OR.E1_E1SetupEstablishedCount

still getting error: runtime error @10:6-10:74: map: failed to evaluate map function: member "OR" with type object is not in the record

Can anybody suggest me solution for this. I want atleast to retain atleast this part - OR.E1_E1SetupEstablishedCount only E1SetupEstablishedCount will not suffice.

Thanks