SandboxBerry icon indicating copy to clipboard operation
SandboxBerry copied to clipboard

Not able to insert users through this tool.

Open AwanishWilley opened this issue 5 years ago • 2 comments

I am trying to insert few users in my sandbox but i am getting this error : Error Required fields are missing: [ProfileId] Status Code REQUIRED_FIELD_MISSING Fields ProfileId.

The profile is already there in sandbox.

AwanishWilley avatar Apr 29 '20 07:04 AwanishWilley

Hi Awanish

You know that users will have been copied over from the live sandbox during creation, right? But not users created since, which might be what you're trying to transfer.

This sounds a bit similar to this other issue: https://github.com/codeulike/SandboxBerry/issues/6

I'll have a think ...

codeulike avatar Apr 29 '20 20:04 codeulike

OK here's two ideas.

If you dont want to change any code you could use SbbFieldOption with ReplaceText in the Insturctions File to hard code the ProfileId for your users to one value. Bit of a hack and it means all the users get transferred with one profile but it might work.

Or if you want to re-build from code, try editing SalesforceTasks.cs method GetObjectRelationships() so that it skips Profile object references in the same way that it skips RecordType object references (about line 103)

Hope that helps.

codeulike avatar Apr 29 '20 21:04 codeulike