AttributeError: 'str' object has no attribute 'member'

I have a field of member in my doctype still it is showing this error.
I tried fetching other fields but showing same error for all the fields

The mistake lies where you are trying to fetch your doctype’s object. Instead of getting the object you are getting the string which is probably the doctype’s primary key name.

Fixed.
Yes I was looping through wrong object.

1 Like

Can you share the code before and after the correction ?

How you tried to access those attributes ?
self.property or self.get(<property>)