Error: read access to sn_hr_core_profile not granted

Hafsa1
Mega Sage

Getting error while executing flow designer.

Flow designer is on Human resource core application and I'm sn_hr_core_profile table for generating attachment.

But getting below error, I'm running it from system user.

Hafsa1_1-1715578462605.png

 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Hafsa1 

both Flow and sn_hr_core_profile table are in HR core scope, so should not be an issue there

it looks you are creating attachment and not having read access on it

Did you debug that?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hafsa1
Mega Sage

I have created read and write ACL on sys_attachment table too. but still no luck

Hafsa1
Mega Sage

in log. I'm got below error:

 

Error: Cannot convert 8898b10f870e02548e8aeb150cbb3565 to com.glide.script.GlideRecord (Process Automation.1f54890f874ace148e8aeb150cbb358d; line 51)

Hafsa1_1-1715583955411.png

 

Hafsa1
Mega Sage
 
grAttachment.write(caseObj, fileName, 'application/csv',csvData);
 
above line in action is giving this error. Although I have created ACL in sys_attachment for create/write