amtrack / force-dev-tool

[DEPRECATED] Command line tool supporting the Force.com development lifecycle
MIT License
108 stars 37 forks source link

Recordtype Issue #233

Closed sheldonleelazarus closed 4 years ago

sheldonleelazarus commented 4 years ago

Hi All

I am using Azure DevOps to deploy my changes to different sandboxes , Azure DevOps uses Linux agents, for the past few months i started getting the below errors:

Error in RecordType component 'Case.CCC_Angola': At least one value is required to create this picklist. Error in RecordType component 'Contact.Inactive_Client_Contact_Record_Type': At least one value is required to create this picklist.

These errors occurred even though i made no changes to the recordtypes at all or anything related to these recordtypes, I first thought that the diff was not working but then when i ran a deployment from my machine the diff did not pick recordtype changes and everything could be deployed correctly

Is there something i am missing?

amtrack commented 4 years ago

@sheldonleelazarus It would be great if you could provide more context on about what you are trying to do.

sheldonleelazarus commented 4 years ago

Hi @amtrack

amtrack commented 4 years ago

@sheldonleelazarus Are you saying that it works on your machine but not on Azure DevOps?

The git command only works when both branches are checked out: I can imagine that this is the case on your machine but maybe not on Azure DevOps.

Please verify on Azure DevOps that the following command works before piping it to force-dev-tool:

git diff qa feature/US-12

If this doesn't output the desired result, you can try to diff the remote branches.

git diff origin/qa origin/feature/US-12
sheldonleelazarus commented 4 years ago

@amtrack Yes my commands worked before, this bug started happening from about Feb for me and I can confirm I am actually using git diff origin/qa origin/feature/US-12 in Azure DevOps

amtrack commented 4 years ago

@sheldonleelazarus It's hard for me to believe that force-dev-tool picks up a different RecordType which is not in the diff and that this only happens in Azure DevOps?!

In Azure DevOps can you please output git diff origin/qa origin/feature/US-12 right before doing git diff origin/qa origin/feature/US-12 | force-dev-tool changeset create Package, so that we're 100% sure the diff is the right one to pipe into force-dev-tool?

amtrack commented 4 years ago

@sheldonleelazarus any news on this?

sheldonleelazarus commented 4 years ago

@amtrack yes, i tried to use a different repo to perform similar changes and i could not replicate the issue with Azure DevOps, everything worked as expected, I have a suspicion it could be the metadata file or the type of IDE that was used to update the metadata in our repo

amtrack commented 4 years ago

@sheldonleelazarus OK, good to know. Thanks for the feedback!