Update LTL weights in Jdbc from CSV file
Document/FileMarketingdatabaseRecipe ToolsDeveloper Tool
What it does
When someone drops a CSV file with order numbers and updated weights into an on-prem folder, this automation reads each row and pulls the matching bill detail from Jdbc. It inserts the weight as a trace record for downstream processing.
Who it's for
Accounting teams who process weight updates for less-than-truckload orders from a CSV file.
How teams use this
Process weight updates from Unyson
Drop a CSV with order numbers and weights into the folder each time Unyson exports an update. The automation finds each bill in Jdbc and inserts the new weight as a trace record without manual steps.
Route errors to the right team
When a bill number on the CSV does not match a record in Jdbc, the automation sends an email alert so the accounting team can investigate the mismatch before the weight is processed downstream.
Add a second database check
Extend this automation to query a second Jdbc source or filter rows by a status field before inserting the trace record. Only rows that pass both checks will move forward.
Log all processed weights
Set up a second flow to archive each processed row to a log table so the accounting team has a complete audit trail of which weights were updated and when.
How it works
- Pick a CSV file from the folder. When a new CSV file lands in the designated on-prem folder, this automation picks it up and reads each row with an order number and updated weight.
- Find the bill detail in Jdbc. For each row in the CSV, search Jdbc using the bill number to pull the matching detail line ID from the database.
- Insert weight as trace record. Call the Trace insert flow to add the updated weight as a trace number so downstream processing can pick it up and continue.
- Notify on error. If any row fails to process, this automation sends an email through SendGrid so the accounting team knows which orders need attention.