Facing issue while trying to deploy an XML process definition file to Reltio using robot framework

Hi Team,

I am trying to deploy an XML process definition file to Reltio. But its giving me an error saying extension of the file is not correct.

Below is the code:

*** Test Cases ***
DeployBPMN

   ${headers}  Create Dictionary  Authorization=${bearerToken}   EnvironmentURL=https://test-usg.reltio.com
   Log To Console   ${bearerToken}
   ${file}=  Get File For Streaming Upload  ./Resources/Upload/mergeRequestupdated1.bpmn20.xml
   Log To Console    ${file}
   ${body}=   Create Dictionary  tenantid=${tenantid}   file=${file}
   Log To Console    ${body}
   Create Session   mysession   ${LocalworkflowURL}
   ${response}=   POST On Session  mysession    /deployments  headers=${headers}  files=${body}  verify=false

Below are the steps that we are following for the above code.

  1. Getting the Authorization Token from Reltio.
  2. Getting the XML file from a local path.
  3. Creating a dictionary with key and value for file and tenantid.
  4. Using the dictionary as body of the post call.
  5. Making the post call with files and headers as parameter.

Below is the error that we are receiveing:

POST Response : url=http://localhost:8080/workflow-adapter/workflow/deployments
status=415, reason=
headers={‘Access-Control-Allow-Origin’: ‘*’, ‘Access-Control-Allow-Methods’: ‘GET,POST,PUT,DELETE,PATCH,OPTIONS,HEAD’, ‘Access-Control-Allow-Headers’: ‘Content-Type,Authorization,EnvironmentURL’, ‘Vary’: ‘accept-encoding,origin,access-control-request-headers,access-control-request-method,accept-encoding’, ‘X-Frame-Options’: ‘DENY’, ‘Expires’: ‘0’, ‘Pragma’: ‘no-cache’, ‘Cache-Control’: ‘no-cache, no-store, max-age=0, must-revalidate’, ‘X-XSS-Protection’: ‘1; mode=block’, ‘X-Content-Type-Options’: ‘nosniff’, ‘Content-Encoding’: ‘gzip’, ‘Content-Type’: ‘application/json’, ‘Transfer-Encoding’: ‘chunked’, ‘Date’: ‘Wed, 17 Aug 2022 15:11:54 GMT’, ‘Keep-Alive’: ‘timeout=60’, ‘Connection’: ‘keep-alive’}
body={“status”:“failed”,“error”:{“errorCode”:10002,“errorMessage”:“Invalid process definition file extension. Must be [.bpmn20.xml]”,“errorData”:{“exception”:“com.reltio.workflow.core.KeyedException: Invalid process definition file extension. Must be [.bpmn20.xml]”}}}