This occurs if you haven't allowed Truecaller to "Write and delete call history". Follow steps below to solve this.
1. Open Security app -> Permissions.
2. Find Truecaller app in list.
3. Scroll to “Write and delete call history” permission, tap to it and select Accept option.