Thank you for sharing the files. I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
Issue: Uploading B2C_1A_TRUSTFRAMEWORKEXTENSIONS fails with error
There is a duplicate key sequence 'LocalAccountWritePasswordUsingObjectId' for the 'http://schemas.microsoft.com/online/cpim/schemas/2013/06:UniqueTechnicalProfileId' key or unique identity constraint.Schema validation error found at line 1605 col 10 in policy "B2C_1A_TRUSTFRAMEWORKEXTENSIONS" of tenant xxxx: There is a duplicate key sequence 'LocalAccountWritePasswordUsingObjectId' for the 'http://schemas.microsoft.com/online/cpim/schemas/2013/06:UniqueTechnicalProfileId' key or unique identity constraint.
Cause:
B2C_1A_TRUSTFRAMEWORKEXTENSIONS.xml already had a ClaimsProvider with <DisplayName>Local Account SignIn</DisplayName> that handled local account and got the <TechnicalProfile Id="LocalAccountWritePasswordUsingObjectId">
Solution:
- Adding the <TechnicalProfile Id="ForgotPassword"> and <TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email">
- Updated the <TechnicalProfile Id="LocalAccountWritePasswordUsingObjectId">
Thanks,
Akshay Kaushik