Hi There,
Im trying to setup a flow where I check for new emails in a folder and extract information from the attached pdf.
When running, I recieve “The operation failed with an error. [400]” during the “Download an attachement”, see below
Any ideas on how to solve? Ive tried mulitple pdfs whitout success.
//Jonatan
Hey Jonathan,
It almost always means there’s a mapping issue between the trigger and the action. I am no scenario expert, but you might need to use an Iterator right after the “Watch Messages” module to process each attachment individually, where you’d map the Attachment ID from the iterator into the download module. I’ll let others chime in here.
Once you solve the download issue, I see your next step is sending the PDF content to OpenAI. This is where things can get tricky again. While it’s a great approach for summarization, you might find it challenging to get consistently structured data (like clean JSON with the exact fields you need every single time). Generic LLMs are powerful, but they aren’t purpose-built for reliable data extraction and can sometimes hallucinate or change their output format.
This is actually the specific problem we solve at Cambrion. We provide an agentic AI platform that’s designed specifically for pulling structured, validated data from any document.
Instead of writing complex prompts for a generic LLM, you would:
-
Upload a sample PDF.
-
Use our simple UI to define the exact data fields you want to extract once.
-
Our agentic pipeline then extracts that data reliably and provides it via a clean API call you can plug right into your Make scenario.
It’s built from the ground up for reliability and accuracy in extraction workflows, which saves a ton of time.
Welcome to the Make community!
You’ll need to get all the attachment IDs first before you are able to download them with the Attachment ID.
To do this, you can try using the Microsoft 365 Email (Outlook) “List Attachments” module —
Retrieves a list of attachment to a message.
e.g.:

For more information about the List Attachments module and Microsoft 365 Email (Outlook) app, see the corresponding Integrations page and the Help Centre documentation.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!