Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-20079

FIWARE.Question.Tech.Fiware Scorpio appending new attribute to existing entity.

    Details

      Description

      Created question in FIWARE Q/A platform on 19-09-2022 at 12:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/73773527/fiware-scorpio-appending-new-attribute-to-existing-entity

      Question:
      Fiware Scorpio appending new attribute to existing entity

      Description:
      I tried to append a new entity to an existing entity.
      Same as in the official example on:
      https://scorpio.readthedocs.io/en/latest/API_walkthrough.html#updating-an-entity-appending-to-an-entity
      Try to append attribute humidity:
      curl localhost:9090/ngsi-ld/v1/entities/house2%3Asmartrooms%3Aroom1/attrs s -S -X PATCH -H 'Content-Type: application/json' -H 'Link: https://pastebin.com/raw/Mgxv2ykn' -d @ <<EOF
      {
      "humidity": {
      "value": 34,
      "unitCode": "PER",
      "type": "Property",
      "providedBy":

      { "type": "Relationship", "object": "smartbuilding:house2:sensor2222" }

      }
      }

      But I receive the error:
      {
      https://uri.etsi.org/ngsi-ld/default-context/notUpdated : [ {
      https://uri.etsi.org/ngsi-ld/attributeName :

      { "@id" : https://uri.etsi.org/ngsi-ld/default-context/humidity }

      ,
      https://uri.etsi.org/ngsi-ld/reason : "attribute not found in original entity"
      } ]
      }

      Can anybody tell me, if they encounter the same problem?
      Or how to fix this?
      Thank you in advance!

        Activity

        backlogmanager Backlog Manager created issue -
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-09-20 05:31|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2022-09-20 05:31|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        fla Fernando Lopez made changes -
        Assignee Scorpio Dev. Team [ scorpio.team ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-09-21 05:32|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2022-09-21 05:32|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-09-22 05:31|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2022-09-22 05:31|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] Fiware Scorpio appending new attribute to existing entity FIWARE.Question.Tech.Fiware Scorpio appending new attribute to existing entity.
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        1d 1 Backlog Manager 21/Sep/22 7:32 AM
        In Progress In Progress Closed Closed
        23h 59m 1 Backlog Manager 22/Sep/22 7:31 AM

          People

          • Assignee:
            scorpio.team Scorpio Dev. Team
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: