Ido Toolbox icon

Ido Toolbox

A comprehensive collection of useful tools for data processing, text manipulation, and daily operations

Text & Formatting → Validate ID Number

AI-generated

Overview

The node provides a variety of text and data processing utilities under different operations. Specifically, the Validate ID Number operation validates an Israeli ID number using a checksum algorithm. This is useful in scenarios where you need to verify the authenticity or correctness of user-provided Israeli national identification numbers before further processing or storage.

Practical examples include:

  • Validating user input forms that require Israeli ID numbers.
  • Pre-processing datasets containing Israeli IDs to filter out invalid entries.
  • Automating workflows that depend on verified identity numbers for compliance or record-keeping.

Properties

Name Meaning
ID Number The Israeli ID number string to validate. It must be exactly 9 digits (non-digit chars are ignored).

Output

The output JSON object contains the following fields:

  • idNumber: The original ID number input by the user.
  • cleanId: The sanitized ID number containing only digits.
  • isValid: Boolean indicating whether the ID number passed the checksum validation.
  • checksum: The checksum value calculated from the ID digits.
  • error (optional): If the ID number does not have exactly 9 digits, this field contains an error message explaining the issue.

Example output for a valid ID:

{
  "idNumber": "123456782",
  "cleanId": "123456782",
  "isValid": true,
  "checksum": 0
}

Example output for an invalid length:

{
  "idNumber": "12345",
  "isValid": false,
  "error": "ID must be 9 digits"
}

Dependencies

  • No external services or API keys are required.
  • The node relies on internal JavaScript logic for validation.
  • No special environment variables or n8n configurations are needed.

Troubleshooting

  • Common issues:

    • Input ID number is not exactly 9 digits after removing non-digit characters.
    • Input contains letters or special characters which are stripped but may cause length mismatch.
  • Error messages:

    • "ID must be 9 digits": This means the cleaned input does not have exactly 9 digits. Ensure the input is correct and contains only digits or valid formatting.
  • Resolution:

    • Verify the input format before passing it to the node.
    • Remove any extraneous characters or spaces.
    • Confirm the ID number is complete and accurate.

Links and References

Discussion