VisitDoneEnrichmentFailed
v1.0.0

Event represents when a VisitDone Enrichment has failed

Details

This event is emitted when the process of enriching a VisitDone Legacy Event has failed.

It is consumed by the Notification Service to notify the Devops Team of possible issues on the item.

Reasons for Failure

The reasons for failure are :

  • PROPERTY_UNAVAILABLE : can not retreive the property (401, 404 or 500)
  • CUSTOMER_UNAVAILABLE : can not retreive the customer from the property (401, 404 or 500)
  • MISSION_UNAVAILABLE : can not retreive the mission from the visit metadata (401, 404 or 500)
  • CUSTOMER_SEGMENT_MISSING : no customer.segment find in customer response

For Inspection Mission types only:

  • PROPERTY_ESTATE_TYPE_MISSING : no valid property.estateType find in property response
  • PROPERTY_IS_FURNISHED_MISSING : no valid property.features.isFurnished find in property response
  • PROPERTY_NUMBER_OF_ROOMS_MISSING : no valid property.structure.rooms.numberOfRooms find in property response
  • PROPERTY_NUMBER_OF_ROOMS_IS_ZERO : property.structure.rooms.numberOfRooms is zero
  • PROPERTY_DISTANCE_TO_NEAREST_EPICENTER_MISSING : no valid property.operations.epicenter.distanceToNearest find in

For Commercial Viewing Mission types only:

  • PROPERTY_POSTAL_CODE_MISSING : no postal code find
  • PROPERTY_IS_PREMIUM_MISSING : no isPremium find
  • PROPERTY_STAFFED_AT_MISSING : no firstStaffedAt find
  • PROPERTY_TRANSACTION_TYPE_MISSING : no transactionType find

Related Events

Is generally followed by a "FailedEventToDevOps" Notification being generated in the Notification Service through the Dispatch Service.

Consumer / Producer Diagram

Event Example

VisitDoneEnrichmentFailed Schema (json)
{
  "version": "0",
  "id": "520e2b12-9982-6370-d295-d839d72b57fe",
  "detail-type": "VisitDoneEnrichmentFailed",
  "source": "flatsy.service.billing",
  "account": "221760190323",
  "time": "2023-05-30T08:26:34Z",
  "region": "eu-west-3",
  "resources": [],
  "detail": {
    "metadata": {
      "application": "System",
      "service": "flatsy.service.billing",
      "actor": "System",
      "actorID": "System",
      "entity": "Visit",
      "entityID": "64fa02e8-2b13-4728-8e7c-b667d79302fb",
      "correlationID": "21802666-305c-73fa-474c-866b143298e6",
      "version": "2.0",
      "reasonForFailure": "PROPERTY_DISTANCE_TO_NEAREST_EPICENTER_MISSING"
    },
    "data": {
      "visit": {
        "id": "294ef85f-c4d5-477c-a182-35f7836bdf24",
        "date": "2023-04-13T07:45:00Z",
        "createdAt": "2023-04-12T08:19:31.711888Z",
        "flatguideId": "951ce989-9bd9-4a6f-8f0a-3a73512235e3",
        "propertyVisits": [
          {
            "propertyId": "8013562e-10f6-4562-a0df-e61961e8d8d2",
            "visitId": "294ef85f-c4d5-477c-a182-35f7836bdf24",
            "reportStatus": "draft",
            "reportStatusUpdatedAt": "2023-04-13T08:05:26.849487Z"
          }
        ],
        "visitorVisits": [
          {
            "visitId": "294ef85f-c4d5-477c-a182-35f7836bdf24",
            "askedPropertyId": "8013562e-10f6-4562-a0df-e61961e8d8d2",
            "status": "visit.status.done",
            "initialDate": "2023-04-13T07:45:00Z",
            "visitor": {
              "email": "nahihajar@gmail.com",
              "firstName": "Hajar",
              "lastName": "NAHI",
              "phone": "+33627582601",
              "fields": { "files": {} }
            },
            "statusUpdatedAt": "2023-04-13T08:05:29.871998Z",
            "creator": "ByAgency"
          }
        ],
        "propertySummary": {
          "id": "8013562e-10f6-4562-a0df-e61961e8d8d2",
          "displayAddress": "8 All. des Jasmins, 31700 Mondonville",
          "ownerPictureUrl": "https://cdn.filestackcontent.com/oIDfIxJ6QHKhpJ1ToLQP?policy=eyJoYW5kbGUiOiJvSURmSXhKNlFIS2hwSjFUb0xRUCIsImNhbGwiOlsicmVhZCJdLCJleHBpcnkiOjQ3NzM3MzU4NDd9&signature=fda45de0d753030e5a491ad218e9931d0425275ca7fdb0750ce17e762d3d87df",
          "latitude": 43.6748238,
          "longitude": 1.2890095,
          "externalRef": "DE LA TOUR 1206",
          "doorNumber": "1206",
          "rentSell": "property.basics.rentsell.rent"
        },
        "durationMinutes": 15
      }
    }
  }
}
Edit this pageLast updated on 2023/11/3