Can't pass image to a process.

I'm working on an app where user uploads an image and presses a button to "analyze" it, this starts a process which should take the image, and pass it to my outside API for analysis. I'm having a problem at the first step of the process since the process doesn't seem to see that any image was uploaded. I don't know how to explain this better so I'll attach couple of screenshots of my app/process, feel free to ask.

Like 2

Like

3 comments

Any help would be appreciated. 

Still didn't find a solution.

Hello,

From what you've shared, it looks like the process isn't retrieving the uploaded image as expected. To help pinpoint the issue, here are a few steps to take:
1. Turn on tracing for the business process. This will show whether the record ID and file attachment are actually being passed to the process at runtime.

2. Make sure that the RecordId used in the “Process file” element is the same ID as the one associated with the uploaded attachment. If you're triggering the process manually, double-check that the correct record is selected or passed in.

3. In your “Process file” element, you've selected HomeSection as the object. Confirm that the attachment was uploaded to this exact object. If the file was uploaded to a different object (e.g. another section or lookup), you’ll need to change the source object in the element configuration accordingly.

4. You can directly query the SysFile table (or the relevant attachment table) and check if the uploaded file is tied to the expected record ID and object schema.

Show all comments