> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Errors ## Article: Errors ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/errors.md ## Article Content: # Resources Errors This article outlines error messages that might be issued when calling endpoints of the Resources API. ## Create Resource Errors The [Create Resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/create-resource.md) and [Bulk Create Resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/bulk-create-resources.md) endpoints might issue the following error messages: |
HTTP status
|
Error code
|
Error message
|
Troubleshooting
| |--------------------------------------------|--------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `INVALID_ARGUMENT (400)` | `RESOURCE_LOCATION_ID_IS_REQUIRED` | `locationId` is a required field of `locationOptions.specificLocationOptions.businessLocations` | Make sure that each element in the businessLocations array contains a non-empty ID. | | `INVALID_ARGUMENT (400)` | `RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED` | `specificLocationOptions` of `locationOptions` cannot be set if `availableInAllLocations` is `true` | Make sure that a resource is specified to be available at all locations by setting `availableInAllLocations` to `true` or at specific locations only by setting `specificLocationOptions`. | | `INVALID_ARGUMENT (400)` | `RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET` | `specificLocationOptions` of `locationOptions` must be set if `availableInAllLocations` is `false` or empty | If the resource is not available at any location, then supply the `specificLocationOptions` field to specify the locations the resource is available. | | `INVALID_ARGUMENT (400)` | `RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE` | `available_in_business_locations` in `locationOptions.specificLocationOptions` must be set to `true` | When `availableInAllLocations` is false or empty then `available_in_business_locations` must be set to `true`. | | `INVALID_ARGUMENT (400)` | `RESOURCE_WORKING_HOURS_NOT_SUPPORTED_IN_BULK_REQUEST` | `workingHoursSchedules` is currently not supported in bulk requests | At this time it is not possible to include a resource with working hour schedules in a call to [Bulk Create Resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/bulk-create-resources.md). | ## Update Resource Errors The [Update Resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/update-resource.md) endpoint might issue the following error messages: |
HTTP status
|
Error code
|
Error message
|
Troubleshooting
| |--------------------------------------------|--------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `INVALID_ARGUMENT (400)` | `RESOURCE_NAME_IS_REQUIRED` | 'name' is a required field of Resource | When updating the name of the resource make sure that the new name is not empty. | | `INVALID_ARGUMENT (400)` | `RESOURCE_LOCATION_ID_IS_REQUIRED` | `locationId` is a required field of `locationOptions.specificLocationOptions.businessLocations` | Make sure that each element in the businessLocations array contains a non-empty value. | | `INVALID_ARGUMENT (400)` | `RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED` | `specificLocationOptions` of `locationOptions` cannot be set if `availableInAllLocations` is `true` | Make sure that a resource is specified to be available at all locations by setting `availableInAllLocations` to `true` or at specific locations only by setting `specificLocationOptions`. | | `INVALID_ARGUMENT (400)` | `RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET` | `specificLocationOptions` of `locationOptions` must be set if `availableInAllLocations` is `false` or empty | If the resource is not available at any location, then supply the `specificLocationOptions` field to specify the locations the resource is available. | | `INVALID_ARGUMENT (400)` | `RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE` | `available_in_business_locations` in `locationOptions.specificLocationOptions` must be set to `true` | When `availableInAllLocations` is false or empty then `available_in_business_locations` must be set to `true`. | | `INVALID_ARGUMENT (400)` | `RESOURCE_WORKING_HOURS_SCHEDULE_ID_IS_REQUIRED` | `scheduleId` is a required field of `workingHoursSchedules.values` | When updating the working hour schedules of a resource make sure that `scheduleId` has a non-empty value. | | `INVALID_ARGUMENT (400)` | `RESOURCE_WORKING_HOURS_SHARED_IS_REQUIRED` | `shared` is a required field of `workingHoursSchedules.values` | When updating the working hour schedules of a resource make sure that `shared` has a non-empty value. | | `INVALID_ARGUMENT (400)` | `RESOURCE_TYPE_IS_IMMUTABLE` | `type` is an immutable field and can therefore not be modified | The `type` field of a resource cannot be updated. |