[{"data":1,"prerenderedAt":1708},["ShallowReactive",2],{"blog-\u002Fblog\u002F2025\u002F11\u002Findustrial-data-validation-guide":3},{"id":4,"title":5,"body":6,"description":12,"extension":1698,"meta":1699,"navigation":1246,"path":1704,"seo":1705,"stem":1706,"__hash__":1707},"blog\u002Fblog\u002F2025\u002F11\u002Findustrial-data-validation-guide.md","How to Protect Your Factory From Bad Data: A Must-Have Read for IIoT",{"type":7,"value":8,"toc":1683},"minimark",[9,13,16,19,26,31,34,37,49,52,55,59,62,68,75,78,81,84,112,115,119,122,135,140,149,152,159,192,195,199,202,280,283,569,572,612,619,624,627,642,652,671,678,686,690,697,704,754,757,760,811,821,903,906,909,914,958,963,1016,1021,1073,1076,1080,1083,1087,1090,1121,1124,1128,1135,1146,1150,1153,1191,1566,1639,1642,1645,1650,1654,1657,1660,1663,1666,1679],[10,11,12],"p",{},"Bad data quietly corrupts production analytics, triggers false equipment alarms, and causes automation systems to make faulty control decisions. Unlike system crashes, these issues go unnoticed until they've already propagated through your operations—affecting multiple processes and causing unexpected shutdowns or production anomalies.",[10,14,15],{},"This article shows you how to build a data validation gateway using FlowFuse that stops bad data before it reaches your critical systems. You'll implement validation checkpoints, establish quality rules, and configure alerts, creating a protective barrier that ensures only reliable data flows into your production environment.",[10,17,18],{},"Below is a short video demonstration of the data validation gateway we'll be building together.",[20,21],"lite-youtube",{"videoid":22,"params":23,"style":24,"title":25},"_yThV3eurhw","rel=0","margin-top: 20px; margin-bottom: 20px; width: 100%; height: 480px;","YouTube video player",[27,28,30],"h2",{"id":29},"the-problem-with-trusting-your-data","The Problem with Trusting Your Data",[10,32,33],{},"Most industrial applications assume incoming data is valid—temperature sensors send numbers between 0-100°C, MQTT messages contain properly formatted JSON, PLC status codes follow documented formats. There's usually no validation checking if these assumptions hold true.",[10,35,36],{},"This works until it doesn't. Sensors drift out of calibration. Network issues corrupt packets. Firmware updates change data formats without warning. When these things happen, bad data flows straight through unchecked.",[10,38,39,40,44,45,48],{},"Consider a temperature sensor sending ",[41,42,43],"code",{},"{\"temperature\": 72.5, \"unit\": \"Celsius\"}",". Then electromagnetic interference corrupts transmission, and your system receives ",[41,46,47],{},"{\"temperature\": \"ERR\", \"unit\": \"Celsius\"}",". Your code tries to do math with \"ERR\"—it fails silently, throws an exception, or worse, coerces \"ERR\" to NaN or 0. Now you're making decisions based on garbage data without realizing it.",[10,50,51],{},"Scale makes this worse. With hundreds of sensors, multiple PLCs, edge gateways, and third-party integrations sending data continuously, quality issues aren't occasional—they're constant. You spend more time troubleshooting data problems than actual equipment problems. Reports contain incorrect numbers. Predictive models make bad predictions from corrupted training data.",[10,53,54],{},"The solution isn't hoping for perfect data—it's validating it explicitly. That's what we're building in this guide.",[27,56,58],{"id":57},"understanding-data-quality","Understanding Data Quality",[10,60,61],{},"Before we start building, we need to answer a simple but critical question:",[10,63,64],{},[65,66,67],"strong",{},"What makes data \"good\"?",[10,69,70,71,74],{},"This isn't about what data you collect or which machine it comes from. It's about whether the data is ",[65,72,73],{},"reliable enough to drive decisions without causing chaos",".",[10,76,77],{},"Good data enables confident automation and informed decision-making.",[10,79,80],{},"Bad data misleads—and when your automation acts on misleading information, your team and operations pay the price.",[10,82,83],{},"To build effective validation, you need to check multiple dimensions of data quality. Some key aspects include:",[85,86,87,94,100,106],"ul",{},[88,89,90,93],"li",{},[65,91,92],{},"Type Correctness",": Is the temperature a number or the string \"ERR\"?",[88,95,96,99],{},[65,97,98],{},"Completeness",": Are all required fields present?",[88,101,102,105],{},[65,103,104],{},"Range Validation",": Is the temperature between 0-100°C or an impossible 500°C?",[88,107,108,111],{},[65,109,110],{},"Format Consistency",": Is the timestamp in ISO 8601 format or some custom format?",[10,113,114],{},"These aren't rigid categories—they're lenses through which you examine your data. Real validation often combines several of these checks together.",[27,116,118],{"id":117},"building-your-data-quality-checker","Building Your Data Quality Checker",[10,120,121],{},"Now that we understand what \"good data\" looks like, let's build guardrails to enforce it.",[123,124,125],"blockquote",{},[10,126,127,128,74],{},"Before we start, make sure you have a running FlowFuse instance that is collecting data. If you don't have a real data source, don't worry—we'll provide a simulated setup as well. Just make sure you have a FlowFuse account and instance running. If you don't have an account, create one now with our ",[129,130,134],"a",{"href":131,"rel":132},"https:\u002F\u002Fapp.flowfuse.com\u002Faccount\u002Fcreate",[133],"nofollow","free trial",[136,137,139],"h3",{"id":138},"installing-the-json-schema-validator-node","Installing the JSON Schema Validator Node",[10,141,142,143,148],{},"For our validation system, we'll use ",[129,144,147],{"href":145,"rel":146},"https:\u002F\u002Fjson-schema.org\u002F",[133],"JSON Schema",", a powerful, industry-standard way to define what valid data should look like. Think of it as a contract that your data must fulfill before entering your system.",[10,150,151],{},"JSON Schema lets you specify exactly what fields should exist, what types they should be, what ranges are acceptable, and what formats are required. Instead of writing dozens of if-statements to check each condition, you define the rules once in a schema, and the validator does the heavy lifting.",[10,153,154,155,158],{},"To get started, install the ",[41,156,157],{},"node-red-contrib-full-msg-json-schema-validation"," node in your FlowFuse instance:",[160,161,162,165,168,174,181,186],"ol",{},[88,163,164],{},"Open your FlowFuse instance",[88,166,167],{},"Click the hamburger menu (three horizontal lines) in the top right",[88,169,170,171],{},"Select ",[65,172,173],{},"Manage palette",[88,175,176,177,180],{},"Go to the ",[65,178,179],{},"Install"," tab",[88,182,183,184],{},"Search for ",[41,185,157],{},[88,187,188,189,191],{},"Click ",[65,190,179],{}," next to the node",[10,193,194],{},"Once installed, you'll find the \"json full schema validator\" node in your palette under the function category.",[136,196,198],{"id":197},"creating-your-first-validation-schema","Creating Your First Validation Schema",[10,200,201],{},"Let's start with a practical example—validating temperature sensor data. Here's what we expect our sensor to send:",[203,204,209],"pre",{"className":205,"code":206,"language":207,"meta":208,"style":208},"language-json shiki shiki-themes github-light github-dark","{\n    \"temperature\": 72.5,\n    \"unit\": \"Celsius\",\n    \"sensor_id\": \"TEMP_LINE_01\",\n    \"timestamp\": \"2025-11-21T10:30:00Z\"\n}\n","json","",[41,210,211,220,236,250,263,274],{"__ignoreMap":208},[212,213,216],"span",{"class":214,"line":215},"line",1,[212,217,219],{"class":218},"sVt8B","{\n",[212,221,223,227,230,233],{"class":214,"line":222},2,[212,224,226],{"class":225},"sj4cs","    \"temperature\"",[212,228,229],{"class":218},": ",[212,231,232],{"class":225},"72.5",[212,234,235],{"class":218},",\n",[212,237,239,242,244,248],{"class":214,"line":238},3,[212,240,241],{"class":225},"    \"unit\"",[212,243,229],{"class":218},[212,245,247],{"class":246},"sZZnC","\"Celsius\"",[212,249,235],{"class":218},[212,251,253,256,258,261],{"class":214,"line":252},4,[212,254,255],{"class":225},"    \"sensor_id\"",[212,257,229],{"class":218},[212,259,260],{"class":246},"\"TEMP_LINE_01\"",[212,262,235],{"class":218},[212,264,266,269,271],{"class":214,"line":265},5,[212,267,268],{"class":225},"    \"timestamp\"",[212,270,229],{"class":218},[212,272,273],{"class":246},"\"2025-11-21T10:30:00Z\"\n",[212,275,277],{"class":214,"line":276},6,[212,278,279],{"class":218},"}\n",[10,281,282],{},"Now let's create a JSON Schema that validates this structure:",[203,284,286],{"className":205,"code":285,"language":207,"meta":208,"style":208},"{\n    \"type\": \"object\",\n        \"required\": [\"temperature\", \"unit\", \"sensor_id\", \"timestamp\"],\n            \"properties\": {\n        \"temperature\": {\n            \"type\": \"number\",\n                \"minimum\": 0,\n                    \"maximum\": 100,\n                        \"description\": \"Temperature reading in Celsius\"\n        },\n        \"unit\": {\n            \"type\": \"string\",\n                \"enum\": [\"Celsius\"],\n                    \"description\": \"Temperature unit (Celsius only)\"\n        },\n        \"sensor_id\": {\n            \"type\": \"string\",\n                \"pattern\": \"^TEMP_LINE_[0-9]+$\",\n                    \"description\": \"Sensor identifier following the required naming convention\"\n        },\n        \"timestamp\": {\n            \"type\": \"string\",\n                \"format\": \"date-time\",\n                    \"description\": \"ISO 8601 formatted timestamp\"\n        }\n    },\n    \"additionalProperties\": false\n}\n",[41,287,288,292,304,334,342,349,361,374,387,398,404,412,424,436,447,452,460,471,484,494,499,507,518,531,541,547,553,564],{"__ignoreMap":208},[212,289,290],{"class":214,"line":215},[212,291,219],{"class":218},[212,293,294,297,299,302],{"class":214,"line":222},[212,295,296],{"class":225},"    \"type\"",[212,298,229],{"class":218},[212,300,301],{"class":246},"\"object\"",[212,303,235],{"class":218},[212,305,306,309,312,315,318,321,323,326,328,331],{"class":214,"line":238},[212,307,308],{"class":225},"        \"required\"",[212,310,311],{"class":218},": [",[212,313,314],{"class":246},"\"temperature\"",[212,316,317],{"class":218},", ",[212,319,320],{"class":246},"\"unit\"",[212,322,317],{"class":218},[212,324,325],{"class":246},"\"sensor_id\"",[212,327,317],{"class":218},[212,329,330],{"class":246},"\"timestamp\"",[212,332,333],{"class":218},"],\n",[212,335,336,339],{"class":214,"line":252},[212,337,338],{"class":225},"            \"properties\"",[212,340,341],{"class":218},": {\n",[212,343,344,347],{"class":214,"line":265},[212,345,346],{"class":225},"        \"temperature\"",[212,348,341],{"class":218},[212,350,351,354,356,359],{"class":214,"line":276},[212,352,353],{"class":225},"            \"type\"",[212,355,229],{"class":218},[212,357,358],{"class":246},"\"number\"",[212,360,235],{"class":218},[212,362,364,367,369,372],{"class":214,"line":363},7,[212,365,366],{"class":225},"                \"minimum\"",[212,368,229],{"class":218},[212,370,371],{"class":225},"0",[212,373,235],{"class":218},[212,375,377,380,382,385],{"class":214,"line":376},8,[212,378,379],{"class":225},"                    \"maximum\"",[212,381,229],{"class":218},[212,383,384],{"class":225},"100",[212,386,235],{"class":218},[212,388,390,393,395],{"class":214,"line":389},9,[212,391,392],{"class":225},"                        \"description\"",[212,394,229],{"class":218},[212,396,397],{"class":246},"\"Temperature reading in Celsius\"\n",[212,399,401],{"class":214,"line":400},10,[212,402,403],{"class":218},"        },\n",[212,405,407,410],{"class":214,"line":406},11,[212,408,409],{"class":225},"        \"unit\"",[212,411,341],{"class":218},[212,413,415,417,419,422],{"class":214,"line":414},12,[212,416,353],{"class":225},[212,418,229],{"class":218},[212,420,421],{"class":246},"\"string\"",[212,423,235],{"class":218},[212,425,427,430,432,434],{"class":214,"line":426},13,[212,428,429],{"class":225},"                \"enum\"",[212,431,311],{"class":218},[212,433,247],{"class":246},[212,435,333],{"class":218},[212,437,439,442,444],{"class":214,"line":438},14,[212,440,441],{"class":225},"                    \"description\"",[212,443,229],{"class":218},[212,445,446],{"class":246},"\"Temperature unit (Celsius only)\"\n",[212,448,450],{"class":214,"line":449},15,[212,451,403],{"class":218},[212,453,455,458],{"class":214,"line":454},16,[212,456,457],{"class":225},"        \"sensor_id\"",[212,459,341],{"class":218},[212,461,463,465,467,469],{"class":214,"line":462},17,[212,464,353],{"class":225},[212,466,229],{"class":218},[212,468,421],{"class":246},[212,470,235],{"class":218},[212,472,474,477,479,482],{"class":214,"line":473},18,[212,475,476],{"class":225},"                \"pattern\"",[212,478,229],{"class":218},[212,480,481],{"class":246},"\"^TEMP_LINE_[0-9]+$\"",[212,483,235],{"class":218},[212,485,487,489,491],{"class":214,"line":486},19,[212,488,441],{"class":225},[212,490,229],{"class":218},[212,492,493],{"class":246},"\"Sensor identifier following the required naming convention\"\n",[212,495,497],{"class":214,"line":496},20,[212,498,403],{"class":218},[212,500,502,505],{"class":214,"line":501},21,[212,503,504],{"class":225},"        \"timestamp\"",[212,506,341],{"class":218},[212,508,510,512,514,516],{"class":214,"line":509},22,[212,511,353],{"class":225},[212,513,229],{"class":218},[212,515,421],{"class":246},[212,517,235],{"class":218},[212,519,521,524,526,529],{"class":214,"line":520},23,[212,522,523],{"class":225},"                \"format\"",[212,525,229],{"class":218},[212,527,528],{"class":246},"\"date-time\"",[212,530,235],{"class":218},[212,532,534,536,538],{"class":214,"line":533},24,[212,535,441],{"class":225},[212,537,229],{"class":218},[212,539,540],{"class":246},"\"ISO 8601 formatted timestamp\"\n",[212,542,544],{"class":214,"line":543},25,[212,545,546],{"class":218},"        }\n",[212,548,550],{"class":214,"line":549},26,[212,551,552],{"class":218},"    },\n",[212,554,556,559,561],{"class":214,"line":555},27,[212,557,558],{"class":225},"    \"additionalProperties\"",[212,560,229],{"class":218},[212,562,563],{"class":225},"false\n",[212,565,567],{"class":214,"line":566},28,[212,568,279],{"class":218},[10,570,571],{},"Let's break down what this schema validates:",[85,573,574,584,590,596,602],{},[88,575,576,579,580,583],{},[65,577,578],{},"Type Safety:"," temperature must be a number (catches ",[41,581,582],{},"\"ERR\"",", null, undefined)",[88,585,586,589],{},[65,587,588],{},"Required Fields:"," all 4 must exist (catches incomplete messages)",[88,591,592,595],{},[65,593,594],{},"Range Limits:"," temperature must be between 0–100°C.",[88,597,598,601],{},[65,599,600],{},"Value Constraints:"," unit must match the enum \"Celsius\" (enforces consistent units)",[88,603,604,607,608,611],{},[65,605,606],{},"Format Rules:"," ISO 8601 timestamps and ",[41,609,610],{},"TEMP_LINE_*"," naming (catches config\u002Fnaming errors)",[10,613,614,615,618],{},"The ",[41,616,617],{},"additionalProperties: false"," line is particularly important—it rejects any data with unexpected fields, preventing schema drift over time.",[620,621,623],"h4",{"id":622},"building-the-validation-flow","Building the Validation Flow",[10,625,626],{},"Now let's build the flow:",[160,628,629,632,639],{},[88,630,631],{},"Drag in your data input node such as MQTT In node, HTTP In node, or Inject node (for testing)",[88,633,634,635,638],{},"Drag the ",[65,636,637],{},"JSON Full Schema Validator"," node into your flow",[88,640,641],{},"Double-click the validator node and paste your JSON schema into the schema field.",[10,643,644,649],{},[645,646],"img",{"alt":647,"dataZoomable":208,"src":648},"JSON Schema Validator node configured with schema rules","\u002Fblog\u002F2025\u002F11\u002Fimages\u002Fjson-schema-validator.png",[650,651,647],"em",{},[160,653,654],{"start":252},[88,655,656,657],{},"The validator node has two outputs:\n",[85,658,659,665],{},[88,660,661,664],{},[65,662,663],{},"Output 1",": Valid data that passes all schema checks",[88,666,667,670],{},[65,668,669],{},"Output 2",": Invalid data that fails validation",[10,672,673,674,677],{},"When validation fails, the node adds a ",[41,675,676],{},"msg.error"," property as an array, where each item provides detailed information about what went wrong (missing fields, incorrect types, out-of-range values, etc.)",[160,679,680,683],{"start":265},[88,681,682],{},"Connect Output 1 to your normal processing pipeline (database writes, dashboards, automation logic)",[88,684,685],{},"Connect Output 2 to an error handler that logs the error details.",[136,687,689],{"id":688},"testing-your-validator","Testing Your Validator",[10,691,692,693,696],{},"Time to test your validator. We'll use the ",[65,694,695],{},"temperature sensor schema from the example above",", but you can follow these same steps with any schema you create. Just make sure your test payload matches what your schema expects—same field names, correct data types, and proper structure. Then you can tweak the values to trigger validation failures and see how your error handling responds.",[10,698,699,700,703],{},"Add an ",[65,701,702],{},"Inject"," node with this valid payload, and connect it to your JSON Schema Validator node:",[203,705,706],{"className":205,"code":206,"language":207,"meta":208,"style":208},[41,707,708,712,722,732,742,750],{"__ignoreMap":208},[212,709,710],{"class":214,"line":215},[212,711,219],{"class":218},[212,713,714,716,718,720],{"class":214,"line":222},[212,715,226],{"class":225},[212,717,229],{"class":218},[212,719,232],{"class":225},[212,721,235],{"class":218},[212,723,724,726,728,730],{"class":214,"line":238},[212,725,241],{"class":225},[212,727,229],{"class":218},[212,729,247],{"class":246},[212,731,235],{"class":218},[212,733,734,736,738,740],{"class":214,"line":252},[212,735,255],{"class":225},[212,737,229],{"class":218},[212,739,260],{"class":246},[212,741,235],{"class":218},[212,743,744,746,748],{"class":214,"line":265},[212,745,268],{"class":225},[212,747,229],{"class":218},[212,749,273],{"class":246},[212,751,752],{"class":214,"line":276},[212,753,279],{"class":218},[10,755,756],{},"This passes all checks against the temperature sensor schema example and routes to your valid data handler.",[10,758,759],{},"Now test with bad data:",[203,761,763],{"className":205,"code":762,"language":207,"meta":208,"style":208},"{\n    \"temperature\": \"ERR\",\n    \"unit\": \"Celsius\",\n    \"sensor_id\": \"TEMP_LINE_01\",\n    \"timestamp\": \"2025-11-21T10:30:00Z\"\n}\n",[41,764,765,769,779,789,799,807],{"__ignoreMap":208},[212,766,767],{"class":214,"line":215},[212,768,219],{"class":218},[212,770,771,773,775,777],{"class":214,"line":222},[212,772,226],{"class":225},[212,774,229],{"class":218},[212,776,582],{"class":246},[212,778,235],{"class":218},[212,780,781,783,785,787],{"class":214,"line":238},[212,782,241],{"class":225},[212,784,229],{"class":218},[212,786,247],{"class":246},[212,788,235],{"class":218},[212,790,791,793,795,797],{"class":214,"line":252},[212,792,255],{"class":225},[212,794,229],{"class":218},[212,796,260],{"class":246},[212,798,235],{"class":218},[212,800,801,803,805],{"class":214,"line":265},[212,802,268],{"class":225},[212,804,229],{"class":218},[212,806,273],{"class":246},[212,808,809],{"class":214,"line":276},[212,810,279],{"class":218},[10,812,813,814,817,818,820],{},"This fails because ",[41,815,816],{},"temperature"," is a string instead of a number (as defined in our example schema), routing to your error handler. The ",[41,819,676],{}," output shows exactly what's wrong:",[203,822,824],{"className":205,"code":823,"language":207,"meta":208,"style":208},"[{\n  \"keyword\": \"type\",\n  \"dataPath\": \".temperature\",\n  \"schemaPath\": \"#\u002Fproperties\u002Ftemperature\u002Ftype\",\n  \"params\": {\n    \"type\": \"number\"\n  },\n  \"message\": \"should be number\"\n}]\n",[41,825,826,831,843,855,867,874,883,888,898],{"__ignoreMap":208},[212,827,828],{"class":214,"line":215},[212,829,830],{"class":218},"[{\n",[212,832,833,836,838,841],{"class":214,"line":222},[212,834,835],{"class":225},"  \"keyword\"",[212,837,229],{"class":218},[212,839,840],{"class":246},"\"type\"",[212,842,235],{"class":218},[212,844,845,848,850,853],{"class":214,"line":238},[212,846,847],{"class":225},"  \"dataPath\"",[212,849,229],{"class":218},[212,851,852],{"class":246},"\".temperature\"",[212,854,235],{"class":218},[212,856,857,860,862,865],{"class":214,"line":252},[212,858,859],{"class":225},"  \"schemaPath\"",[212,861,229],{"class":218},[212,863,864],{"class":246},"\"#\u002Fproperties\u002Ftemperature\u002Ftype\"",[212,866,235],{"class":218},[212,868,869,872],{"class":214,"line":265},[212,870,871],{"class":225},"  \"params\"",[212,873,341],{"class":218},[212,875,876,878,880],{"class":214,"line":276},[212,877,296],{"class":225},[212,879,229],{"class":218},[212,881,882],{"class":246},"\"number\"\n",[212,884,885],{"class":214,"line":363},[212,886,887],{"class":218},"  },\n",[212,889,890,893,895],{"class":214,"line":376},[212,891,892],{"class":225},"  \"message\"",[212,894,229],{"class":218},[212,896,897],{"class":246},"\"should be number\"\n",[212,899,900],{"class":214,"line":389},[212,901,902],{"class":218},"}]\n",[10,904,905],{},"These detailed error messages eliminate guesswork. You see the field, the problem, and where validation failed.",[10,907,908],{},"Test additional scenarios to see how the validator catches different issues:",[10,910,911],{},[65,912,913],{},"Missing required field:",[203,915,917],{"className":205,"code":916,"language":207,"meta":208,"style":208},"{\n  \"temperature\": 72.5,\n  \"unit\": \"Celsius\",\n  \"timestamp\": \"2025-11-21T10:30:00Z\"\n}\n",[41,918,919,923,934,945,954],{"__ignoreMap":208},[212,920,921],{"class":214,"line":215},[212,922,219],{"class":218},[212,924,925,928,930,932],{"class":214,"line":222},[212,926,927],{"class":225},"  \"temperature\"",[212,929,229],{"class":218},[212,931,232],{"class":225},[212,933,235],{"class":218},[212,935,936,939,941,943],{"class":214,"line":238},[212,937,938],{"class":225},"  \"unit\"",[212,940,229],{"class":218},[212,942,247],{"class":246},[212,944,235],{"class":218},[212,946,947,950,952],{"class":214,"line":252},[212,948,949],{"class":225},"  \"timestamp\"",[212,951,229],{"class":218},[212,953,273],{"class":246},[212,955,956],{"class":214,"line":265},[212,957,279],{"class":218},[10,959,960],{},[65,961,962],{},"Out of range value:",[203,964,966],{"className":205,"code":965,"language":207,"meta":208,"style":208},"{\n  \"temperature\": 150,\n  \"unit\": \"Celsius\",\n  \"sensor_id\": \"TEMP_LINE_01\",\n  \"timestamp\": \"2025-11-21T10:30:00Z\"\n}\n",[41,967,968,972,983,993,1004,1012],{"__ignoreMap":208},[212,969,970],{"class":214,"line":215},[212,971,219],{"class":218},[212,973,974,976,978,981],{"class":214,"line":222},[212,975,927],{"class":225},[212,977,229],{"class":218},[212,979,980],{"class":225},"150",[212,982,235],{"class":218},[212,984,985,987,989,991],{"class":214,"line":238},[212,986,938],{"class":225},[212,988,229],{"class":218},[212,990,247],{"class":246},[212,992,235],{"class":218},[212,994,995,998,1000,1002],{"class":214,"line":252},[212,996,997],{"class":225},"  \"sensor_id\"",[212,999,229],{"class":218},[212,1001,260],{"class":246},[212,1003,235],{"class":218},[212,1005,1006,1008,1010],{"class":214,"line":265},[212,1007,949],{"class":225},[212,1009,229],{"class":218},[212,1011,273],{"class":246},[212,1013,1014],{"class":214,"line":276},[212,1015,279],{"class":218},[10,1017,1018],{},[65,1019,1020],{},"Invalid enum value:",[203,1022,1024],{"className":205,"code":1023,"language":207,"meta":208,"style":208},"{\n  \"temperature\": 72.5,\n  \"unit\": \"F\",\n  \"sensor_id\": \"TEMP_LINE_01\",\n  \"timestamp\": \"2025-11-21T10:30:00Z\"\n}\n",[41,1025,1026,1030,1040,1051,1061,1069],{"__ignoreMap":208},[212,1027,1028],{"class":214,"line":215},[212,1029,219],{"class":218},[212,1031,1032,1034,1036,1038],{"class":214,"line":222},[212,1033,927],{"class":225},[212,1035,229],{"class":218},[212,1037,232],{"class":225},[212,1039,235],{"class":218},[212,1041,1042,1044,1046,1049],{"class":214,"line":238},[212,1043,938],{"class":225},[212,1045,229],{"class":218},[212,1047,1048],{"class":246},"\"F\"",[212,1050,235],{"class":218},[212,1052,1053,1055,1057,1059],{"class":214,"line":252},[212,1054,997],{"class":225},[212,1056,229],{"class":218},[212,1058,260],{"class":246},[212,1060,235],{"class":218},[212,1062,1063,1065,1067],{"class":214,"line":265},[212,1064,949],{"class":225},[212,1066,229],{"class":218},[212,1068,273],{"class":246},[212,1070,1071],{"class":214,"line":276},[212,1072,279],{"class":218},[10,1074,1075],{},"Each failure produces specific error messages that pinpoint the exact issue.",[27,1077,1079],{"id":1078},"setting-up-error-alerts","Setting Up Error Alerts",[10,1081,1082],{},"Now that your validator is catching bad data on Output 2, let's set up Telegram notifications so you get instant mobile alerts whenever validation fails.",[136,1084,1086],{"id":1085},"installing-the-telegram-node","Installing the Telegram Node",[10,1088,1089],{},"First, install the Telegram node from the palette:",[160,1091,1092,1099,1103,1108,1113,1118],{},[88,1093,1094,1095,1098],{},"Click the ",[65,1096,1097],{},"hamburger menu"," (three horizontal lines) in the top right.",[88,1100,170,1101,74],{},[65,1102,173],{},[88,1104,176,1105,1107],{},[65,1106,179],{}," tab.",[88,1109,183,1110,74],{},[41,1111,1112],{},"node-red-contrib-telegrambot",[88,1114,188,1115,1117],{},[65,1116,179],{}," next to the node.",[88,1119,1120],{},"Wait for installation to complete.",[10,1122,1123],{},"Once installed, you'll find the \"telegram sender\" and \"telegram receiver\" nodes in your palette.",[136,1125,1127],{"id":1126},"creating-your-telegram-bot-and-getting-your-chat-id","Creating Your Telegram Bot and Getting Your Chat ID",[10,1129,1130,1131],{},"Before you can send alerts, you need to create a Telegram bot and get your Chat ID. We have a detailed guide that walks you through the entire process:  ",[129,1132,1134],{"href":1133},"\u002Fnode-red\u002Fnotification\u002Ftelegram\u002F#creating-a-bot-in-telegram","How to Create a Telegram Bot and Find Your Chat ID",[10,1136,1137,1138,1141,1142,1145],{},"Once you have your ",[65,1139,1140],{},"bot token"," and ",[65,1143,1144],{},"Chat ID",", come back here to continue with the alert setup.",[136,1147,1149],{"id":1148},"create-the-alert-message","Create the Alert Message",[10,1151,1152],{},"Now we'll format the error information into a clear Telegram message.",[160,1154,1155,1158,1165,1172,1177,1180],{},[88,1156,1157],{},"Find your validator node (the JSON Schema Validator).",[88,1159,1160,1161,1164],{},"Look at its ",[65,1162,1163],{},"second output"," (the bottom one). This is where bad data with errors comes out.",[88,1166,1167,1168,1171],{},"Drag a ",[65,1169,1170],{},"function"," node onto the canvas.",[88,1173,1174,1175,74],{},"Connect it to the validator's ",[65,1176,1163],{},[88,1178,1179],{},"Double-click the function node to open it.",[88,1181,1182,1183,1186,1187,1190],{},"Change the ",[65,1184,1185],{},"Name"," at the top to: ",[41,1188,1189],{},"Format Alert"," and add the following JavaScript:",[203,1192,1196],{"className":1193,"code":1194,"language":1195,"meta":208,"style":208},"language-javascript shiki shiki-themes github-light github-dark","\u002F\u002F Get error information\nconst errors = msg.error || [];\nconst badData = msg.payload || {};\n\n\u002F\u002F Build error list\nlet errorText = \"\";\nerrors.forEach((err, index) => {\n    errorText += `${index + 1}. Field: ${err.dataPath || 'unknown'}\\n`;\n    errorText += `   Problem: ${err.message}\\n\\n`;\n});\n\n\u002F\u002F Get current time\nconst time = new Date().toLocaleString();\n\n\u002F\u002F Build the alert message\nmsg.payload = {\n  chatId: \"PUT_YOUR_CHAT_ID_HERE\",\n  type: \"message\",\n  content: `🚨 DATA VALIDATION FAILED\n\nTime: ${time}\nSensor: ${badData.sensor_id || 'Unknown'}\n\nERRORS FOUND:\n${errorText}\n\nBAD DATA:\n${JSON.stringify(badData, null, 2)}`\n};\n\nreturn msg;\n","javascript",[41,1197,1198,1204,1225,1242,1248,1253,1270,1300,1343,1369,1374,1378,1383,1407,1411,1416,1425,1435,1445,1453,1457,1467,1485,1489,1494,1504,1508,1513,1546,1552,1557],{"__ignoreMap":208},[212,1199,1200],{"class":214,"line":215},[212,1201,1203],{"class":1202},"sJ8bj","\u002F\u002F Get error information\n",[212,1205,1206,1210,1213,1216,1219,1222],{"class":214,"line":222},[212,1207,1209],{"class":1208},"szBVR","const",[212,1211,1212],{"class":225}," errors",[212,1214,1215],{"class":1208}," =",[212,1217,1218],{"class":218}," msg.error ",[212,1220,1221],{"class":1208},"||",[212,1223,1224],{"class":218}," [];\n",[212,1226,1227,1229,1232,1234,1237,1239],{"class":214,"line":238},[212,1228,1209],{"class":1208},[212,1230,1231],{"class":225}," badData",[212,1233,1215],{"class":1208},[212,1235,1236],{"class":218}," msg.payload ",[212,1238,1221],{"class":1208},[212,1240,1241],{"class":218}," {};\n",[212,1243,1244],{"class":214,"line":252},[212,1245,1247],{"emptyLinePlaceholder":1246},true,"\n",[212,1249,1250],{"class":214,"line":265},[212,1251,1252],{"class":1202},"\u002F\u002F Build error list\n",[212,1254,1255,1258,1261,1264,1267],{"class":214,"line":276},[212,1256,1257],{"class":1208},"let",[212,1259,1260],{"class":218}," errorText ",[212,1262,1263],{"class":1208},"=",[212,1265,1266],{"class":246}," \"\"",[212,1268,1269],{"class":218},";\n",[212,1271,1272,1275,1279,1282,1286,1288,1291,1294,1297],{"class":214,"line":363},[212,1273,1274],{"class":218},"errors.",[212,1276,1278],{"class":1277},"sScJk","forEach",[212,1280,1281],{"class":218},"((",[212,1283,1285],{"class":1284},"s4XuR","err",[212,1287,317],{"class":218},[212,1289,1290],{"class":1284},"index",[212,1292,1293],{"class":218},") ",[212,1295,1296],{"class":1208},"=>",[212,1298,1299],{"class":218}," {\n",[212,1301,1302,1305,1308,1311,1313,1316,1319,1322,1324,1326,1329,1332,1335,1338,1341],{"class":214,"line":376},[212,1303,1304],{"class":218},"    errorText ",[212,1306,1307],{"class":1208},"+=",[212,1309,1310],{"class":246}," `${",[212,1312,1290],{"class":218},[212,1314,1315],{"class":1208}," +",[212,1317,1318],{"class":225}," 1",[212,1320,1321],{"class":246},"}. Field: ${",[212,1323,1285],{"class":218},[212,1325,74],{"class":246},[212,1327,1328],{"class":218},"dataPath",[212,1330,1331],{"class":1208}," ||",[212,1333,1334],{"class":246}," 'unknown'}",[212,1336,1337],{"class":225},"\\n",[212,1339,1340],{"class":246},"`",[212,1342,1269],{"class":218},[212,1344,1345,1347,1349,1352,1354,1356,1359,1362,1365,1367],{"class":214,"line":389},[212,1346,1304],{"class":218},[212,1348,1307],{"class":1208},[212,1350,1351],{"class":246}," `   Problem: ${",[212,1353,1285],{"class":218},[212,1355,74],{"class":246},[212,1357,1358],{"class":218},"message",[212,1360,1361],{"class":246},"}",[212,1363,1364],{"class":225},"\\n\\n",[212,1366,1340],{"class":246},[212,1368,1269],{"class":218},[212,1370,1371],{"class":214,"line":400},[212,1372,1373],{"class":218},"});\n",[212,1375,1376],{"class":214,"line":406},[212,1377,1247],{"emptyLinePlaceholder":1246},[212,1379,1380],{"class":214,"line":414},[212,1381,1382],{"class":1202},"\u002F\u002F Get current time\n",[212,1384,1385,1387,1390,1392,1395,1398,1401,1404],{"class":214,"line":426},[212,1386,1209],{"class":1208},[212,1388,1389],{"class":225}," time",[212,1391,1215],{"class":1208},[212,1393,1394],{"class":1208}," new",[212,1396,1397],{"class":1277}," Date",[212,1399,1400],{"class":218},"().",[212,1402,1403],{"class":1277},"toLocaleString",[212,1405,1406],{"class":218},"();\n",[212,1408,1409],{"class":214,"line":438},[212,1410,1247],{"emptyLinePlaceholder":1246},[212,1412,1413],{"class":214,"line":449},[212,1414,1415],{"class":1202},"\u002F\u002F Build the alert message\n",[212,1417,1418,1421,1423],{"class":214,"line":454},[212,1419,1420],{"class":218},"msg.payload ",[212,1422,1263],{"class":1208},[212,1424,1299],{"class":218},[212,1426,1427,1430,1433],{"class":214,"line":462},[212,1428,1429],{"class":218},"  chatId: ",[212,1431,1432],{"class":246},"\"PUT_YOUR_CHAT_ID_HERE\"",[212,1434,235],{"class":218},[212,1436,1437,1440,1443],{"class":214,"line":473},[212,1438,1439],{"class":218},"  type: ",[212,1441,1442],{"class":246},"\"message\"",[212,1444,235],{"class":218},[212,1446,1447,1450],{"class":214,"line":486},[212,1448,1449],{"class":218},"  content: ",[212,1451,1452],{"class":246},"`🚨 DATA VALIDATION FAILED\n",[212,1454,1455],{"class":214,"line":496},[212,1456,1247],{"emptyLinePlaceholder":1246},[212,1458,1459,1462,1465],{"class":214,"line":501},[212,1460,1461],{"class":246},"Time: ${",[212,1463,1464],{"class":218},"time",[212,1466,279],{"class":246},[212,1468,1469,1472,1475,1477,1480,1482],{"class":214,"line":509},[212,1470,1471],{"class":246},"Sensor: ${",[212,1473,1474],{"class":218},"badData",[212,1476,74],{"class":246},[212,1478,1479],{"class":218},"sensor_id",[212,1481,1331],{"class":1208},[212,1483,1484],{"class":246}," 'Unknown'}\n",[212,1486,1487],{"class":214,"line":520},[212,1488,1247],{"emptyLinePlaceholder":1246},[212,1490,1491],{"class":214,"line":533},[212,1492,1493],{"class":246},"ERRORS FOUND:\n",[212,1495,1496,1499,1502],{"class":214,"line":543},[212,1497,1498],{"class":246},"${",[212,1500,1501],{"class":218},"errorText",[212,1503,279],{"class":246},[212,1505,1506],{"class":214,"line":549},[212,1507,1247],{"emptyLinePlaceholder":1246},[212,1509,1510],{"class":214,"line":555},[212,1511,1512],{"class":246},"BAD DATA:\n",[212,1514,1515,1517,1520,1522,1525,1528,1530,1532,1535,1537,1540,1543],{"class":214,"line":566},[212,1516,1498],{"class":246},[212,1518,1519],{"class":225},"JSON",[212,1521,74],{"class":246},[212,1523,1524],{"class":1277},"stringify",[212,1526,1527],{"class":246},"(",[212,1529,1474],{"class":218},[212,1531,317],{"class":246},[212,1533,1534],{"class":225},"null",[212,1536,317],{"class":246},[212,1538,1539],{"class":225},"2",[212,1541,1542],{"class":246},")",[212,1544,1545],{"class":246},"}`\n",[212,1547,1549],{"class":214,"line":1548},29,[212,1550,1551],{"class":218},"};\n",[212,1553,1555],{"class":214,"line":1554},30,[212,1556,1247],{"emptyLinePlaceholder":1246},[212,1558,1560,1563],{"class":214,"line":1559},31,[212,1561,1562],{"class":1208},"return",[212,1564,1565],{"class":218}," msg;\n",[160,1567,1568,1574,1581,1586,1592,1601,1606,1616,1623,1626,1634],{},[88,1569,1570,1571,74],{},"Find the line ",[41,1572,1573],{},"chatId: \"PUT_YOUR_CHAT_ID_HERE\"",[88,1575,1576,1577,1580],{},"Replace ",[41,1578,1579],{},"PUT_YOUR_CHAT_ID_HERE"," with your actual Chat ID.",[88,1582,188,1583,74],{},[65,1584,1585],{},"Done",[88,1587,1588,1589,1171],{},"Drag ",[65,1590,1591],{},"telegram sender",[88,1593,1594,1595,1597,1598,1600],{},"Connect your ",[65,1596,1189],{}," function node to the ",[65,1599,1591],{}," node.",[88,1602,1603,1604,1600],{},"Double-click the ",[65,1605,1591],{},[88,1607,1094,1608,1611,1612,1615],{},[65,1609,1610],{},"+"," icon next to ",[65,1613,1614],{},"Bot"," to add your bot configuration.",[88,1617,1618,1619,1622],{},"Paste your ",[65,1620,1621],{},"Bot Token"," that you got from BotFather.",[88,1624,1625],{},"Give it a name like \"Quality Check Bot\".",[88,1627,188,1628,1631,1632,74],{},[65,1629,1630],{},"Add",", then ",[65,1633,1585],{},[88,1635,188,1636,74],{},[65,1637,1638],{},"Deploy",[10,1640,1641],{},"Now test your setup by triggering a validation failure. You should receive an instant Telegram message showing exactly what went wrong.",[10,1643,1644],{},"Below is the complete flow that demonstrates the entire validation pipeline—from receiving sensor data to catching errors and sending Telegram alerts.",[1646,1647],"render-flow",{":height":1648,"flow":1649},"300","W3siaWQiOiI5YjlmNTU1NDg5MTFhYzY2IiwidHlwZSI6ImluamVjdCIsInoiOiJkNzEwMWYzYTRkNDVkZWVkIiwibmFtZSI6IkludmFsaWQgRGF0YSIsInByb3BzIjpbeyJwIjoicGF5bG9hZCJ9XSwicmVwZWF0IjoiIiwiY3JvbnRhYiI6IiIsIm9uY2UiOmZhbHNlLCJvbmNlRGVsYXkiOjAuMSwidG9waWMiOiIiLCJwYXlsb2FkIjoie1widGVtcGVyYXR1cmVcIjpcIkVSUlwiLFwidW5pdFwiOlwiQ2Vsc2l1c1wiLFwic2Vuc29yX2lkXCI6XCJURU1QX0xJTkVfMDFcIixcInRpbWVzdGFtcFwiOlwiMjAyNS0xMS0yMVQxMDozMDowMFpcIn0iLCJwYXlsb2FkVHlwZSI6Impzb24iLCJ4IjoyNjAsInkiOjQ4MCwid2lyZXMiOltbIjkzYzI4OTVlOTM1MDdlMTkiXV19LHsiaWQiOiJhZTExMGUwN2FkNzY4NWQ3IiwidHlwZSI6ImRlYnVnIiwieiI6ImQ3MTAxZjNhNGQ0NWRlZWQiLCJuYW1lIjoiRGF0YSIsImFjdGl2ZSI6dHJ1ZSwidG9zaWRlYmFyIjp0cnVlLCJjb25zb2xlIjpmYWxzZSwidG9zdGF0dXMiOmZhbHNlLCJjb21wbGV0ZSI6InRydWUiLCJ0YXJnZXRUeXBlIjoiZnVsbCIsInN0YXR1c1ZhbCI6IiIsInN0YXR1c1R5cGUiOiJhdXRvIiwieCI6NzYwLCJ5IjozNjAsIndpcmVzIjpbXX0seyJ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HVyZVwiLCBcInVuaXRcIiwgXCJzZW5zb3JfaWRcIiwgXCJ0aW1lc3RhbXBcIl0sXG4gICAgICAgICAgICBcInByb3BlcnRpZXNcIjoge1xuICAgICAgICBcInRlbXBlcmF0dXJlXCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bWJlclwiLFxuICAgICAgICAgICAgICAgIFwibWluaW11bVwiOiAwLFxuICAgICAgICAgICAgICAgICAgICBcIm1heGltdW1cIjogMTAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgXCJkZXNjcmlwdGlvblwiOiBcIlRlbXBlcmF0dXJlIHJlYWRpbmcgaW4gQ2Vsc2l1c1wiXG4gICAgICAgIH0sXG4gICAgICAgIFwidW5pdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIixcbiAgICAgICAgICAgICAgICBcImVudW1cIjogW1wiQ2Vsc2l1c1wiXSxcbiAgICAgICAgICAgICAgICAgICAgXCJkZXNjcmlwdGlvblwiOiBcIlRlbXBlcmF0dXJlIHVuaXQgKENlbHNpdXMgb25seSlcIlxuICAgICAgICB9LFxuICAgICAgICBcInNlbnNvcl9pZFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIixcbiAgICAgICAgICAgICAgICBcInBhdHRlcm5cIjogXCJeVEVNUF9MSU5FX1swLTldKyRcIixcbiAgICAgICAgICAgICAgICAgICAgXCJkZXNjcmlwdGlvblwiOiBcIlNlbnNvciBpZGVudGlmaWVyIGZvbGxvd2luZyB0aGUgcmVxdWlyZWQgbmFtaW5nIGNvbnZlbnRpb25cIlxuICAgICAgICB9LFxuICAgICAgICBcInRpbWVzdGFtcFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIixcbiAgICAgICAgICAgICAgICBcImZvcm1hdFwiOiBcImRhdGUtdGltZVwiLFxuICAgICAgICAgICAgICAgICAgICBcImRlc2NyaXB0aW9uXCI6IFwiSVNPIDg2MDEg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HNlLCJzb2Nrc2hvc3QiOiIiLCJzb2Nrc3Byb3RvY29sIjoic29ja3M1Iiwic29ja3Nwb3J0Ijo2NjY3LCJzb2Nrc3VzZXJuYW1lIjoiYW5vbnltb3VzIiwic29ja3NwYXNzd29yZCI6IiIsImJvdGhvc3QiOiIiLCJib3RwYXRoIjoiIiwibG9jYWxib3Rob3N0IjoiMC4wLjAuMCIsImxvY2FsYm90cG9ydCI6ODQ0MywicHVibGljYm90cG9ydCI6ODQ0MywicHJpdmF0ZWtleSI6IiIsImNlcnRpZmljYXRlIjoiIiwidXNlc2VsZnNpZ25lZGNlcnRpZmljYXRlIjpmYWxzZSwic3NsdGVybWluYXRlZCI6ZmFsc2UsInZlcmJvc2Vsb2dnaW5nIjpmYWxzZX0seyJpZCI6ImUxYWJkMDE2OTljMTI5ZGYiLCJ0eXBlIjoiZ2xvYmFsLWNvbmZpZyIsImVudiI6W10sIm1vZHVsZXMiOnsibm9kZS1yZWQtY29udHJpYi1mdWxsLW1zZy1qc29uLXNjaGVtYS12YWxpZGF0aW9uIjoiMS4xLjAiLCJub2RlLXJlZC1jb250cmliLXRlbGVncmFtYm90IjoiMTcuMC4zIn19XQ==",[27,1651,1653],{"id":1652},"wrapping-up","Wrapping Up",[10,1655,1656],{},"You now have a working validator that stops corrupted data before it reaches your dashboards and automation logic. Bad sensor readings, malformed payloads, missing fields—your system catches them all and sends you detailed Telegram alerts the moment validation fails.",[10,1658,1659],{},"Pick one critical data source and deploy your validator there first. Watch how it performs, adjust your schema based on real patterns, then roll it out to additional sources. Apply this approach everywhere data enters your system—MQTT streams, API endpoints, PLC connections. You'll shift from constantly troubleshooting mysterious failures to preventing them entirely.",[10,1661,1662],{},"Pay attention to your validation metrics. High failure rates from specific sensors signal equipment problems. Recurring error patterns reveal network issues or configuration drift. Your validator becomes an early warning system for operational problems.",[10,1664,1665],{},"The validation patterns you build today make your automation trustworthy tomorrow.",[10,1667,1668,1669,1673,1674,1678],{},"Want to discover how FlowFuse helps you collect, validate, enrich, and use machine data to reduce costs and improve operational efficiency, along with powerful enterprise features? ",[129,1670,1672],{"href":1671},"\u002Fcontact-us\u002F","Contact us"," or ",[129,1675,1677],{"href":1676},"\u002Fbook-demo\u002F","Book a demo"," to get started.",[1680,1681,1682],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}",{"title":208,"searchDepth":222,"depth":222,"links":1684},[1685,1686,1687,1692,1697],{"id":29,"depth":222,"text":30},{"id":57,"depth":222,"text":58},{"id":117,"depth":222,"text":118,"children":1688},[1689,1690,1691],{"id":138,"depth":238,"text":139},{"id":197,"depth":238,"text":198},{"id":688,"depth":238,"text":689},{"id":1078,"depth":222,"text":1079,"children":1693},[1694,1695,1696],{"id":1085,"depth":238,"text":1086},{"id":1126,"depth":238,"text":1127},{"id":1148,"depth":238,"text":1149},{"id":1652,"depth":222,"text":1653},"md",{"navTitle":5,"excerpt":1700},{"type":7,"value":1701},[1702],[10,1703,12],{},"\u002Fblog\u002F2025\u002F11\u002Findustrial-data-validation-guide",{"title":5,"description":12},"blog\u002F2025\u002F11\u002Findustrial-data-validation-guide","BkRKDTHRjYSJUwcj5frQMCeiNEBEu9Bt3ESgNa-Lnrs",1780070553773]