价格规则错误消息
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如果您在上传费率规则 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 年 |
此值不允许为负数。此值必须为零或正整数。 |
2022 |
“<UserDeviceType> ”无效。 |
2023 年 |
“<PackageType> ”无效。 |
2024 年 |
<UserRateCondition> 运算符无效。 |
2025 年 |
<UserCountry> 代码无效。输入有效的国家/地区代码,例如 GB 或 US。 |
2026 年 |
无法识别时间值。 |
2027 年 |
无法识别星期几的值。 |
2028 年 |
<RateModification> 的 Action 属性无效。 |
2029 年 |
<RateModification> 的货币属性无效。请使用由三个字母组成的有效货币代码,例如 EUR 或 USD。 |
2030 年 |
<RateModification> 必须包含至少一个嵌套元素。 |
2031 |
XML 格式有误。使用“xmllint”根据费率规则 XML 文件架构验证您的 XML 文件。”如需了解详情,请参阅架构。 |
2032 年 |
<RateRule> 应只有一条说明。 |
2033 |
<RateRule> 应只有一个 PromoCode。 |
2034 |
此 <IneligibilityReason> 无效。 |
2035 年 |
此 <IneligibilityHintType> 无效。 |
2036 |
<RateIneligibility> 中发现了一个非预期的元素。 |
2037 |
<RateIneligibility> 必须包含 IneligibilityType 和至少一个 <IneligibilityReason> |
2038 |
此 <HotelAmenity> 无效。 |
3001 |
遇到内部错误。 |
保留所有权利。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis page provides a table of error codes and their descriptions to help troubleshoot issues encountered when uploading rate rules XML files.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided resources for guidance on coding rate rules XML files according to the required structure and schema.\u003c/p\u003e\n"],["\u003cp\u003eError codes cover a range of issues including invalid IDs, incorrect values, structural errors, and internal problems.\u003c/p\u003e\n"],["\u003cp\u003eUse the error code to identify the specific issue and consult the description for guidance on resolving it.\u003c/p\u003e\n"]]],[],null,["# Rate rule error messages\n\nIf you receive an error message after uploading a rate rules XML file, use the\ntable below to find the error code and its description.\n\nFor help with coding a rate rules XML file, see these resources:\n\n- [Rate Rules XML Reference](/hotels/hotel-prices/xml-reference/rate-rules)\n- [Hotel Ads Schemas](/hotels/hotel-prices/dev-guide/schemas)\n\n| Code | Description |\n|------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1001 | `\u003cRateRule\u003e` ID is too long. Limit length to 40 characters. |\n| 1002 | `\u003cRateRule\u003e` ID is duplicated in the configuration. Each `\u003cRateRule\u003e` ID can be used only once. |\n| 1003 | The same ID has been given to more than one `\u003cUserRateCondition\u003e`. Each ID can be used for only one `\u003cUserRateCondition\u003e`. |\n| 1004 | `\u003cRateRule\u003e` ID has an invalid `\u003cUserRateCondition\u003e` `reference_id`. |\n| 1005 | No `\u003cUserRateCondition\u003e` is defined for `child_id`. |\n| 1006 | `\u003cUserRateCondition\u003e` checks to see if the user is not a Google One member. Only positive checks for Google One membership are allowed. |\n| 1007 | One or more audience list IDs are invalid. They don't match any of the partner's known audience list IDs. |\n| 1008 | In-line `\u003cUserRateCondition\u003e` checks to see if the user is not a Google One member. Only positive checks for Google One membership are allowed. |\n| 1009 | A `\u003cRateModification\u003e` contains a `\u003cHotelAmenity\u003e` that is not free wifi. Only free wifi is allowed. |\n| 1010 | Element contains an invalid country code. |\n| 1011 | Element contains an invalid language code. |\n| 1012 | `\u003cUserRateCondition\u003e` shouldn't combine an audience list condition with another condition that subdivides users. |\n| 1013 | In-line `\u003cUserRateCondition\u003e` shouldn't combine an audience list condition with another condition that subdivides users. |\n| 1014 | `default_rate_rule_id` is set in partner configuration. A `\u003cRateRule\u003e` for that `id` must be defined. |\n| 2001 | An unexpected element was found in the `\u003cPrivateRates\u003e` value. |\n| 2002 | An unexpected element was found in the `\u003cUserRateCondition\u003e` value. |\n| 2003 | A value for `\u003cConditionOperator\u003e` is required when there are multiple elements within a `\u003cUserRateCondition\u003e`. |\n| 2004 | A non-empty ID must be provided for top-level `\u003cUserRateCondition\u003e`. |\n| 2005 | `\u003cUserRateCondition\u003e` ID is used more than once. Each `\u003cUserRateCondition\u003e` ID can be used only once. |\n| 2006 | reference_id error: the attribute doesn't refer to a valid `\u003cUserRateCondition\u003e`. |\n| 2007 | Inner `\u003cUserRateCondition\u003e` must not be empty. |\n| 2008 | A value for `\u003cConditionOperator\u003e` is required when there are multiple elements within a `\u003cUserRateCondition\u003e`. |\n| 2009 | An unexpected element was found in `\u003cRateModification\u003e`. |\n| 2016 | A non-empty ID must be provided for `\u003cRateRule\u003e`. |\n| 2017 | An unexpected element was found in the `\u003cRateRule\u003e` value. |\n| 2018 | `\u003cRateRule\u003e` ID is used more than once. Each `\u003cRateRule\u003e` ID can be used only once. |\n| 2019 | The given percentage value isn't allowed. Percentage values must be between 0 and 100. |\n| 2020 | String can't be understood as an integer. Only integer values like 43 or -67 are allowed. |\n| 2021 | A negative number isn't allowed for this value. It must be zero or a positive integer. |\n| 2022 | `\u003cUserDeviceType\u003e` isn't valid. |\n| 2023 | `\u003cPackageType\u003e` isn't valid. |\n| 2024 | `\u003cUserRateCondition\u003e` operator isn't valid. |\n| 2025 | `\u003cUserCountry\u003e` code isn't valid. Enter a valid country code such as GB or US. |\n| 2026 | Time value can't be understood. |\n| 2027 | Day of week value can't be understood. |\n| 2028 | Action attribute for `\u003cRateModification\u003e` isn't valid. |\n| 2029 | Currency attribute for `\u003cRateModification\u003e` isn't valid. Use a valid three-letter [currency code](https://support.google.com/merchants/answer/160637), such as EUR or USD. |\n| 2030 | `\u003cRateModification\u003e` must contain at least one nested element. |\n| 2031 | XML is malformed. Use \"xmllint\" to validate your XML file against the rate rules XML file schema.\" For more information, see [Schemas](/hotels/hotel-prices/dev-guide/schemas). |\n| 2032 | `\u003cRateRule\u003e` should have only have one description. |\n| 2033 | `\u003cRateRule\u003e` should have only have one PromoCode. |\n| 2034 | This `\u003cIneligibilityReason\u003e` isn't valid. |\n| 2035 | This `\u003cIneligibilityHintType\u003e` isn't valid. |\n| 2036 | An unexpected element was found in `\u003cRateIneligibility\u003e`. |\n| 2037 | `\u003cRateIneligibility\u003e` must contain an IneligibilityType and at least one `\u003cIneligibilityReason\u003e` |\n| 2038 | This `\u003cHotelAmenity\u003e` isn't valid. |\n| 3001 | Encountered internal error. |"]]