세・ 일・ 즈・ 포・ 스 Knowledge

(Error) Property 'componentInstances' not valid in version 50.0 본문

Sales Cloud

(Error) Property 'componentInstances' not valid in version 50.0

PMBAK 2021. 1. 7. 13:10

<실행 명령어>

$ sfdx force:source:push

<에러 메세지>

Job ID | 0Af1y00000KA7XbCAL
SOURCE PROGRESS | ██████████████████████████████████████░░ | 49/52 Components
TYPE   PROJECT PATH                                                               PROBLEM
─────  ─────────────────────────────────────────────────────────────────────────  ──────────────────────────────────────────────────────────────
Error  force-app/main/default/flexipages/Property_Record_Page.flexipage-meta.xml  Property 'componentInstances' not valid in version 50.0 (3:23)
Error  force-app/main/default/applications/DreamHouse.app-meta.xml                Property_Record_Page이(가) 없거나 View 작업에 대해 유효한 재정의 항목이 아닙니다.
Error  force-app/main/default/objects/Property__c/Property__c.object-meta.xml     Property_Record_Page이(가) 없거나 View 작업에 대해 유효한 재정의 항목이 아닙니다.
ERROR running force:source:push:  Push failed.

<원인>

Summer 20 릴리스에서는 componentInstances FlexiPage 영역에 대한 속성이 제거되었습니다. Release notes itemInstances 설명 된대로 이러한 항목을로 교체해야합니다. ItemInstance 메타 데이터 유형 의 구조에 대한 자세한 내용은 developer guide 있습니다.

 

API v47.0에서 작업 한 소스를 v50.0에서 Summer20을 실행하는 조직으로 푸시하는 VCS에서 작업하는 경우 XML 구조를 수동으로 업데이트해야합니다.

 

XML을 수동으로 업데이트하려면 위에 링크 된 MD API 가이드에 새 구조가 문서화되어 있지만 새 XML 구조의 <itemInstances>모든 <componentInstance>태그를 둘러싼 하나의 태그가 있어야 합니다. 다음은 한 <flexiPageRegions>구성 에 대해 테스트 한 파일의 전후 예입니다 .

 

예) Property_Record_Page.flexipage-meta.xml

 

<Before>

<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
  			:
  			:
  			:
    <flexiPageRegions>
        <componentInstances>
            <componentInstanceProperties>
                <name>collapsed</name>
                <value>false</value>
            </componentInstanceProperties>
            <componentName>force:highlightsPanel</componentName>
        </componentInstances>
        <mode>Replace</mode>
        <name>header</name>
        <type>Region</type>
    </flexiPageRegions>
  			:
  			:
  			:
</FlexiPage>

<After>

<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
  			:
  			:
  			:
    <flexiPageRegions>
        <itemInstances>
            <componentInstance>
                <componentInstanceProperties>
                    <name>collapsed</name>
                    <value>false</value>
                </componentInstanceProperties>
                <componentName>force:highlightsPanel</componentName>
            </componentInstance>
        </itemInstances>
        <mode>Replace</mode>
        <name>header</name>
        <type>Region</type>
    </flexiPageRegions>
  			:
  			:
  			:
</FlexiPage>

'Sales Cloud' 카테고리의 다른 글

Lightning 에서 Browser 캐싱 기능 삭제  (0) 2021.01.17
Git과 Github 활용  (0) 2021.01.07
Salesforce ID : 15 vs. 18 자리  (0) 2021.01.06
Salesforce Edition  (0) 2021.01.06
(Error) When clicking "SFDX: Retrieve Source from Org" in VS  (0) 2021.01.06