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
- Update an attribute value using the SPM-API: put.
- 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 belowconst 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 functionspmClient .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
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
SAP Knowledge Base Article - Public