You need to sign in to do that
Don't have an account?
Topher Reynolds
CICD on GitLab with a scratch org... Is System Administrator profile in the scratch org?
I have setup the CICD on GitLab, we use the Org Development model. I keep getting the error below, after starting up a scratch org, when just trying to query the System Administrator profile. Does that exist in scratch orgs?
REQUIRED_FIELD_MISSING, Required fields are missing: [ProfileId]: [ProfileId] Class.HPC_TestDataFactory.createInvestorRelation: line 140, column 1...
In the method I am calling...
ProfileID=[SELECT Id FROM Profile WHERE name='System Administrator'].Id
REQUIRED_FIELD_MISSING, Required fields are missing: [ProfileId]: [ProfileId] Class.HPC_TestDataFactory.createInvestorRelation: line 140, column 1...
In the method I am calling...
ProfileID=[SELECT Id FROM Profile WHERE name='System Administrator'].Id
The user’s profile is Standard User as per the below documentation.
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_users.htm
Can you try to clone and rename to system admin profile it should fix the issue.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
Note: Standard profiles can't be tinkered.
Thanks,
Thanks,