Skip to content

Entity not found when adding the type in PATCH requests #1803

@ravaga

Description

@ravaga

I have deployed a simple insance of Orion-LD (with these arguments: -mongocOnly -brokerId test -forwarding -wip entityMaps -t 0-255 -logLevel DEBUG -disableFileLog -noArrayReduction) and then I have created a simple entity in Orion-LD:

{
    "id": "urn:ngsi-ld:test:1",
    "type": "T",
    "attr1": {
        "type": "Property",
        "value": 2532
    },
    "attr2": {
        "type": "Property",
        "value": "amazing!!"
    }
}

I can retrieve it through GET /entities/urn:ngsi-ld:test:1?type=T (adding the type) and also through GET /entities/urn:ngsi-ld:test:1?type=T&local=true

But when I try to update it through a PATCH/entities/urn:ngsi-ld:test:1?type=T request while adding the entity type, it returns a 404 with this body:

{
    "type": "https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound",
    "title": "Entity not found",
    "detail": "urn:ngsi-ld:test:1"
}

These are the logs:

time=2025-06-26T11:59:50.103Z | lvl=TMP | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[1098]:mhdConnectionInit | msg=------------------------- Servicing NGSI-LD request 004: PATCH /ngsi-ld/v1/entities/urn:ngsi-ld:test:1 --------------------------
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[541]:orionldUriArgumentGet | msg=Got a URI param 'type': 'T'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Host': '192.168.250.217:1026'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'X-API-Key': 'M1ss10n_'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Content-Type': 'application/json'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'User-Agent': 'PostmanRuntime/7.44.1'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Accept': '*/*'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Cache-Control': 'no-cache'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Postman-Token': '14876546-0d22-4314-9383-bcf5ff15fd07'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Accept-Encoding': 'gzip, deflate, br'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'X-Forwarded-For': '158.42.46.141'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'X-Forwarded-Host': 'mission-orion.satrd-cpd1.imm.upv.es'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'X-Forwarded-Server': 'mission-orion.satrd-cpd1.imm.upv.es'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Content-Length': '50'
time=2025-06-26T11:59:50.103Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Connection': 'Keep-Alive'
time=2025-06-26T11:59:50.104Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1416]:mhdConnectionTreat | msg=orionldState.contextP at 0xc5f3c0
time=2025-06-26T11:59:50.104Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1417]:mhdConnectionTreat | msg=Core Context at          0xc5f3c0
time=2025-06-26T11:59:50.104Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1427]:mhdConnectionTreat | msg=No default user context, using only the core context
time=2025-06-26T11:59:50.104Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1432]:mhdConnectionTreat | msg=orionldState.contextP: 'https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.8.jsonld'
time=2025-06-26T11:59:50.106Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1433]:mhdConnectionTreat | msg=-------------------------------------------
time=2025-06-26T11:59:50.106Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldContextItemExpand.cpp[113]:orionldContextItemExpand | msg=Vocab-Expanded 'T' to 'https://uri.etsi.org/ngsi-ld/default-context/T'
time=2025-06-26T11:59:50.106Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1463]:mhdConnectionTreat | msg=Request Payload Body: {"attr1":2532,"attr2":"amazing!!"}
time=2025-06-26T11:59:50.106Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=---------- Entity Lookup ----------
time=2025-06-26T11:59:50.106Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=  * Database Name:         'orion'
time=2025-06-26T11:59:50.107Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=  * Collection Name:       'entities'
time=2025-06-26T11:59:50.107Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=  * Filter:                '{ "_id.id" : "urn:ngsi-ld:test:1", "_id.type" : "T" }'
time=2025-06-26T11:59:50.107Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=  * Options:             '{ "projection" : { "attrNames" : true, "creDate" : true, "modDate" : true, "lastCorrelator" : true, "attrs" : true, "@datasets" : true } }'
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldContextItemExpand.cpp[113]:orionldContextItemExpand | msg=Vocab-Expanded 'attr1' to 'https://uri.etsi.org/ngsi-ld/default-context/attr1'
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=pCheckAttribute.cpp[248]:pCheckTypeFromContext | msg=Attribute: 'https://uri.etsi.org/ngsi-ld/default-context/attr1' - arrayReduction: false, type 'Int'
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldContextItemExpand.cpp[113]:orionldContextItemExpand | msg=Vocab-Expanded 'attr2' to 'https://uri.etsi.org/ngsi-ld/default-context/attr2'
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=pCheckAttribute.cpp[248]:pCheckTypeFromContext | msg=Attribute: 'https://uri.etsi.org/ngsi-ld/default-context/attr2' - arrayReduction: false, type 'String'
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[120]:regMatchForEntityCreation | msg=Registration Mode: 1 (exclusive)
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[121]:regMatchForEntityCreation | msg=Operation:         17 (mergeEntity)
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[122]:regMatchForEntityCreation | msg=Entity ID:         urn:ngsi-ld:test:1
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[123]:regMatchForEntityCreation | msg=Entity Type:       T
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[120]:regMatchForEntityCreation | msg=Registration Mode: 2 (redirect)
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[121]:regMatchForEntityCreation | msg=Operation:         17 (mergeEntity)
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[122]:regMatchForEntityCreation | msg=Entity ID:         urn:ngsi-ld:test:1
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[123]:regMatchForEntityCreation | msg=Entity Type:       T
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[120]:regMatchForEntityCreation | msg=Registration Mode: 4 (inclusive)
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[121]:regMatchForEntityCreation | msg=Operation:         17 (mergeEntity)
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[122]:regMatchForEntityCreation | msg=Entity ID:         urn:ngsi-ld:test:1
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=regMatchForEntityCreation.cpp[123]:regMatchForEntityCreation | msg=Entity Type:       T
time=2025-06-26T11:59:50.112Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldPatchEntity2.cpp[761]:orionldPatchEntity2 | msg=***** ERROR: Entity not found: urn:ngsi-ld:test:1 (status: 404)
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdReply.cpp[77]:mhdReply | msg=Response Body: '{"type":"https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound","title":"Entity not found","detail":"urn:ngsi-ld:test:1"}'
time=2025-06-26T11:59:50.112Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdReply.cpp[78]:mhdReply | msg=Response Code:  404

If I also add the local=true parameter, it also returns a 404 but with this body:

{
    "type": "https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound",
    "title": "Entity does not exist",
    "detail": "urn:ngsi-ld:test:1"
}

These are the logs:

time=2025-06-26T12:00:08.282Z | lvl=TMP | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[1098]:mhdConnectionInit | msg=------------------------- Servicing NGSI-LD request 005: PATCH /ngsi-ld/v1/entities/urn:ngsi-ld:test:1 --------------------------
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[541]:orionldUriArgumentGet | msg=Got a URI param 'type': 'T'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[541]:orionldUriArgumentGet | msg=Got a URI param 'local': 'true'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Host': '192.168.250.217:1026'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'X-API-Key': 'M1ss10n_'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Content-Type': 'application/json'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'User-Agent': 'PostmanRuntime/7.44.1'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Accept': '*/*'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Cache-Control': 'no-cache'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Postman-Token': '825aca6f-8adf-4e9a-8863-9041bf7cc25b'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Accept-Encoding': 'gzip, deflate, br'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'X-Forwarded-For': '158.42.46.141'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'X-Forwarded-Host': 'mission-orion.satrd-cpd1.imm.upv.es'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'X-Forwarded-Server': 'mission-orion.satrd-cpd1.imm.upv.es'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Content-Length': '50'
time=2025-06-26T12:00:08.282Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionInit.cpp[350]:orionldHttpHeaderReceive | msg=Got an HTTP Header: 'Connection': 'Keep-Alive'
time=2025-06-26T12:00:08.283Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1416]:mhdConnectionTreat | msg=orionldState.contextP at 0xc5f3c0
time=2025-06-26T12:00:08.283Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1417]:mhdConnectionTreat | msg=Core Context at          0xc5f3c0
time=2025-06-26T12:00:08.283Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1427]:mhdConnectionTreat | msg=No default user context, using only the core context
time=2025-06-26T12:00:08.283Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1432]:mhdConnectionTreat | msg=orionldState.contextP: 'https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.8.jsonld'
time=2025-06-26T12:00:08.283Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1433]:mhdConnectionTreat | msg=-------------------------------------------
time=2025-06-26T12:00:08.283Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldContextItemExpand.cpp[113]:orionldContextItemExpand | msg=Vocab-Expanded 'T' to 'https://uri.etsi.org/ngsi-ld/default-context/T'
time=2025-06-26T12:00:08.283Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdConnectionTreat.cpp[1463]:mhdConnectionTreat | msg=Request Payload Body: {"attr1":2532,"attr2":"amazing!!"}
time=2025-06-26T12:00:08.284Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=---------- Entity Lookup ----------
time=2025-06-26T12:00:08.284Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=  * Database Name:         'orion'
time=2025-06-26T12:00:08.284Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=  * Collection Name:       'entities'
time=2025-06-26T12:00:08.284Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=  * Filter:                '{ "_id.id" : "urn:ngsi-ld:test:1", "_id.type" : "T" }'
time=2025-06-26T12:00:08.285Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocEntityLookup.cpp[117]:mongocEntityLookup | msg=  * Options:             '{ "projection" : { "attrNames" : true, "creDate" : true, "modDate" : true, "lastCorrelator" : true, "attrs" : true, "@datasets" : true } }'
time=2025-06-26T12:00:08.287Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldPatchEntity2.cpp[575]:orionldPatchEntity2 | msg=***** ERROR: Entity does not exist: urn:ngsi-ld:test:1 (status: 404)
time=2025-06-26T12:00:08.287Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdReply.cpp[77]:mhdReply | msg=Response Body: '{"type":"https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound","title":"Entity does not exist","detail":"urn:ngsi-ld:test:1"}'
time=2025-06-26T12:00:08.287Z | lvl=DEBUG | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mhdReply.cpp[78]:mhdReply | msg=Response Code:  404

If I remove the entity type from the URL, the entity is properly updated (even with the local=true).

Could it be related with #1673 ? But this is definitively a simpler case (I haven't created any ContextSourceRegistration).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions