Attachment upload: issue comes from client core 14.6.0

When i upgrade to ext6 contains client core 14.6.0, i try to upload attachment during process of creating a contract but nothing showed in the document table after uploading. ( checked around and see version affects is client 14.6.0), but the saga and api upload seems to be working . Do you have any idea ?


image

Hello cvle,
I tried to recreate what you described with client-core: 14.6.0 but I was presented with the intended behavior.
From the screenshot you provided it seems you’re using attachments in embedded mode and the size of the document is appropriate, but I cannot really say why the content is missing. Do you happen to have data-services logs?, it might give us an insight to what might be happening.

Hi @daniel-bright-delta , there is no data-services logs. One thing i could find different between 14.5.2 and 14.6.0 is change document does not contains any attachments you can see in the pictures attached


Hi @chien-calm-dune, thank you for providing more details.
The reason, that the document does not contain any attachments after the upgrade might be related with the Data Services, because Data Services backend handles the attachments.
That’s the reason, why it would be beneficial to see the log of you backend (provided by the Data Services component).

Another additional information might help to investigate the issue:

  • What is your Data Services version?
  • What are the messages in the Network and/or Console tab of your browser’s Developer tools (F12) at the moment you try to upload attachment?

Hi @peter-sheer-arch , my dataservices version is 36.3.7 (all versions in ext6) and there is no logs in backend, console logs and network shows API correctly


Hi @chien-calm-dune,
I was not able to reproduce the error in my setup. Could you please provide your models, so I can try to reproduce and debug?

Hi @peter-sheer-arch , you can take models from this discourse.geta12.com/t/cannot-create-update-client-within-contract-form-after-client-core-14-5-1/2125

Hi @peter-sheer-arch and @daniel-bright-delta , please note that i investigated and see version affects this issue is client 14.6.0, old version still works fine. We also have one custom saga for uploading attachment

Hi @chien-calm-dune,

I tried to reproduce with the models in the linked topic and I got (some) data for the uploaded files:

I used these versions:

 "dependencies": {
    "@com.mgmtp.a12.base/base-model-api": "27.1.0",
    "@com.mgmtp.a12.client/client-core": "14.6.0",
    "@com.mgmtp.a12.dataservices/dataservices-access": "36.3.7",
    "@com.mgmtp.a12.formengine/formengine-core": "36.7.1",
    "@com.mgmtp.a12.kernel/kernel-core-runtime-api-ts": "28.5.1",
    "@com.mgmtp.a12.kernel/kernel-md-facade": "28.5.1",
    "@com.mgmtp.a12.overviewengine/overviewengine-core": "36.5.1",
    "@com.mgmtp.a12.uaa/uaa-authentication-client": "7.5.1",
    "@com.mgmtp.a12.utils/utils-connector": "6.0.6",
    "@com.mgmtp.a12.utils/utils-localization": "5.7.0",
    "@com.mgmtp.a12.utils/utils-localization-react": "5.7.0",
    "@com.mgmtp.a12.utils/utils-logging": "5.8.1",
    "@com.mgmtp.a12.widgets/widgets-core": "36.6.0",
    "@redux-devtools/extension": "3.2.2",
    ...

The only difference is, that there is no cdd usage in my case. Therefore, while it might be connected with the client version, it might be connected also with your custom saga and the logic you use.

I checked the latest changes in client and asked our colleague from the client team for help and for checking this Discourse topic.
Could you please provide your custom saga? It might help investigating the issue.

uploadSaga.txt (872 Bytes)
Hi @peter-sheer-arch , here is my custom saga

Hi.
This is unfortunately a bug introduced in client-core 14.6.0. The multi file upload feature doesn’t work anymore within a cdm based form.
As a workaround, the multi file upload feature could be deactivated on the repeat. The user would have to add a repeat row first for each attachment. Within the repeat row, the “attachment upload area” should work as usual.

Sorry for the inconvenience.

Greetings
Conrad

Hi @conrad-solid-stream , is there already bug ticket created ?, if yes please give me a ticket number, we can wait until it fixed, 14.5.2 still works well

The bug is now tracked with A12C-3067 in the internal A12 Jira.

Hi @chien-calm-dune, the task is done and the bug is fixed.

Please try with:
@com.mgmtp.a12.client/client-core”: “14.6.1”,

additionally you can update related:
@com.mgmtp.a12.formengine/formengine-core”: “36.7.2”

Hi @peter-sheer-arch , i did upgrade it on May 27 after the release date, everything worked well and need to update formengine to 36.7.2 together with 14.6.1 as well, if not then upload multi files won’t work.
Thanks for your update :slight_smile: