Error Codes for Inventory Actions

This table describes the errors that are available for inventory-related actions:
Code Caused by Action Cause
TYPE_ACTION_ERROR
CODE_ACTION_NUMBER_LIMIT_EXCEEDED create Number of items in the "actions" field of close or update message is greater than 10,000.
CODE_ACTION_ON_PAST_DATE_NOT_ALLOWED
  • install

  • deinstall

  • undo_install

  • undo_deinstall

  • create

  • delete

Any of these:
  • "inv_aid" param of "install", "deisntall", "undo_install" or "undo_deinstall" action is equal to id of activity that is assigned for a past date

  • "inv_aid" param of "create" or "delete" action is equal to id of the activity that is assigned for a past date, and "invpool" is "customer", "install" or "deinstall"

CODE_ENTITY_ID_INVALID
  • install

  • deinstall

  • undo_install

  • undo_deinstall

  • create

  • delete

"invid" param is not equal to the id of any inventory in available pools
CODE_ACTION_UNKNOWN "action" param is not equal to any of the supported inventory actions (for example, "install", "create")
CODE_ACTION_ENTITY_UNKNOWN "entity" param is not equal to "inventory"
TYPE_ACTION_PARAM
CODE_ACTION_INVENTORY_AID_INVALID create "inv_aid" param is sent for the "create" action, and "invpool" is "provider"
CODE_ACTION_INVENTORY_PID_INVALID
  • deinstall

  • create

Any of these:
  • "inv_pid" param value is not equal to id of current resource or his teammates

  • "inv_pid" param is sent for "create" action, and "invpool" is "customer"

CODE_ACTION_INVENTORY_POOL_INVALID create "invpool" param value is not equal to one of: "customer", "install", "deinstall", "provider"
CODE_ACTION_INVENTORY_TYPE_INVALID create "invtype" param value is not equal to the label of any of the Inventory Types, configured for Oracle Field Service
CODE_ACTION_MANDATORY_PARAM_EMPTY
  • install

  • deinstall

  • undo_install

  • undo_deinstall

  • create

  • delete

Any of these:
  • "invid" param is not sent or its value is empty for "install", "deinstall", "undo_install", "undo_deinstall" or "delete" action

  • "invpool" param of "create" action is not sent or is empty

  • "inv_aid" param of "install" action is not sent or is empty

  • "inv_pid" param of "deinstall" action is not sent or is empty

  • "inv_aid" param of "create" action is not sent or is empty, and "invpool" is "customer", "install" or "deinstall"

  • "inv_pid" param of "create" action is not sent or is empty, and "invpool" is "provider", "install" or "deinstall"

  • "quantity" is not sent or is empty for inventory of non-serialized type

CODE_ACTION_PARAM_VALUE_INVALID
  • install

  • deinstall

  • undo_install

  • undo_deinstall

  • create

Any of these:
  • "properties" param value is sent but is not a plain object

  • "quantity" is sent for inventory of serialized type

  • "quantity" is not a positive integer number

TYPE_ACTION_PROPERTY
CODE_ACTION_MANDATORY_PROPERTY_EMPTY
  • install

  • deinstall

  • undo_install

  • undo_deinstall

  • create

[ Reserved ]
CODE_ACTION_PROPERTY_VALUE_INVALID
  • install

  • deinstall

  • undo_install

  • undo_deinstall

  • create

Any of these:
  • Property type is 'file', its GUI type is 'signature' and its value is not a valid Data URI, or it has an invalid MIME-type

  • Property type is 'enumeration', and its value is not a valid enumeration item's index

CODE_ACTION_PROPERTY_VALUE_TOO_LARGE
  • install

  • deinstall

  • undo_install

  • undo_deinstall

  • create

Any of these:
  • Property type is 'field' and the length of its value exceeds 119 UTF-16 codepoints

  • Property type is 'file', its GUI type is 'signature' and the length of its value exceeds 102400 UTF-16 codepoints

  • Property is neither field nor signature and the length of its value exceeds 32767 UTF-16 codepoints

See Property Value Length and Limits for details.
TYPE_ACTION_FAILED
CODE_ACTION_INVENTORY_ACTIVITY_STATUS_INVALID
  • install

  • deinstall

  • undo_install

  • undo_deinstall

  • create

  • delete

Any of these:
  • "inv_aid" param of "install", "deinstall", "undo_install" or "undo_deinstall" action is not equal to the id of a started activity

  • "inv_aid" param of "create" or "delete" action is not equal to the id of a started activity, and "invpool" is "install" or "deinstall"

  • "inv_aid" param of "create" or "delete" action is equal to the id of a completed, not done, or cancelled activity, and "invpool" is "customer"

  • "invid" param of "deisntall", "undo_install" or "undo_deinstall" action is equal to the id of an inventory, associated with a not started regular activity

  • "invid" param of "deisntall", "undo_install" or "undo_deinstall" action is equal to the id of an inventory, associated with a segmentable activity that is not a master activity of the currently started segment

CODE_ACTION_INVENTORY_ACTIVITY_TYPE_INVALID
  • install

  • create

"inv_aid" param equal to the id of an activity, whose type doesn't support inventories
CODE_ACTION_INVENTORY_ACTIVITY_UNKNOWN
  • install

  • create

"inv_aid" param isn't equal to:
  • Id of one of the activities in the queue of current provider / his teammates

  • Id of one of the activities in the unscheduled pool

CODE_ACTION_INVENTORY_POOL_TRANSITION_INVALID
  • install

  • deinstall

Any of these:
  • "invid" param of "install" action is equal to the id of inventory, whose "invpool" isn't equal to "provider"

  • "invid" param of "deinstall" action is equal to the id of inventory, whose "invpool" isn't equal to "customer"

  • "invid" param of "undo_install" action is equal to the id of inventory, whose "invpool" isn't equal to "install"

  • "invid" param of "undo_deinstall" action is equal to the id of inventory, whose "invpool" isn't equal to "deinstall"

TYPE_INTERNAL
CODE_UNKNOWN
  • install

  • deinstall

  • undo_install

  • undo_deinstall

  • create

Oracle Field Service is unable to process the message due to an unexpected change of the system's state