Validation Error Messages for Invalid Values
All of the following error messages are preceded by: Custom GL Lines Plugin error due to a failed validation of script output:
Error Message |
Cause |
Preferred Action |
---|---|---|
Custom segment {script ID of custom segment} is invalid. Possible causes:
|
The custom segment is invalid. The error message lists all the possible causes. |
Ensure that the custom segment exists, and verify the settings listed in the error message. For more information, see the following topics. |
Transaction subsidiary {subsidiary id} is not valid for entity {entity id}. Please choose a different entity. |
You entered an entity ID on the custom GL line that's not valid for the subsidiary of the transaction. |
Ensure that the entity specified in setEntityId(entityId) is valid for the subsidiary of the transaction. Ensure that the entity specified in setEntityId(entityId) is valid for the subsidiary of the transaction. Multi-subsidiary customers are supported. For more information, see Enable the Multi-Subsidiary Customer Feature. |
Transaction subsidiary {subsidiary} is not valid for location {location}. Please choose a different location. |
You specified a location on the custom GL line that's not valid for the subsidiary of the transaction. |
Specify a location in setLocationId(locationId) that's valid for the subsidiary. |
Transaction subsidiary {subsidiary} is not valid for department {department}. Please choose a different department. |
You specified a department that's not valid for the subsidiary. |
Specify a department in setDepartmentId(departmentId) that's valid for the subsidiary. |
Transaction subsidiary {subsidiary} is not valid for class {class}. Please choose a different class. |
You specified a class that's not valid for the subsidiary. |
Specify a class in setClassId(classId) that's valid for the subsidiary. |
Transaction subsidiary {subsidiary} is not valid for account {account}. Please choose a different account. |
You specified an account that's not valid for the subsidiary. |
Specify an account in setAccountId(accountId) that's valid for the subsidiary. |
Invalid custom segment value {value id} for segment {segment id}. Custom segment value does not exist or is inactive. |
You specified a custom segment value that doesn't exist or is inactive. |
Use a valid value ID for the custom segment. |
The role restrictions for {type of segment} prevent the use of {segment}. |
You specified a class, department, or location that has role restrictions. |
Specify a class in setClassId(classId), department in setDepartmentId(departmentId), or location in setLocationId(locationId) that doesn't have role restrictions. |
Account {account} cannot be used because your role restrictions are incompatible with the account's segment restriction. |
You specified an account with segment restrictions that are incompatible with your role restrictions. |
Specify an account in setAccountId(accountId) that has segment restrictions compatible with your role. |
Entity {entity} cannot be used because your role's segment or employee restrictions are incompatible with the entity being used. |
You specified an entity with segment restrictions that are incompatible with your role's segment or employee restrictions. |
Specify an entity in setEntityId(entityId) that's compatible with your role's segment or employee restrictions. |