How do I get around this or fix it? ```An error oc...
# sdf
d
How do I get around this or fix it?
Copy code
An error occurred during custom object validation. (customscript_bb_sl_process)
Details: The defaultvalue field for the custscript_default_employee (scriptcustomfield) subrecord must not be ACCOUNT_SPECIFIC_VALUE.
Details: The custscript_default_employee field for the customdeploy_bb_sl_process (scriptdeployment) subrecord must not be ACCOUNT_SPECIFIC_VALUE.
File: ~/Objects/customscript_bb_sl_process.xml
a
This is an expected behavior of a suiteapp dealing with Account Specific values. You should ask this question in #C298P0BCK to know some tips and tricks to get pass this.
j
Isn't that what the project setting "Action on account-specific values" exists for so you can just display warnings?
d
Where is that setting?
j
Maybe it's not applicable in your instance but on an SDF project if you pull up the project settings it's a dropdown there
a
@JohnnyC @dcrsmith That option is available only if project is ACP.
j
Could you not leverage it with the cli?
accountspecificvalues
d
I'm open to ideas and I need to get this fixed asap. Can't deploy the app without these working.
a
@JohnnyC No, it doesnt work like that. if you run
sdfcli deploy -h
you will see something like this
Copy code
-accountspecificvalues, -accountspecificvalues [argument]              Indicate how to handle the presence of account-specific values in an account customization project. If there are account-specific values in the project, enter WARNING to continue with the deployment process, or ERROR to stop it. If the option is not specified, the default value is ERROR. It only applies to account customization projects.
j
As of now I've only been in Account Customization Project so didn't mean to lead you astray on that. For a SuiteApp type project maybe I see why they're not allowing it.
ok thanks for the clarification makes sense.
s
you can find the relevant internal id from the UI and replace with ACCOUNT_SPECIFIC_VALUE in most cases
👍🏼 1
d
I tried the
-5
for the employee ID and it didn't work
s
what error it gave then?
a
Maybe i am wrong
-5
looks incorrect, If it's a role it should be
5
d
-5 is the default account owner's employee id
every account has this employee
@Selcuk Dogru Thank you. I might have done something wrong when I tried the
-5
before. I went back and tried it again and was able to validate. Now I just need to attempt a deployment and make sure it works.
Well, that didn't work.
Copy code
*** ERROR ***

An error occurred during custom object creation.
Details: Invalid custscript_default_employee reference key -5.
File: ~/Objects/customscript_bb_sl_process.xml
Object: customscript_bb_sl_process.customdeploy_bb_sl_process (scriptdeployment)
2020-03-12 09:01:40 (PST) Installation FAILED (0 minutes 17 seconds)
s
considering employee -5 is currently active, I don't have any other suggestions
also thinking you don't have any filters applied on the field
d
@Selcuk Dogru You're brilliant! Thank you!!! That was it. That employee is marked inactive in the account I'm trying to deploy to.
s
👍
s
I typically add the specific value into the XML before pushing.
d
Thanks @suitedev. Not a bad idea. However, this will be in the suiteapp marketplace soon so I will not have that capability for each install.
👍🏼 1