cancel
Showing results for 
Search instead for 
Did you mean: 

Content deployment for module fails: Upload application content failed

0 Kudos

I keep getting this error when I try to deploy my app in cf:

[Activity_Sampler_Service_Admin_ui_deployer] [ERROR] Upload application content failed { CODE: '1001' } validation error: Invalid file format. The request body must include a zip file that contains a zip file for each HTML5 application.

mtad.yaml:

- name: Activity_Sampler_Service_Admin_ui_deployer
type: com.sap.application.content
path: Activity_Sampler_Service_Admin_ui_deployer
requires:
- name: Activity_Sampler_Service_Admin_html_repo_host
parameters:
content-target: true

mta.yaml:

 - name: Activity_Sampler_Service_Admin_ui_deployer
type: com.sap.application.content
path: .
requires:
- name: Activity_Sampler_Service_Admin_Admin_html_repo_host
parameters:
content-target: true
build-parameters:
build-result: resources
requires:
- artifacts:
- ActivitySamplerServiceUI5-content.zip
name: ActivitySamplerServiceUI5
target-path: resources/

In the resources folder, there is a zip file with the corresponding name:

kepernyokep-2021-12-11-123900.jpg

Accepted Solutions (0)

Answers (2)

Answers (2)

rui_zhang1
Explorer

Hi, please check whether there is a hidden file such as ".DS_store" in the ui5 app folder and resource folder, if yes, please delete the hidden file and retry.

daniellelyle
Participant
0 Kudos

I realize this is an old question, but I wanted to say I've come across this multiple times and this comment is the solution that works for me. I just delete the entire resources folder and build again. Thanks!

Kedves Attila!

I have a similar problem. Did you solve it?

Regards,

Miklos