費率規範錯誤訊息

如果您在上傳費率規範 XML 檔案後收到錯誤訊息,請參閱下表找出錯誤代碼及其說明。

如要瞭解如何編寫費率規範 XML 檔案,請參閱以下資源:

代碼 說明
1001 <RateRule> ID 過長,長度上限為 40 個半形字元。
1002 設定中,<RateRule> ID 重複。每個<RateRule> ID 只能使用一次。
1003 首 將同一個 ID 提供給多個 <UserRateCondition>。每個 ID 只能使用一個 <UserRateCondition>
1004 <RateRule> ID」的「<UserRateCondition>reference_id無效。
1005 首 未針對 child_id 定義 <UserRateCondition>
1006 <UserRateCondition> 會檢查使用者是否不是 Google One 會員。你只能使用 Google One 會員方案進行正面檢查。
1007 一或多個目標對象名單 ID 無效。且與合作夥伴的任何已知目標對象名單 ID 不符。
1008 首 內嵌 <UserRateCondition> 會檢查使用者是否為 Google One 會員。你只能使用 Google One 會員方案進行正面檢查。
1009 首 <RateModification> 包含非免費 Wi-Fi 的 <HotelAmenity>。只允許使用免費 Wi-Fi。
1010 首 元素包含無效的國家/地區代碼。
1011 元素包含無效的語言代碼。
1012 <UserRateCondition> 不應將目標對象名單條件與細分使用者的其他條件合併。
1013 內嵌 <UserRateCondition> 不應將目標對象名單條件與其他條件細分,
1014 已在夥伴設定中設定「default_rate_rule_id」。必須為該 id 定義 <RateRule>
2001 年 <PrivateRates> 值中找到未預期的元素。
2002 年 <UserRateCondition> 值中找到未預期的元素。
2003 年 如果 <UserRateCondition> 中有多個元素,則必須提供 <ConditionOperator> 值。
2004 年 必須為頂層 <UserRateCondition> 提供非空白 ID。
2005 年 <UserRateCondition> ID」重複使用。每個 <UserRateCondition> ID 只能使用一次。
2006 年 Reference_id 錯誤:屬性未參照有效的 <UserRateCondition>
2007 年 內部 <UserRateCondition> 不得留空。
2008 年 如果 <UserRateCondition> 中有多個元素,則必須提供 <ConditionOperator> 值。
2009 年 在「<RateModification>」中找到未預期的元素。
2016 年 必須為 <RateRule> 提供非空白的 ID。
2017 年 <RateRule> 值中找到未預期的元素。
2018 年 <RateRule> ID」重複使用。每個 <RateRule> ID 只能使用一次。
2019 年 無法使用指定的百分比值。百分比值必須介於 0 到 100 之間。
2020 年 字串無法解讀為整數。只能使用 43 或 -67 等整數值。
2021 年 這個值不允許使用負數。必須為 0 或正整數。
2022 <UserDeviceType>」無效。
2023 年 <PackageType>」無效。
2024 <UserRateCondition> 運算子無效。
2025 年 <UserCountry> 代碼無效。請輸入有效的國家/地區代碼,例如 GB 或美國。
2026 年 無法辨識時間值。
2027 年 無法理解星期幾值。
2028 年 <RateModification> 的動作屬性無效。
2029 年 <RateModification> 的貨幣屬性無效。請使用有效的三字母貨幣代碼,例如 EUR 或 USD。
2030 <RateModification> 必須包含至少一個巢狀元素。
2031 年 XML 格式錯誤。使用「xmllint」來驗證費率規範的 XML 檔案。詳情請參閱「結構定義」。
2032 <RateRule>」只能含有一則說明。
2033 年 <RateRule>」只能有一個促銷代碼。
2034 年 這個<IneligibilityReason>無效。
2035 年 這個<IneligibilityHintType>無效。
2036 年 在「<RateIneligibility>」中找到未預期的元素。
2037 年 <RateIneligibility> 必須包含 IneligibilityType 和至少一個 <IneligibilityReason>
2038 年 這個<HotelAmenity>無效。
3001 年 發生內部錯誤。