Error message when creating new resource assignment "Either a resource or attribute is mandatory"

PetarK
Tera Expert

Hi all, can someone help me with the error message which I am getting when I am creating new resource assignment? 

Steps to reporoduce, follow the steps on screenshot and press new. Fill out the data and press save, then "Either a resource or attribute is mandatory" appears together with Invalid value on insert. After I choose the resource I am getting new error: Resource assignment cannot be created or updated because xxx xxx is not available.



PetarK_0-1732017863715.png

Version: Xanadu patch3

8 REPLIES 8

ianmatth
Tera Contributor

I'm constantly getting this same error. SN needs to do SO much better with their documentation. This is not explained ANYWHERE that I can find. 

ianmatth
Tera Contributor

Validate Resource availability BR on Resource assignment is where the error is coming from. I tried to follow it down a rabbit hole of script includes, but I cannot figure out what it is actually looking for to determine user capacity. SN needs to address this in their documentation, but if anyone else wants to try to figure out what table is being queried at the lowest level and what is coming back maybe we can do SN's job for them in a much more difficult way.

Fleur Wills
Tera Contributor

I came up against same issue. I looked in script include 'RMUsersCapacityAPISNC' that is called by Business rule 'Validate Resource availability'.

 

Found a few references to Employee Profile where script was using employee profile data to work out capacity.. 

_getEmployeeProfileDates: function(userId) {
        return this.employeesProfiles[userId];
    },
 
Decided to add a record to 'Employee Profile' table (sn_employee_profile) as its empty in this system and after adding tried doing Resource assignment and it worked!.
 

 

Thanks, that worked, but what in the script indicated a call to sn_employee_profile?