IBM Support

Error 302 when uploading attachments from Maximo Anywhere

Troubleshooting


Problem

Uploading attachments to the Maximo server,  using Maximo Anywhere, fail with HTTP error 302.
The same error can occur when you download an attachment from the Maximo server,  using Maximo Anywhere.

Symptom

The following error is displayed in the device log, once you set the Anywhere application to debug:
[ERROR] 2020-10-26 10:52:11.805 [ATTACHMENTSERVICE]: uploadFileAsPromise error: json: {"code":3,"source":"file:///var/mobile/Containers/Data/Application/8D610903-F7FE-493B-BDEF-8570BA8BD739/Documents/anywhere/ivan.krystev/Work%20Execution/workOrder_WO1001627/cdv_photo_002.jpg","target":"http://chemaximo01.dpm.domain/MaximoAnywhere/anywhereAttachment","http_status":302,"body":null,"exception":null}, [ERROR] 2020-10-26 10:52:11.808 [DOPUSH] Business Error returned from the server. Error: Error: [{"oslc:extendedError":{},"oslc:message":"Upload failed - HTTP: 302. Contact your administrator.","oslc:statusCode":1,"spi:reasonCode":1}],

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSPJLC","label":"Maximo Anywhere"},"ARM Category":[{"code":"a8m50000000CbEKAA0","label":"Mobile-\u003EMaximo Anywhere"}],"ARM Case Number":"TS004307125","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.6.2;7.6.3"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
04 December 2020

UID

ibm16378324