Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URGENT : OF Impossible à fiabiliser / adresse et académie manqante #246

Open
FlavieSauvebois opened this issue Dec 17, 2024 · 1 comment
Assignees
Labels

Comments

@FlavieSauvebois
Copy link
Collaborator

Hello,

Je dois fiabiliser un OF (ajouter son UAI) dans le Référentiel : 88977538300033
Malheureusement, je n'ai pas la main sur l'UAI. Cet OF n'a pas d'adresse, donc pas d'académie ou de Région déduite et cela empêche sa fiabilisation.
Il faudrait corriger cela. Regarder pourquoi l'adresse ne remonte pas alors qu'il y a bien une adresse dans la base Sirène.
J'ai regardé dans le Référentiel. Nous avons 34 OF sans académie ou Région, donc avec le même problème.
C'est assez urgent. Merci.

@gasilber
Copy link
Collaborator

gasilber commented Dec 17, 2024

Cet organisme provoque une erreur de schéma, il semble manquer le code postal (pourquoi?).

[2024-12-17T04:49:32.840Z][WARN][collect] Erreur lors de la collecte pour l'organisme 88977538300033. { source: 'catalogue' }
{
  anomalies: [
    MongoServerError: Document failed validation
        at /app/node_modules/mongodb/lib/operations/update.js:85:33
        at /app/node_modules/mongodb/lib/cmap/connection_pool.js:273:25
        at handleOperationResult (/app/node_modules/mongodb/lib/sdam/server.js:327:20)
        at Connection.onMessage (/app/node_modules/mongodb/lib/cmap/connection.js:215:9)
        at MessageStream.<anonymous> (/app/node_modules/mongodb/lib/cmap/connection.js:63:60)
        at MessageStream.emit (node:events:517:28)
        at processIncomingData (/app/node_modules/mongodb/lib/cmap/message_stream.js:108:16)
        at MessageStream._write (/app/node_modules/mongodb/lib/cmap/message_stream.js:28:9)
        at writeOrBuffer (node:internal/streams/writable:392:12)
        at _write (node:internal/streams/writable:333:10) {
      index: 0,
      code: 121,
      errInfo: {
        failingDocumentId: new ObjectId("66c809e9e5cd44b917b773f0"),
        details: {
          operatorName: '$jsonSchema',
          schemaRulesNotSatisfied: [
            {
              operatorName: 'properties',
              propertiesNotSatisfied: [
                {
                  propertyName: 'lieux_de_formation',
                  details: [
                    {
                      operatorName: 'items',
                      reason: 'At least one item did not match the sub-schema',
                      itemIndex: 0,
                      details: [
                        {
                          operatorName: 'properties',
                          propertiesNotSatisfied: [
                            {
                              propertyName: 'adresse',
                              details: [
                                {
                                  operatorName: 'properties',
                                  propertiesNotSatisfied: [
                                    {
                                      propertyName: 'code_postal',
                                      details: [
                                        {
                                          operatorName: 'bsonType',
                                          specifiedAs: { bsonType: 'string' },
                                          reason: 'type did not match',
                                          consideredValue: null,
                                          consideredType: 'null'
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      },
      [Symbol(errorLabels)]: Set(0) {}
    }
  ]
}

Validation à la main:

root@gordolasque:/home/gasilber# bash /opt/referentiel/cli.sh modify 88977538300033 9711303P
root@gordolasque:/home/gasilber# bash /opt/referentiel/cli.sh consolidate --siret 88977538300033

@gasilber gasilber added the done label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants