Skip to content

Set-PnPList -EnableModernAudienceTargeting only works on Sites created with LCID 1033 #1062

Open
@nils-a

Description

@nils-a

For other sites, the error is "'User Information List' can not be found".

E.g. for 1031 (de-de):

Set-PnPList: Die Liste 'User Information List' ist in der Website mit der URL 'https://....' nicht vorhanden.

The reason here is that the title of the user information list is hard-coded in English:

var userInformationList = web.Lists.GetByTitle("User Information List");

This does not for LCIDs where titles have been translated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions