function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Debbie EngelmeyerDebbie Engelmeyer 

SFDX push error: Duplicate name errors

I've been seeing an error pushing our project source to a fresh scratch org that started this week.  I wasn't seeing it on my machine (although my colleage was) until I purged my git repository.  Now I can't get past it.

My sfdx-project.json file has multiple projects, but none of them re-use directories, and none of them re-define the object with the error.  Also, I added "pushPackageDirectoriesSequentially": true to the file in an attempt to get past this error.

I also tried changing sfdx versions, changing the sourceApiVersion, and removing all but the main project from the file.  No go.
PriyaPriya (Salesforce Developers) 
Hey Debbie,

Kindly check if this links help you :
https://github.com/forcedotcom/cli/issues/1463

Thanks 
Priya Ranjan
Debbie EngelmeyerDebbie Engelmeyer
Using force:source:legacy:push gets me past the problem. Why didn’t the "pushPackageDirectoriesSequentially" setting help?
Debbie EngelmeyerDebbie Engelmeyer
I still need a solution for the deploy problem.
Todd Halfpenny MCTodd Halfpenny MC

Hi @Debbie, I have replied to your github issue... think I'm facing the same thing and I _might_ be onto something.

https://github.com/forcedotcom/cli/issues/1726

Are you in a position to see if what I suggest helps?