{
 "checks": [
  {
   "detail": "no negative value",
   "name": "non_negative",
   "status": "pass"
  },
  {
   "detail": "19 consecutive periods",
   "name": "no_missing_periods",
   "status": "pass"
  },
  {
   "detail": "newest period 2025",
   "name": "newest_period_not_older",
   "status": "pass"
  },
  {
   "detail": "6 changes beyond 50% to confirm",
   "name": "jumps",
   "status": "flag"
  },
  {
   "detail": "no value more than 3x both neighbours",
   "name": "spikes",
   "status": "pass"
  },
  {
   "detail": "components = TOTAL in each block: 60 hold within 0.05",
   "name": "components_sum_to_total",
   "status": "pass"
  },
  {
   "detail": "Flux net = Recettes - Dépenses: 80 hold within 0.05",
   "name": "net_equals_receipts_minus_spending",
   "status": "pass"
  },
  {
   "detail": "21 values recomputed from their source cells",
   "name": "provenance_consistent",
   "status": "pass"
  }
 ],
 "files": {
  "f1": {
   "fetch_state": "fresh",
   "file": "Investissements directs étrangers au Maroc_Flux_Par nature d'opération_12.xlsx",
   "file_url": "https://www.oc.gov.ma/sites/default/files/Investissements%20directs%20%C3%A9trangers%20au%20Maroc_Flux_Par%20nature%20d'op%C3%A9ration_12.xlsx",
   "kind": "web",
   "licence": null,
   "mirror_path": "data/raw/web/oc-ide-nature/972ae3bc708846538ccb1477114710c845814c3953421d4de95806e9634c2b4d/Investissements directs étrangers au Maroc_Flux_Par nature d'opération_12.xlsx",
   "page_url": "https://www.oc.gov.ma/fr/etudes-et-statistiques/series-statistiques",
   "producer_fr": "Office des Changes",
   "publisher_date": "2026-10-08",
   "publisher_date_basis": "http_last_modified",
   "retrieved_at": "2026-11-27T22:46:09+00:00",
   "sha256": "972ae3bc708846538ccb1477114710c845814c3953421d4de95806e9634c2b4d",
   "source_id": "oc-ide-nature",
   "terms_fr": "Site de l'Office des Changes ; aucune licence ouverte affichée"
  }
 },
 "indicator": "investissements-etrangers",
 "level": "cell",
 "reviewed_flags": [
  {
   "by": "data analyst + data senior (Wadeh go-live review), approved on the owner's delegation (2026-11-26)",
   "detail": "6 changes beyond 50% to confirm",
   "evidence": "Validator 1 (Wadeh sprint), 2026-11-27: Office des Changes IDE file (sha256 972ae3bc…), sheet IDEM-Natop row 19 'Flux net / TOTAL' re-read cell by cell; the same years equal the balance of payments BP_A_MBP6_2.xlsx row 106 (engagements, investissements directs): genuine volatility of net flows",
   "items": [
    {
     "after": 20778.300000000003,
     "before": 13247.400000000001,
     "from": "2010",
     "to": "2011",
     "verdict": "confirmed"
    },
    {
     "after": 16541.0,
     "before": 33404.0,
     "from": "2018",
     "to": "2019",
     "verdict": "confirmed"
    },
    {
     "after": 20372.0,
     "before": 13478.0,
     "from": "2020",
     "to": "2021",
     "verdict": "confirmed"
    },
    {
     "after": 10684.0,
     "before": 22964.0,
     "from": "2022",
     "to": "2023",
     "verdict": "confirmed"
    },
    {
     "after": 17380.0,
     "before": 10684.0,
     "from": "2023",
     "to": "2024",
     "verdict": "confirmed"
    },
    {
     "after": 31212.0,
     "before": 17380.0,
     "from": "2024",
     "to": "2025",
     "verdict": "confirmed"
    }
   ],
   "name": "jumps",
   "reviewed_on": "2026-11-26",
   "status": "flag",
   "verdict": "confirmed"
  }
 ],
 "validations": {
  "v-investissements-etrangers-secondary-depenses_ide": {
   "by": "Validator 1 (Wadeh sprint)",
   "evidence": "IDE_Flux_Par_nature_12.xlsx (sha256 972ae3bc708846538ccb1477114710c845814c3953421d4de95806e9634c2b4d), 19 cases rouvertes : IDEM-Natop!C15 … IDEM-Natop!U15. re-downloaded and re-read with the validator's own script (data-sprint validation entry 'investissements-etrangers', verdict approved_with_notes)",
   "file": "IDE_Flux_Par_nature_12.xlsx",
   "method": "reopened_cell",
   "on": "2026-11-27",
   "sha256": "972ae3bc708846538ccb1477114710c845814c3953421d4de95806e9634c2b4d"
  },
  "v-investissements-etrangers-secondary-recettes_ide": {
   "by": "Validator 1 (Wadeh sprint)",
   "evidence": "IDE_Flux_Par_nature_12.xlsx (sha256 972ae3bc708846538ccb1477114710c845814c3953421d4de95806e9634c2b4d), 19 cases rouvertes : IDEM-Natop!C11 … IDEM-Natop!U11. re-downloaded and re-read with the validator's own script (data-sprint validation entry 'investissements-etrangers', verdict approved_with_notes)",
   "file": "IDE_Flux_Par_nature_12.xlsx",
   "method": "reopened_cell",
   "on": "2026-11-27",
   "sha256": "972ae3bc708846538ccb1477114710c845814c3953421d4de95806e9634c2b4d"
  },
  "v-investissements-etrangers-value": {
   "by": "Validator 1 (Wadeh sprint)",
   "evidence": "IDE_Flux_Par_nature_12.xlsx (sha256 972ae3bc708846538ccb1477114710c845814c3953421d4de95806e9634c2b4d), 19 cases rouvertes : IDEM-Natop!C19 … IDEM-Natop!U19. re-downloaded and re-read with the validator's own script (data-sprint validation entry 'investissements-etrangers', verdict approved_with_notes)",
   "file": "IDE_Flux_Par_nature_12.xlsx",
   "method": "reopened_cell",
   "on": "2026-11-27",
   "sha256": "972ae3bc708846538ccb1477114710c845814c3953421d4de95806e9634c2b4d"
  }
 },
 "values": [
  {
   "inputs": [
    {
     "cell": "C19",
     "col_label": "2007 (C6)",
     "file": "f1",
     "raw": 22975.399999999998,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2007",
   "published": 22975.4,
   "recomputed": 22975.4,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!C19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "D19",
     "col_label": "2008 (D6)",
     "file": "f1",
     "raw": 19275.8,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2008",
   "published": 19275.8,
   "recomputed": 19275.8,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!D19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "E19",
     "col_label": "2009 (E6)",
     "file": "f1",
     "raw": 15725.1,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2009",
   "published": 15725.1,
   "recomputed": 15725.1,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!E19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "F19",
     "col_label": "2010 (F6)",
     "file": "f1",
     "raw": 13247.400000000001,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2010",
   "published": 13247.4,
   "recomputed": 13247.4,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!F19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "G19",
     "col_label": "2011 (G6)",
     "file": "f1",
     "raw": 20778.300000000003,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2011",
   "published": 20778.3,
   "recomputed": 20778.3,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!G19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "H19",
     "col_label": "2012 (H6)",
     "file": "f1",
     "raw": 23541.500000000004,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2012",
   "published": 23541.5,
   "recomputed": 23541.5,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!H19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "I19",
     "col_label": "2013 (I6)",
     "file": "f1",
     "raw": 27722.200000000004,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2013",
   "published": 27722.2,
   "recomputed": 27722.2,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!I19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "J19",
     "col_label": "2014 (J6)",
     "file": "f1",
     "raw": 29934.399999999994,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2014",
   "published": 29934.4,
   "recomputed": 29934.4,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!J19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "K19",
     "col_label": "2015 (K6)",
     "file": "f1",
     "raw": 31780.87530844856,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2015",
   "published": 31780.9,
   "recomputed": 31780.9,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!K19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "L19",
     "col_label": "2016 (L6)",
     "file": "f1",
     "raw": 21156.2,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2016",
   "published": 21156.2,
   "recomputed": 21156.2,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!L19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "M19",
     "col_label": "2017 (M6)",
     "file": "f1",
     "raw": 26033,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2017",
   "published": 26033.0,
   "recomputed": 26033.0,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!M19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "N19",
     "col_label": "2018 (N6)",
     "file": "f1",
     "raw": 33404,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2018",
   "published": 33404.0,
   "recomputed": 33404.0,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!N19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "O19",
     "col_label": "2019 (O6)",
     "file": "f1",
     "raw": 16541,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2019",
   "published": 16541.0,
   "recomputed": 16541.0,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!O19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "P19",
     "col_label": "2020 (P6)",
     "file": "f1",
     "raw": 13478,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2020",
   "published": 13478.0,
   "recomputed": 13478.0,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!P19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "Q19",
     "col_label": "2021 (Q6)",
     "file": "f1",
     "raw": 20372,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2021",
   "published": 20372.0,
   "recomputed": 20372.0,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!Q19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "R19",
     "col_label": "2022 (R6)",
     "file": "f1",
     "raw": 22964,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2022",
   "published": 22964.0,
   "recomputed": 22964.0,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!R19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "S19",
     "col_label": "2023 (S6)",
     "file": "f1",
     "raw": 10684,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2023",
   "published": 10684.0,
   "recomputed": 10684.0,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!S19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "T19",
     "col_label": "2024 (T6)",
     "file": "f1",
     "raw": 17380,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2024",
   "published": 17380.0,
   "recomputed": 17380.0,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!T19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "U19",
     "col_label": "2025* (U6)",
     "file": "f1",
     "raw": 31212,
     "row_label": "Flux net / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2025",
   "published": 31212.0,
   "recomputed": 31212.0,
   "scale": 1000000,
   "series": "value",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!U19",
   "validation": "v-investissements-etrangers-value"
  },
  {
   "inputs": [
    {
     "cell": "U11",
     "col_label": "2025* (U6)",
     "file": "f1",
     "raw": 60556,
     "row_label": "Recettes / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2025",
   "published": 60556.0,
   "recomputed": 60556.0,
   "scale": 1000000,
   "series": "secondary:recettes_ide",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!U11",
   "validation": "v-investissements-etrangers-secondary-recettes_ide"
  },
  {
   "inputs": [
    {
     "cell": "U15",
     "col_label": "2025* (U6)",
     "file": "f1",
     "raw": 29344,
     "row_label": "Dépenses / TOTAL",
     "sheet": "IDEM-Natop"
    }
   ],
   "op": "cell",
   "period": "2025",
   "published": 29344.0,
   "recomputed": 29344.0,
   "scale": 1000000,
   "series": "secondary:depenses_ide",
   "status": "validated",
   "transform": "valeur de la case; arrondi à 1 décimale; unité du fichier ×1e+06",
   "unit": "dh",
   "validated_cell": "IDEM-Natop!U15",
   "validation": "v-investissements-etrangers-secondary-depenses_ide"
  }
 ]
}
