Hi all, I'm created a case after record submit on ...
# general
j
Hi all, I'm created a case after record submit on a customer record using the create new record action. When the WF runs I get the error Notice (SuiteScritpt) -invalid profile reference key 3 for subsidiary . The profile reference key is referencing the case profile that is being set. I've read sometimes a case profile can be not associated with a subsidary so you have to set that filter under the case profile. Our case profiles are left blank. i tried setting it to our 1 subsidiary and it didn't change the outcome. The subsidiary is active. i have thumbed through suite answers and web information I have also tried to set the subsidiary when on the record but that field is unavailable on the create record action. a help topic recommended changing the order that the fields are set but that made no difference I'm running the wf on on after submit and and the action on after submit as well. I have tried a variety of trigger timing as well with no luck. Can anyone point me in the right direction please?
t
It seems like your profile is trying to set the subsidiary to ID 3, but an error occurs. Is subsidiary 3 an option? Also, you might have some luck executing that workflow as an administrator to see if that provides a new outcome. Doing so may narrow down your errors.
j
Hi Tim, I will try to execute as admin. It's setting case profile id to 3, and the ID changes as i change what case profile is being set.
Unfortunately, executing as admin didn't work out. but the error is profile xx is subsidiary " ". It's blank so that could perhaps be a clue. Do you have any ideas there?
t
Does your profile include an entry for subsidiary? Perhaps subsidiary is blank on the profile, and the target record requires that a subsidiary be set by the profile and there isn't one provided on the profile.
j
Tim, I troubleshooted that as well. However, i found the issue. It was one of my own making. as i set the company value joined current record and set the field to company. All I needed to do was join the record and leave field blank on the company field for the case. Thank you very much for the help!