Error while uploading users via CSV (comma delimited) and custom system role

Error while uploading users via CSV (comma delimited) and custom system role

by subhani shaik -
Number of replies: 0

I created a custom system role with user upload permissions. When I'm uploading users with CSV (comma delimited) file, getting an error at Upload users results in http://localhost:80/moodle/admin/tool/uploaduser/index.php

The error is as follows:

Notice: Undefined variable: rolecache in D:\ProgramFiles\xampp\htdocs\moodle\admin\tool\uploaduser\locallib.php on line 384

Can anyone suggest how to overcome this error. I get this error because I turned on the developers debugging mode in moodle.

User Role Presets used in my custom role is attached with this post.

Average of ratings: -