拡張 LWR サイトの登録ページ設定において、登録ページ種別をエクスペリエンスビルダーページの「Register」に変更する際、混合 DML エラーが発生する場合があります。この記事では、メタデータを直接修正することでこの問題を解消する手順を説明します。
原因
この現象は、メタデータ内の <selfRegProfilePageOverrideSetting> タグの値が適切に更新されないことにより、設定オブジェクト(NetworkSelfRegistration)と非設定オブジェクト(CustomBrandAsset)の間で DML 操作の競合が発生するために起こります。
解決手順
Network メタデータを手動で書き換えてデプロイすることで、設定を正しく反映させることができます。
対象サイトの Network メタデータを取得します。
取得したメタデータファイルをテキストエディターで開き、 <selfRegProfilePageOverrideSetting> タグの行を探します。
例)<selfRegProfilePageOverrideSetting>Standard</selfRegProfilePageOverrideSetting>
以下のとおり、対象のタグの値を Designer に書き換えます。
<selfRegProfilePageOverrideSetting>Designer</selfRegProfilePageOverrideSetting>
メタデータの取得およびデプロイには、Salesforce CLI の使用を推奨します。
005319548

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.