Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR API > The Object Model

Return Values

Scroll Prev Top Next More

Below is a list of error code return values used by scripts.

 

 

Common

These are common error codes used in both products. Error codes specific to QPR Metrics and QPR Modeling Client script functions are listed below in their respective sections. The values used in functions are listed in the function descriptions under the Object Model topic.

 RV_SUCCESS = 0

 RV_UNKNOWN_ERROR = 1

 RV_INVALID_PARAMETER = 2

 RV_APPLICATION_QUIT_CALLED = 3

 RV_INVALID_SCRIPT_FILE = 4

 RV_CANNOT_OPEN_ANOTHER_SCRIPT_FILE_FROM_SCRIPT = 5

 RV_CANNOT_CONNECT_TO_SERVER = 6

 RV_CANNOT_OPEN_FILE = 7

 RV_CANNOT_READ_FROM_FILE = 8

 RV_UNSUPPORTED_FILE_VERSION = 9

 RV_UNSUPPORTED_FILE_TYPE = 10

 RV_CANNOT_WRITE_TO_FILE = 11

 RV_MODEL_DOES_NOT_EXIST = 12

 RV_NO_RIGHTS_TO_MODEL = 13

 RV_CANNOT_OPEN_MODEL = 14

 RV_CANNOT_CLOSE_MODEL = 15

 RV_CANNOT_SAVE_MODEL = 16

 RV_INVALID_MODEL_PATH = 17

 RV_NOT_CONNECTED_TO_SERVER = 18

 RV_NOT_AUTHENTICATED = 19

 RV_LOGIN_FAILED = 20

 RV_MODEL_NOT_OPEN = 21

 RV_CANCELLED = 22

 RV_NOT_CONNECTED_TO_DB = 23

 RV_CANNOT_COPY_TO_CLIPBOARD = 24

 RV_USER_NOT_FOUND = 25

 RV_INVALID_CONNECTION = 26

 RV_GROUP_NOT_FOUND = 27

 RV_PARAMETER_MISSING = 28

 RV_ASSOCIATION_NOT_FOUND = 29

 RV_PROPERTY_NOT_FOUND = 30

 RV_UNSUPPORTED_OPERATION = 31

 RV_ACCESS_DENIED = 32

 RV_IWA_NOT_IN_USE = 33

 RV_FILE_ALREADY_EXISTS = 34

 RV_INVALID_IDENTIFIER = 35

 RV_SERVER_CONNECTION_BROKEN = 36

 RV_NO_LICENSE_TO_CONNECT_TO_SERVER = 37

 RV_INVALID_SYMBOL = 38

 

 

QPR Modeling Client

 RV_CANNOT_OVERWRITE_READ_ONLY_MODEL = 1000

 RV_CANNOT_RESERVE_MODEL = 1001

 RV_MODEL_IS_RESERVED = 1002

 RV_ERROR_IN_MODEL = 1003

 RV_ERROR_DURING_SAVE = 1004

 RV_FAILED_LOADING_EMBEDDED_DOCUMENTS_FROM_SERVER = 1005

 RV_CANNOT_DISCONNECT_FROM_SERVER = 1006

 RV_INVALID_XML_SETTINGS_FILE = 1007

 RV_INVALID_IMPORT_MODE = 1008

 RV_EXECUTING_XML_TASK_FAILED = 1009

 RV_ONLY_ADMINISTRATOR_CAN_SAVE_SERVER_MODEL_AS_FILE_MODEL = 1010

 RV_ONLY_ADMINISTRATOR_CAN_EXECUTE_XML_TASKS = 1011

 RV_VERSION_CHANGED = 1012

 RV_ONLY_ADMINISTRATORS_CAN_OVERWRITE_SERVER_MODELS = 1013

 RV_ELEMENT_NOT_FOUND = 1014

 RV_ELEMENT_IS_NOT_SUBPROCESS = 1015

 RV_CUSTOM_ATTRIBUTE_NOT_FOUND = 1016

 RV_INVALID_CUSTOM_ATTRIBUTE_TYPE = 1017

 RV_ELEMENT_NAME_NOT_UNIQUE = 1018

 RV_NO_ACTIVE_PROCESS_LEVEL = 1019

 RV_NO_ACTIVE_ELEMENT = 1020

 RV_ONLY_ADMINISTRATORS_CAN_REPLACE_SERVER_MODELS = 1021

 RV_ONLY_ADMINISTRATORS_CAN_CREATE_AND_MODIFY_FOLDERS = 1022

 RV_FOLDER_DOES_NOT_EXIST = 1023

 RV_INVALID_MODEL_FOLDER_NAME = 1024

 RV_MODEL_FOLDER_TEMPLATE_ALREADY_EXISTS = 1025

 RV_INVALID_CUSTOM_ATTRIBUTE_NAME = 1026

 RV_MODEL_DOES_NOT_USE_MULTILINGUAL_MODELING = 1027

 RV_LANGUAGEID_NOT_FOUND = 1028

 RV_MODEL_IS_NOT_SERVER_MODEL = 1029

 RV_MODEL_DOES_NOT_USE_BASE_MODEL = 1030

 RV_MODEL_HAS_TO_BE_OPEN_FOR_EXCLUSIVE_EDITING = 1031

 RV_INVALID_ATTRIBUTE_VALUE = 1032

 RV_NOT_ENOUGH_RIGHTS = 1033

 RV_INSTANCE_NOT_FOUND = 1034

 RV_SUBPROCESS_NOT_FOUND = 1035

 RV_ELEMENT_TYPE_NOT_FOUND = 1036

 RV_NO_DATA_FOUND = 1037

 RV_CANNOT_SET_RIGHTS_FOR_ADMINISTRATORS = 1038

 RV_CANNOT_SET_RIGHTS_LOWER_OR_SAME_THAN_INHERITED_RIGHTS = 1039

 RV_CANNOT_CREATE_ELEMENT = 1040

 RV_CANNOT_SET_PROPERTY = 1041

 RV_NO_ACTIVE_VIEW_SETTINGS = 1042

 RV_INVALID_VIEW_SETTINGS = 1043

 RV_MODEL_HAS_BRANCHES_OR_MULTIPLE_MODEL_VERSIONS = 1044

 RV_CAN_SET_PROPERTY_ONLY_TO_LATEST_MODEL_VERSION = 1045

 RV_CANNOT_SET_PROPERTY_TO_CHECKED_OUT_MODEL = 1046

 RV_CANNOT_CREATE_BRANCH_MODEL_MUST_BE_SAVED_FIRST = 1047

 RV_CANNOT_CREATE_BRANCH_TO_CHECKED_OUT_MODEL = 1048

 RV_MODEL_DOES_NOT_USE_VERSION_MANAGEMENT = 1049

 RV_BRANCH_DOES_NOT_EXIST = 1050

 RV_CANNOT_SAVE_AS_NEW_VERSION_MODEL_MUST_BE_SAVED_FIRST = 1051

 RV_CANNOT_SAVE_CHECKED_OUT_MODEL_AS_NEW_VERSION = 1052

 RV_ITEM_IS_NOT_MODEL = 1053

 RV_ITEM_IS_NOT_TEMPLATE = 1054

 RV_ITEM_IS_NOT_BRANCH = 1055

 RV_ITEM_IS_NOT_FOLDER = 1056

 RV_FOLDER_IS_NOT_EMPTY = 1057

 RV_CANNOT_DELETE_CHECKED_OUT_MODEL = 1058

 RV_CANNOT_DELETE_RESERVED_MODEL = 1059

 RV_CANNOT_DELETE_BASE_MODEL_WITH_CHILD_MODELS = 1060

 RV_CANNOT_DELETE_DEFAULT_TEMPLATE = 1061

 RV_CANNOT_DELETE_LAST_MODEL_VERSION_FROM_ROOT = 1062

 RV_NO_LICENSE_FOR_MODEL = 1063

 RV_MODEL_IS_LOCKED = 1064

 RV__MODEL_CANNOT_BE_OPENED_WITH_CURRENT_EDITION = 1065

 RV_READ_ONLY_TYPES_CANNOT_MODIFY = 1066

 RV_CANNOT_IMPORT_TO_CHECKED_OUT_BASE_MODEL = 1067

 RV_ELEMENT_OF_ANOTHER_TYPE_WITH_SAME_SYMBOL_EXISTS = 1068

 RV_HIERARCHY_NOT_FOUND = 1069

 RV_COULD_NOT_IMPORT_MODEL_LICENSES = 1070

 RV_FUNCTION_CANNOT_BE_USED_IN_VALIDATION_SCRIPT = 1071

 RV_CANNOT_REPLACE_ELEMENT = 1072

 RV_CANNOT_REPLACE_ELEMENT_WITH_DIFFERENT_TYPE = 1073

 RV_CANNOT_REPLACE_SUBPROCESS = 1074

 RV_CANNOT_REPLACE_WITH_SUBPROCESS = 1075

 RV_CANNOT_DELETE_BASE_MODEL_ELEMENT = 1076

 RV_CANNOT_IMPORT_FROM_DEMO_MODEL = 1077

 RV_CANNOT_ADD_TO_CUSTOM_HIERARCHY = 1078

 RV_CANNOT_MODIFY_HIERARCHY = 1079

 RV_INCORRECT_ELEMENT_TYPE = 1080

 RV_INCORRECT_FROM_TO_ELEMENT = 1081

 RV_INVALID_FROM_TO_ELEMENT = 1082

 

QPR Metrics

 RV_INVALID_NAME = 2000

 RV_NO_RIGHTS = 2001

 RV_INVALID_PORT_NUMBER = 2002

 RV_CANNOT_SAVE_SERVERADDRESS = 2003

 RV_INVALID_FILE_FORMAT = 2004

 RV_PERIOD_SYSTEMS_DIFFER = 2005

 RV_OTHER_USERS_CONNECTED = 2006

 RV_CANNOT_LOCK_MODEL = 2007

 RV_NAME_IS_RESERVED = 2008

 RV_TYPE_NOT_FOUND = 2009

 RV_NO_ELEMENTS_FOUND = 2010

 RV_OBJECT_NOT_FOUND = 2011

 RV_NO_RIGHTS_FOUND = 2012

 RV_NO_DATA = 2013

 RV_INVALID_SERIES_IDENTIFIER = 2014

 RV_INVALID_ELEMENT_TYPE = 2015

 RV_INVALID_PERIOD = 2016

 RV_COULD_NOT_START_TRANSACTION = 2017

 RV_INVALID_ACCESSLEVEL = 2019

 RV_MODEL_IS_LOCKED = 2020

 RV_CANNOT_SET_PARENT_SCORECARD = 2021

 RV_INVALID_IDENTIFIER = 2022

 RV_IDENTIFIER_IS_RESERVED = 2023

 RV_SCORECARD_NOT_FOUND = 2024

 RV_PARENT_NOT_FOUND = 2025

 RV_CANNOT_SET_ELEMENT_TYPE = 2026

 RV_ELEMENT_NOT_FOUND = 2027

 RV_CANNOT_COPY_TOPELEMENT = 2028

 RV_CANNOT_COPY_REFERENCE = 2029

 RV_CANNOT_SET_INPUT_TYPE = 2030

 RV_LOOP_IN_FORMULA = 2031

 RV_OBJECT_IS_LOCKED = 2032

 RV_PROPERTY_NOT_SUPPORTED = 2033

 RV_PROPERTY_CANNOT_BE_UPDATED = 2034

 RV_PERIOD_NOT_FOUND = 2035

 RV_INVALID_DATE = 2036

 RV_SERIES_NOT_FOUND = 2037

 RV_SERIES_DOES_NOT_HAVE_FORMULA = 2038

 RV_TOO_LONG_STRING = 2039

 RV_NO_TREND = 2040

 RV_NO_TREND_IMAGE = 2041

 RV_TASK_FAILED = 2042

 RV_INVALID_OBJECT_TYPE = 2043

 RV_CANNOT_SET_NAME = 2044

 RV_INVALID_USERID = 2045

 RV_CANNOT_SET_OWNER = 2046

 RV_CANNOT_SET_SCORECARD = 2047

 RV_LOCKED_PERIODS_SKIPPED = 2048