Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Error: CustomField Not in package.xml when defining custom field in child managed 2gp from a custom object created in parent managed2gp under the same namespace

Đang mở
#3,227 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js
Lĩnh vực
cli, devtools

Hướng nghiên cứu

Tái hiện việc cài đặt bằng các package 2gp được quản lý của package cha và package con được mô tả trong các bước, bao gồm đường dẫn metadata force-app/main/default/nmsp__O/F__c.xml. Kiểm tra cách CLI xây dựng hoặc xác thực package.xml cho package con, sau đó xác minh rằng khi cài đặt package trong một scratch org trống, hệ thống không còn báo thiếu O__c.F__c.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:packaging
Summary

I am not able to install a child managed 2gp version that has a custom field in a custom object from its parent managed 2gp (in the same namespace). Getting Error: CustomField Not in package.xml for that custom field when trying to install the package. Creation of the package (even with validations) does not fail

Steps To Reproduce

IMPORTANT
1-Create a parent 2gp managed package A under namespace nmsp, and create a custom object O. Create a new beta version for this package
2-Create a child 2gp managed package B. Create dependency between package A and B (we are using cumulusCI), and create in custom object O a field F. The field F will be stored in force-app/main/default/nmsp__O/F__c.xml-meta....
4-Create new package version for package B with NO validation skip. Package can be created successfully
5-Install package version in new scratch org empty. CumulusCI is successfully installing all dependencies, but when trying to install metadata, getting the following errors:
Error: CustomField Not in package.xml, Details: O__c.F__c: Not in package.xml

Expected result

I should be able to successsuly install package

Actual result

Cannot install package (error)

Additional information
System Information
@salesforce/cli/2.78.3 darwin-arm64 node-v20.17.0
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
571
Fork
80
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của forcedotcom/cli

Tất cả issue của forcedotcom/cli

Issue tương tự

Thêm issue về CLI

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.