I am creating a new doctype under the HR module, when I save the doctype, I get this error.
If I try to save the doctype, I get an error which says AttributeError: ‘NoneType’ object has no attribute ‘split’
Here is a screenshot of the error I am getting. I will be grateful if someone can help resolve this problem. Thank you all.
some server function is trying to use .split() on an empty object.
Thanks for your response. How do I resolve this please?
The AttributeError is an exception thrown when an object does not have the attribute you tried to access. ‘NoneType’ object has no attribute ‘split’ often indicates that the attribute you are trying to split is Null, meaning there is no value in it to split. So, you need to check the attribute is not Null before splitting. Something like…
if val is not None: