The “ant customize” command can be executed in the Hybris platform folder to override files from the OOTB (Out-Of-The-Box) SAP Commerce extensions with your custom files. This command recursively copies all files from the config/customize folder to the bin folder. It is typically used to provide patches over the standard SAP Commerce extensions in a way that can be easily integrated with your deployment process.
As this is a temporary bug in the SAP Commerce hAC extension that will be amended in future releases, a low-effort solution consists in copying the init.js file into the customize folder so that you can fix the code and override the OOTB file when running “ant customize”.
For that, first of all go to the customize folder (hybris/config/customize) and create the following folder structure: platform/ext/hac/web/webroot/static/js/platform/
Then copy the init.js file from the OOTB location (hybris/bin/platform/ext/hac/web/webroot/static/js/platform/init.js) into the newly created folder.
After that, edit the init.js file and change the following line from the renderProjectDataUI function…
Also, to have a fully correct file, change this line…
Finally, you are ready to run the “ant customize” command, start the server and check that the project data can be imported as expected. You might need to clear the browser cache to force the new js file to be downloaded.
Note that the suggested fix above is valid for development environments and on-premise or earlier Cloud version deployments where you have control over the build process, allowing you to execute the “ant customize” command.