Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

'Name field can not be empty' error on submission of project task record producer?

Jared Wason
Tera Guru

Hi,

I have a record producer that is creating a project task (pm_project_task), but I see a 'Name field can not be empty' red pop-up after submission. The project task it self looks okay, but I would like to make the red pop-up go away. I do not see any client scripts or business rules triggering this on the pm_project task table. Do you have any idea what might be causing this? 

find_real_file.png

1 ACCEPTED SOLUTION

Jared Wason
Tera Guru

Issue was due to a business rule on the pm_project table. 

View solution in original post

6 REPLIES 6

Alejandro RP
Kilo Guru

Hi,

It could be a Data Policy, it enforces data consistency by setting mandatory and read-only fields.

Data Policy is kind of an UI Policy that works on the server, so when you insert/update a record, Data Policy will check if you have any restriction. (In this case would be that the name is mandatory).

Hope it helps,

Thanks

 

Hmm I tried deactivating the only UI Policy that looked like it might be causing the issue but that still didn't work. Is there a way to just skip business rules and policy upon record producer creation? I tried current.setWorkFlow(false), but that didn't seem to work either. I appreciate your help.

Did you check the Data Policies ? 

Thanks.

Yeah we do not have any on the pm_project_task table.