Issue Downloading PNG and JPEG Files from Teamcenter in Mendix

0
Hi everyone, I’m encountering an issue while working with image files in Mendix. When I attach PNG or JPEG files to an ItemRevision in Teamcenter and try to fetch them in Mendix, I am unable to download them. Mendix recognizes these files as images, so it only displays them as attached to the ItemRevision, unable to download. I using Teamcenter connector with Mendix version 10.2.0 Has anyone else experienced this issue or have any suggestions on how to resolve it? Any advice on how to ensure these image files can be downloaded in addition to being displayed would be greatly appreciated. Thanks in advance!
asked
4 answers
1

The images are held in Datasets which are related to the ItemRevision in Teamcenter

The process you should go through is:

1. Find the ItemRevision

2. Get the Datasets by expanding the correct relation from the ItemRevision

3. Use the Download activity in the Connector to get the image files

I'm not sure how much of this you have done based on the info in your question

answered
1

I think the error may be coming from the operation mapping for the Teamcenter service call. You have probably copied this directly from the sample app, but you need to modify it to refer to your module names rather than TcConnectorSample.

Also, this is not the best way to do it. There is a "Expand GRM Relations for Primary" activity in the Teamcenter Toolbox which does it for you

answered
0

Yes Collin,

I have replicated the getAttachments microflow from Sample Teamcenter App.

image.pngthis  is downloadFile microflow 

image.pngimage.pngonce i click on attachments, application is giving error as follows:

image.png

answered
0

It helped a lot Thank you sir, 

with help of Teamcenter Sample toolbox kit i have solved the error and updated the microflow.

image.png

answered