Google Sheet fails to map 3 out of 15 fields

Describe the problem/error/question

I have a JSON with 15 properties. I can map 12 of them in a Google Sheet Row. But when I try to map the other three, the mapping doesn’t work. Just 3 random properties.

What is the error message (if any)?

No Error

Please share your workflow

{
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -1220,
        -820
      ],
      "id": "b1e407fd-27b7-4314-a4be-3fbf73e29e00",
      "name": "When clicking ‘Test workflow’"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "985755b2-2192-440e-a4be-e615cf66064f",
              "name": "output",
              "value": "*1. Prozessgegenstand*\\n300-Produktion\\n---\\n*2. Prozessschritt*\\n320 - WKZ Einrichten\\n---\\n*3. Prozessursachenelement (4M)*\\n1. Düsen-Einrichter/AWETA\\n2. Stapler/Kran\\n3. Kalibrierungssystem\\n4. Materialflusskontrollsystem\\n5. Justageeinheit\\n6. Spritzgussmaschine\\n7. Werkzeug Nummer\\n8. Düse\\n---\\n*1. Funktion des Prozessgegenstands*\\nHerstellung von kundentauglichen Kunststoffdichtungen\\n---\\n*2. Funktion des Prozessschritts / -ursachenelements*\\nVorbereitung eines störungsfreien Produktionsprozesses durch korrekte Justage, Kalibrierung und Kontrolle des Materialflusses.\\n---\\n*Produkt bzw. Prozessmerkmal*\\n1.Kompetenz des Einrichters\\n2.Funktionalität der WKZ und Düse\\n3.Justage Parameter\\n4.Kalibrierungs Parameter\\n5.Materialfluss Parameter\\n6.Maschinen Nummer\\n7.Technische Maschinen Spezifikationen\\n8.Werkzeug Nummer\\n---\\n*Fehlerfolgen (FF)*\\nProduktions- und Betriebsstörung\\nMöglicher Lieferstopp\\n---\\n*Bedeutung (B) der FF*\\n10 – Produktions- und Betriebsstörung\\n8 – Möglicher Lieferstopp\\n---\\n*Fehlerart (FA) des Prozessschritts*\\nFalsche Düse eingestellt\\nFalsche Kalibrierung\\nUnzureichende oder fehlerhafte Justage\\nStörung im Materialfluss\\n---\\n*Fehlerursache (FU) des Ursachenelements*\\nUnzureichende Ausbildung des Einrichters\\nMissverständnisse oder Übersehen der technischen Spezifikationen\\nFehler bei der Kalibrierung\\nProbleme während des Justageprozesses\\nStörungen im Materialfluss\\n---\\n*Vorhandene Vermeidungsmaßnahme (VM) für FU*\\nAusbildung und Fortbildung des Einrichters\\nDoppelte Überprüfung der Spezifikationen und Einstellungen\\nRoutineinspektionen und Kalibrierungszyklen\\nÜberwachung des Materialflusses\\n---\\n*Auftreten (A) der FU*\\n6 – Unzureichende Ausbildung des Einrichters\\n4 – Missverständnisse oder Übersehen der technischen Spezifikationen\\n7 – Fehler bei der Kalibrierung\\n5 – Probleme während des Justageprozesses\\n6 – Störungen im Materialfluss\\n---\\n*Vorhandene Entdeckungsmaßnahmen (EM) für FU*\\nRegelmäßige interne Revisionen\\nÜberprüfung durch Fachpersonal vor Produktionsstart\\n---\\n*Entdeckung (E) der FU/FA*\\n5 – Unzureichende Ausbildung des Einrichters\\n3 – Missverständnisse oder Übersehen der technischen Spezifikationen\\n4 – Fehler bei der Kalibrierung\\n6 – Probleme während des Justageprozesses\\n5 – Störungen im Materialfluss\\n---\\n*Aktionspriorität*\\nH – Fehler bei der Kalibrierung\\nM – Unzureichende Ausbildung des Einrichters\\nL – Missverständnisse oder Übersehen der technischen Spezifikationen\\nH – Probleme während des Justageprozesses\\nM – Störungen im Materialfluss\\n---\\n*Interne Bewertung*\\nProzess erfordert intensive Überwachung aufgrund mehrerer hoch priorisierter Risiken.\\n---\\n*KI>Optimierte Vermeidungsmaßnahme*\\nIntensivere Schulung und regelmäßige Auffrischungen\\nFeste Kalibrierungszyklen und Justageprozeduren\\nEtablierung eines robusten Materialflussüberwachungssystems\\n---\\n*KI>Optimierte Entdeckungsmaßnahme*\\nImplementierung regelmäßiger Inspektionen und Routinetests\\nAusführliche Kontrolle vor Produktionsstart durch ausgebildetes Personal",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -960,
        -820
      ],
      "id": "3b8ee702-327a-4fc6-a29c-8e97a288775a",
      "name": "Edit Fields1"
    },
    {
      "parameters": {
        "jsCode": "const input = $input.first().json.output;\n\n// Entfernt alle Inhalte zwischen zwei Sternchen (inkl. der Sternchen selbst)\nconst cleaned = input.replace(/\\*[^*]*\\*/g, '');\n\n// Splittet bei \"---\", trimmt und filtert leere Einträge\nconst array = cleaned.split(\"---\").map(part => part.trim()).filter(Boolean);\n\n// Erstellt ein Objekt mit den Textabschnitten als Keys, Werten = null\nconst result = {};\narray.forEach((part , index) => {\n  result[`${index}_item`] = part;\n});\n\n// Optional: result ausgeben\nconsole.log(result);\nreturn result;"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -740,
        -820
      ],
      "id": "6524a0e7-bf28-4b67-aa9f-59e7a6db8d92",
      "name": "Code2"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "=17Ux66JuTMhP-ZdPMoYXIuDAO77C-a1kWQQteN_mAJn0",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Tabellenblatt1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Ux66JuTMhP-ZdPMoYXIuDAO77C-a1kWQQteN_mAJn0/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "1. Prozessgegenstand": "={{ $json[\"0_item\"] }}",
            "2. Prozessschritt": "={{ $json[\"1_item\"] }}",
            "3. Prozessursachenelement (4M)": "={{ $json[\"2_item\"] }}",
            "1. Funktion des Prozessgegenstands": "={{ $json[\"3_item\"] }}",
            "2. Funktion des Prozessschritts / -ursachenelements": "={{ $json[\"4_item\"] }}",
            "3.  Produkt bzw. Prozessmerkmal": "={{ $json[\"5_item\"] }}",
            "1. Fehlerfolgen (FF)": "={{ $json[\"6_item\"] }}",
            "2. Fehlerart (FA) des Prozessschritts": "={{ $json[\"8_item\"] }}",
            "3. Fehlerursache (FU)  des Ursachenelements": "={{ $json[\"9_item\"] }}",
            "Vorhandene Vermeidungsmaßnahme (VM) für FU": "={{ $json[\"10_item\"] }}",
            "Vorhandene Entdeckungsmaßnahmen (EM) für FU": "={{ $json[\"12_item\"] }}",
            "AP": "={{ $json[\"14_item\"] }}",
            "Interne Bewertung": "={{ $json[\"15_item\"] }}",
            "Vermeidungsmaßnahme": "={{ $json[\"16_item\"] }}",
            "Entdeckungsmaßnahme": "={{ $json[\"17_item\"] }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "1. Prozessgegenstand",
              "displayName": "1. Prozessgegenstand",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "2. Prozessschritt",
              "displayName": "2. Prozessschritt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "3. Prozessursachenelement (4M)",
              "displayName": "3. Prozessursachenelement (4M)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "1. Funktion des Prozessgegenstands",
              "displayName": "1. Funktion des Prozessgegenstands",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "2. Funktion des Prozessschritts / -ursachenelements",
              "displayName": "2. Funktion des Prozessschritts / -ursachenelements",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "3.  Produkt bzw. Prozessmerkmal",
              "displayName": "3.  Produkt bzw. Prozessmerkmal",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "1. Fehlerfolgen (FF)",
              "displayName": "1. Fehlerfolgen (FF)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Bedeutung (B)\nder FF",
              "displayName": "Bedeutung (B)\nder FF",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "2. Fehlerart (FA) des Prozessschritts",
              "displayName": "2. Fehlerart (FA) des Prozessschritts",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "3. Fehlerursache (FU)  des Ursachenelements",
              "displayName": "3. Fehlerursache (FU)  des Ursachenelements",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Vorhandene Vermeidungsmaßnahme (VM) für FU",
              "displayName": "Vorhandene Vermeidungsmaßnahme (VM) für FU",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Auftreten (A)\nder FU",
              "displayName": "Auftreten (A)\nder FU",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Vorhandene Entdeckungsmaßnahmen (EM) für FU",
              "displayName": "Vorhandene Entdeckungsmaßnahmen (EM) für FU",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Entdeckung (E) \nder FU/FA",
              "displayName": "Entdeckung (E) \nder FU/FA",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "AP",
              "displayName": "AP",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Interne Bewertung",
              "displayName": "Interne Bewertung",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Vermeidungsmaßnahme",
              "displayName": "Vermeidungsmaßnahme",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Entdeckungsmaßnahme",
              "displayName": "Entdeckungsmaßnahme",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Verantwortlicher",
              "displayName": "Verantwortlicher",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Geplantes Fertigstellungsdatum",
              "displayName": "Geplantes Fertigstellungsdatum",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Ergriffene Maßnahme mit Nachweis",
              "displayName": "Ergriffene Maßnahme mit Nachweis",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Fertigstellungsdatum",
              "displayName": "Fertigstellungsdatum",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Bedeutung (B)",
              "displayName": "Bedeutung (B)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Auftreten (A)",
              "displayName": "Auftreten (A)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Entdeckung (E)",
              "displayName": "Entdeckung (E)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "AP",
              "displayName": "AP",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Bemerkung / Entscheidung",
              "displayName": "Bemerkung / Entscheidung",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Product ID",
              "displayName": "Product ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "General Data Row",
              "displayName": "General Data Row",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "System ID",
              "displayName": "System ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "System Function ID",
              "displayName": "System Function ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "System Failure Mode ID",
              "displayName": "System Failure Mode ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Failure Mode Heir ID",
              "displayName": "Failure Mode Heir ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Failure Mode Failure Cause ID",
              "displayName": "Failure Mode Failure Cause ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Failure Cause Foreign Key",
              "displayName": "Failure Cause Foreign Key",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Action ID",
              "displayName": "Action ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        -420,
        -820
      ],
      "id": "9e1d27c0-b066-43c5-91f9-968b7ec127b2",
      "name": "Tabelle mit Prozessschritten füllen",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "uzcqUXsoTfAzlwsI",
          "name": "Google Sheets account"
        }
      }
    }
  ],
  "connections": {
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Code2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code2": {
      "main": [
        [
          {
            "node": "Tabelle mit Prozessschritten füllen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "d86ea2c40fed1304c8f17c31682724abbc6f5aac0d1969b0e7ba230c7df9e467"
  }
}


## Share the output returned by the last node
No error. The expected output, without the three properties

## Information on your n8n setup
- **n8n version:** Version 1.91.3
- **Database (default: SQLite):** 
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** docker
- **Operating system:** Linux
1 Like

Hi @KirillSurikow

Can you upload your workflow into a code block here? I cant paste your workflow into n8n.

Here’s a gif on how to upload your workflow.

pasteworkflow

1 Like
1 Like

Sure, thanks for the reply.

1 Like

Hi @KirillSurikow

I replicated this on my google sheets/n8n and was able to see all 17 fields move to my google sheet. What are you seeing on your end?

HI @rbreen,
I found the issue. I have used Google Sheets “Convert to table” feature. This feature has turned the three columns-names vertically and n8n didn’t accept them. Thank you for your time!

Have a good one

2 Likes

Got it. If you can, mark an answer as the solution so others can benifit from it.

Best,

Robert

Unluckily, it still persists. I was to fast in my conclusion. I have tested it in a test workflow, with horizontal colums and it worked. After merging to my main-workflow. The problem came back :sweat_smile: The problem must be somewhere else.

I can’t use javascript in these particular fields.

Sry, for the inconvenience

PS. I used the wrong character § instead of $ but in the first field you can see the issue

1 Like

watching like to know what cause this :slight_smile: