Hi @tommed
Yup, you have a hard-to-debug mapping issue...
The pipeline is working but when elasticserach tries to write the doc ... the document is invalid.
Go to Kibana Dev Tools
If you run, _simulate, it will run
POST _ingest/pipeline/mcd-transactions-prod/_simulate
{
"docs": [
{
"_source": {
"input": {
"type": "gcp-pubsub"
},
...
"event": {
"created": "2024-03-05T16:05:05.943Z",
"id": "457b5de599-9390117397579038",
"dataset": "gcp_pubsub.notifications"
},
"message": "{\"uid\":\"c4556918eda84716b97169e23f91347f\",\"event_time_local\":\"2024-03-05T11:04:48Z\",\"event_time_utc\":\"2024-03-05T16:04:48Z\",\"rule_triggered\":\"Sale\",\"agent_urn\":\"REDACTED.mcd.agents.ca.vipro.online\",\"region\":\"REDACTED\",\"store\":\"REDACTED\",\"store_number\":\"REDACTED\",\"pos\":\"REDACTED\",\"has_media\":true,\"meta\":{\"Booth\":\"0\",\"BusinessDate\":\"638451936000000000\",\"Cashless\":\"REDACTED\",\"CheapestItem\":\"2.35\",\"CrewId\":\"0\",\"CrewName\":\"REDACTED\",\"CustomerId\":\"\",\"FilePath\":\"c4556918eda84716b97169e23f91347f.zip\",\"GrillQuantity\":\"0\",\"HasVoidedItems\":\"False\",\"Id\":\"REDACTED\",\"IniAttachmentWriteMethods\":\"c4556918eda84716b97169e23f91347f-Itl=base64,c4556918eda84716b97169e23f91347f-Receipt=utf8_bytes\",\"IsMobileOrder\":\"False\",\"IsPromo\":\"False\",\"IsRecall\":\"No\",\"IsRefund\":\"False\",\"IsTransactionVoid\":\"0\",\"ItemActions\":\"[RECIPE, True]\",\"ItemCategories\":\"[FOOD, True]\",\"ItemCodes\":\"[11627, True],[89100020, True]\",\"ItemQuantity\":\"3\",\"ItemTypes\":\"[PRODUCT, True],[NON_FOOD_PRODUCT, True]\",\"Key\":\"POS0011:942173294\",\"Kind\":\"Sale\",\"LineItemCount\":\"3\",\"LiveStore.Version\":\"8.0.0.0\",\"LiveStore.Version.File\":\"8.3.269.0\",\"LiveStore.Version.Product\":\"8.3.269.0\",\"LocalTime\":\"638452334880000000\",\"MachineName\":\"REDACTED\",\"Major\":\"1824\",\"Managers\":\"\",\"Minor\":\"0\",\"MobileOrderKey\":\"\",\"MobileOrderType\":\"\",\"MostExpensiveItem\":\"2.35\",\"NodeId\":\"POS0011\",\"NodeStatus\":\"NO_STATUS\",\"NonProductAmount\":\"0\",\"NonProductTax\":\"0\",\"Pod\":\"REDACTED\",\"PosTimingsItemsCount\":\"3\",\"PosTimingsUntilPay\":\"20240305110448888\",\"PosTimingsUntilStore\":\"\",\"PosTimingsUntilTotal\":\"20240305110422862\",\"Products\":\"REDACTED\",\"PromoItemQuantity\":\"0\",\"Reason\":\"Receipt\",\"Receipt\":\"ContentType: Receipt\\r\\nTime: 2024-03-05 11:04:48\\r\\nReceipt: 24\\r\\nCrewId: 0\\r\\nCrewName: REDACTED\\r\\nTillNumber: REDACTED\\r\\nLine Items: 3\\r\\nItem Count: 3\\r\\nPromo Items: 0\\r\\nRecalled? No\\r\\nStoredAway? False\\r\\nCashless: REDACTED\\r\\nReduced By: 0.00\\r\\nManagers: \\r\\nItems:\\r\\nArchCardRedeemed\\r\\n REDACTED @ 2.35[TAX=0.31]\\r\\n 3x Milk @ 0.00\\r\\n 2x Sugar @ 0.00\\r\\n REDACTED @ 2.35[TAX=0.30]\\r\\n REDACTED @ 0.00\\r\\n REDACTED @ 0.00\\r\\n REDACTED @ 0.00\\r\\n==========================\\r\\n Total: 5.31\\r\\n==========================\\r\\n\\r\\nPayment Methods: INTERAC\",\"ReceiptNumber\":\"24\",\"ReductionAmount\":\"0.00\",\"RegId\":\"2447\",\"RoomNumber\":\"\",\"Rule.ListenFor\":\"Sale\",\"Rule.Name\":\"Hydra_Receipts\",\"Rule.OnTrigger\":\"Hydra_Receipts\",\"Rule.Policies\":\"(CatchAll='1')\",\"SalesType\":\"TakeOut\",\"Side\":\" \",\"Status\":\"Paid\",\"SysCustomer\":\"VApps\",\"SysRegion\":\"REDACTED\",\"SysStore\":\"REDACTED\",\"TabNumber\":\"\",\"TenderDiscount\":\"No\",\"Tenders\":\"DEBIT CARD\",\"TillEventStrategy\":\"SaleTillEvent\",\"TotalAmount\":\"4.70\",\"TotalExcTax\":\"4.70\",\"TotalPlusTax\":\"5.31\",\"TotalTax\":\"0.61\",\"UniqueId\":\"1lydyc8h2m\",\"UsedGrill\":\"False\",\"UtcOffset\":\"-5\",\"UtcTimestamp\":\"638452334880000000\",\"UtcTimestampFrom\":\"EvSaleEnd\",\"VoidedItemQuantity\":\"0\",\"WasStored\":\"False\",\"WindowsIdentity\":\"NT AUTHORITY\\\\SYSTEM\",\"WindowsUserName\":\"SYSTEM\",\"WindowsVersion\":\"Microsoft Windows NT 6.2.9200.0\"}}",
"labels": {
"agent-serial-number": "94087701183300122020706496654009847034311326751",
"source-service": "cloud-ingress-mcdonalds"
},
"tags": [
"mcd"
]
}
}
]
}
But if you try to actually try to write the doc it will fail
POST discuss-test/_doc?pipeline=mcd-transactions-prod
{
"input": {
"type": "gcp-pubsub"
},
"agent": {
...
Here is the actual error
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "can't merge a non object mapping [livestore.meta.LiveStore.Version] with an object mapping"
}
],
"type": "illegal_argument_exception",
"reason": "can't merge a non object mapping [livestore.meta.LiveStore.Version] with an object mapping"
},
"status": 400
}
You have "LiveStore.Version":
all over the place, which is causing mapping conflicts
How to fix?
You will need to clean that up before you write
You probably need to de-dot some fields and move some fields around etc...
BTW ^^^ Pro Tips for debugging Ingest pipelines