mirror of
https://github.com/finmars-platform/finmars-core.git
synced 2026-04-26 06:35:59 +03:00
[GH-ISSUE #184] Import Scheme rule "If object is not found" = "Treat as Error" is ignored (PriceHistory import) #95
Labels
No labels
BackEnd
FrontEnd
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/finmars-core#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sergeiosipov on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/finmars-platform/finmars-core/issues/184
Originally assigned to: @paktusov on GitHub.
Bug: Import Scheme rule "If object is not found" = Treat as Error is ignored (PriceHistory import)
Summary
In Simple Entity Import Scheme Manager (v2), setting Import Rules → If object is not found = Treat as Error does not prevent booking.
When an object referenced by an input field is missing (e.g., Pricing Policy), the import still succeeds and the item is booked using a default value.
You can see the setting in

com.finmars.standard-import-from-file:instruments.pricehistory:prices_prc:Environment
com.finmars.standard-import-from-file:instruments.pricehistory:prices_prcSteps to Reproduce
Price HistorySTD - PRC
Actual Result
"com.finmars.standard-pricing:doesnt_exist"is not foundpricing_policyis removed fromfinal_inputsNone Relation model error: KeyError('pricing_policy')status: "success"Example response:
Expected Result
"com.finmars.standard-pricing:doesnt_exist"is not foundpricing_policyis removed fromfinal_inputsstatus: "error"Notes
It appears that when a referenced relation is not found:
final_inputsThe "Treat as Error" rule does not escalate the failure to an error status and does not stop booking.
@falendary commented on GitHub (Feb 18, 2026):
I assume error somewhere here
https://github.com/finmars-platform/finmars-core/blob/main/poms/csv_import/handlers.py#L1602
@paktusov
@sergeiosipov commented on GitHub (Feb 24, 2026):
Tested, seems like price history import is working how it was intended now.
@sergeiosipov commented on GitHub (Feb 24, 2026):
Tested, seems like currency history import is working how it was intended as well.
@sergeiosipov commented on GitHub (Feb 24, 2026):
Have enough evidence to consider the issue to be closed.