Stream: implementers
Topic: Resource not found error
Brian Reinhold (Jan 29 2020 at 14:00):
If I upload a transaction Bundle and there is a resource that references a resource that is SUPPOSED to exist on the server (but does not - perhaps deleted out of band) what can I consistently expect as a response so that I KNOW that it is a referenced resource not found error? Can I rely on an OperationsOutcome resource?
I am not quite sure how to read the levels in the IssueType codes. Does level 0 mean that is the coarse overview for all the codes with level 1 under it? Does level 2 mean a subset of a level 1 code? What would I expect for a resource not found error?
Could it be 'processing' (level 0)
or
'not-found' (level 1 under processing)
or
'deleted' (level 2 under 'not-found'?
Lloyd McKenzie (Jan 29 2020 at 16:22):
Systems aren't required to check that references resolved when processing a transaction if the reference isn't to something within the Bundle. If it did fail, you can't necessarily count on a consistent error code. Different software may detect the issue in different ways. For some, it may trigger an internal null-pointer error or some other internal failure that may be completely unclear as to cause. Ideally, the error could SHOULD be not-found or deleted. But it might be business-rule, exception, processing, transient or maybe something else.
Julian David Rath (Mar 23 2020 at 13:16):
Brian Reinhold said:
If I upload a transaction Bundle and there is a resource that references a resource that is SUPPOSED to exist on the server (but does not - perhaps deleted out of band) what can I consistently expect as a response so that I KNOW that it is a referenced resource not found error? Can I rely on an OperationsOutcome resource?
I am not quite sure how to read the levels in the IssueType codes. Does level 0 mean that is the coarse overview for all the codes with level 1 under it? Does level 2 mean a subset of a level 1 code? What would I expect for a resource not found error?
Could it be 'processing' (level 0)
or
'not-found' (level 1 under processing)
or
'deleted' (level 2 under 'not-found'?
Do you have an answer for this?
Lloyd McKenzie (Mar 23 2020 at 13:42):
Systems are free to indicate that something has been deleted, but don't have to
Last updated: Apr 12 2022 at 19:14 UTC