SAP Knowledge Base Article - Public

3699175 - Fix SAP Signavio Process Manager API put: Read timed out

Symptom

  • Error message encountered: "Read timed out. If contacting support please provide UUID: 'xxxxxxxx_xxxx_xxxx_xxxx_xxxxxxxxxxxx'"
  • Issue occurs when attempting to update the attribute via the SPM-API interface within a Process Governance Workflow.

Environment

REST-API for SAP

Reproducing the Issue

  1. Update an attribute value using the SPM-API: put.
  2. Observe the error message: "Read timed out. If contacting support please provide UUID: 'xxxxxxxx_xxxx_xxxx_xxxx_xxxxxxxxxxxx'".

Cause

missing parameters in SPG JavaScript task code

Resolution

Refer to the example code below.

const spmClient = require('spm-client')
const propertyName = //'property-name'
const newAttributeValue = //'Updated value'

// function which is run against response to get request below
const setNewValue = (data) => {
  const model = data.model
  // set the new attribute value
  console.log(model.properties[propertyName])
  console.log(newAttributeValue)
  model.properties[propertyName] = newAttributeValue
  const form = {
    json_xml: JSON.stringify(model),
    parent: data.parent,
    name: data.name,
    // TODO: the comment is required, pick something that explains the revision was created automatically
    comment: 'Updating attribute from Process Governance'
  }
  return spmClient.put(`/p/model/${modelId}`, { form })
}
// get request which triggers above function
spmClient
  .get(`/p/editordata?id=${modelId}`, { json: true })
  .then(setNewValue)
  .then(() => {
    console.log('complete')
    // success = true
  })
  .catch(error => {
    console.log(error.message)
    // success = false
  })

See Also

Refer to: 3616742 - How to troubleshoot script task error: "Execution failed: Error occurred on execution. If contacting support, please provide UUID"

Keywords

spm api, put request, read timed out, revision attribute, process governance workflow, uuid error, sap rest-api, troubleshooting, script task error, execution failed, timeout error , KBA , BPI-SIG-CA-API , REST-API for SAP Signavio , How To

Product

Signavio Process Manager all versions