In ConnectAll Universal adapter populating the mapped fields with null values when the attribute isn't available in the payload
search cancel

In ConnectAll Universal adapter populating the mapped fields with null values when the attribute isn't available in the payload

book

Article ID: 379902

calendar_today

Updated On:

Products

ConnectAll On-Prem ConnectAll SaaS

Issue/Introduction

Steps to Reproduce

 

  • Create an automation between Jenkins and Insights adapters

  • Synchronize a Build creation from Jenkins to Insights adapter. (Alternatively post the below payload from postman)

{

"appLinkName": "TestAutomation",

"fields": {

"TimeCreated": "2024-08-29T02:40:02z",

"MainRevision": "",

"Component": "connectall",

"Id": "139"

}

}

  • Using Universal adapter for Jenkins try to push the Build/Commit information from Jenkins
  • Send an update from Jenkins to publish the TimeDeployed and the Build Result (Alternatively post the below paylod from postman)

{

"appLinkName": "TestAutomation",

"fields": {

"IsSuccessful": "SUCCESS",

"TimeDeployed": "2024-08-29T02:06:36Z",

"Id": "139"

}

}

 

Expected

Update the existing Deploy with just the Result and TimeDeployed

Actual

Sync fails with [Constraint violoation]; as the Insights adapter is trying to remove the Component association from the Deploy and clear the TimeCreated attribute. 

Environment

3.X

Cause

DE153296

Resolution

Fix will be delivered in v3.5.0.2