How Can We Help?
Activity Synchronisation Error "One and Only One of the Fields Must Contain a Value"Activity Synchronisation Error "One and Only One of the Fields Must Contain a Value"
What
While running the Activity synchronisation you get the below error based on the XML you are using.
Job log
Creating Activity with external id pres-21346
        INFO: Creating new Talk
        WARN: Wrong Activity degree of recognition classification 'State'. Please find available classifications in the Activity degree of recognition scheme. Classifications are case sensitive.
        ERROR: Got non controlled exception creating content
        ----------------- Validation error -----------------
        External organization is part of an either–or group, where one and only one of the fields must contain a value
        Organization is part of an either–or group, where one and only one of the fields must contain a value
        Event is part of an either–or group, where one and only one of the fields must contain a value
        Exception details
        Validation of content 'Talk(id=<null>, title=Racial attitudes on a Midwestern college campus)' failed:
        Validation errors:
        externalOrganisation: ValidationResult [code=validation.text.definedEitherOr, args=null, nestedProperty=null, value=null], propertyPath: externalOrganisation
        organisation: ValidationResult [code=validation.text.definedEitherOr, args=null, nestedProperty=null, value=null], propertyPath: organisation
        event: ValidationResult [code=validation.text.definedEitherOr, args=null, nestedProperty=null, value=null], propertyPath: event
        Why
- This error occurs because the content in the XML contains several relations to either an External organisation, Organisation and/or Event.
 - The type "Talk" is only allowed to have one relation to either an External organisation or Organisation or Event.
- You solve this by changing the content in the XML to only have one relation to either an External organisation, Organisation or Event and all other fields are left empty.
 
 
More information
Note: Some of this information is for internal use only and might not be accessible.
Published at October 25, 2023
