web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Automate Json §r...
Power Apps
Answered

Power Automate Json §ref mistake

(0) ShareShare
ReportReport
Posted on by 194

Hello together I have the following problem

I have written an Excel import function that has actually always worked but now not.

The user can upload an excel in sharepoint and then import an excel

 

mer_0-1662633923985.png

The import start ("Import Starten") is formatted by me this is the code:

{
"elmType": "button",
"txtContent": "Import Starten",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"06cd929f-aec8-4ebb-899f-d85c4fbf8cee\"}"
}
}
 
The error message is in the first line
 
mer_1-1662634125418.png

 

I have entered the code of the first line in the explorer

 

mer_3-1662634210857.png

 

 

I searched the area with $ref and found the following 2 entries

 

mer_2-1662634202188.png

 

I have also linked to the corresponding Power Automate workflow.

I think the error could be in the first two steps but I'm not sure.

 

Enclosed the steps from PowerAutomate 

1. for a selected file ("Für eine ausgewählte Datei")

 

mer_4-1662634354096.png

also the corresponding preview code

{
    "kind""ApiConnection",
    "splitOn""@triggerBody()['rows']",
    "inputs": {
        "schema": {
            "type""object",
            "properties": {
                "rows": {
                    "type""array",
                    "items": {
                        "type""object",
                        "properties": {
                            "entity": {
                                "type""object",
                                "properties": {
                                    "ID": {
                                        "title""ID",
                                        "type""integer",
                                        "format""int64"
                                    },
                                    "fileName": {
                                        "title""fileName",
                                        "type""string"
                                    }
                                },
                                "required": [
                                    "ID",
                                    "fileName"
                                ]
                            }
                        },
                        "required": [
                            "entity"
                        ]
                    }
                }
            },
            "required": [
                "rows"
            ]
        },
        "host": {
            "connection": {
                "name""@parameters('$connections')['shared_sharepointonline_1']['connectionId']"
            }
        },
        "operationId""ForASelectedFileHybridTrigger",
        "parameters": {
            "dataset""https://marabu0.sharepoint.com/sites/Investitionsantrag",
            "table""396d2319-dd5e-451d-973c-652f89a0f3c4"
        }
    },
    "metadata": {
        "operationMetadataId""07e15fc5-4aee-4723-a8d3-546c23043c24"
    }
}
 
Also the second step List existing rows in table ("In Tabelle vorhandene Zeilen auflisten")
mer_5-1662634439040.png

 

here the previous code as well 

 

    "inputs": {
        "host": {
            "connectionName""shared_excelonlinebusiness_1",
            "operationId""GetItems",
            "apiId""/providers/Microsoft.PowerApps/apis/shared_excelonlinebusiness"
        },
        "parameters": {
            "source""https://marabu0.sharepoint.com/sites/Investitionsantrag/",
            "drive""b!xxRDk4ivVU-Omb--gkfOXjfKW84iPihBh4pxCzIVyfYZI205Xt0dRZc8ZS-JoPPE",
            "file""/@{triggerBody()?['entity']?['fileName']}",
            "table""Import"
        },
        "authentication": {
            "type""Raw",
            "value""@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
        }
    },
    "metadata": {
        "015QV3XBKNH4LSD2FTQVDKIAHG6V2KHWDU""/Importvorlage 2022 für Test.xlsx",
        "operationMetadataId""29d3c624-b50d-494b-9f76-4dbea79e7f2b",
        "tableId""Import"
    }
}
 
 
Possibly the error could also be in the JSON parse
 
mer_6-1662634512333.png
{
    "type""array",
    "items": {
        "type""object",
        "properties": {
            "@@odata.etag": {
                "type""string"
            },
            "ItemInternalId": {
                "type""string"
            },
            "Import-Referenz-ID": {
                "type""string"
            },
            "Investitionsobjekt": {
                "type""string"
            },
            "KstVer": {
                "type""string"
            },
            "Betrag": {
                "type""string"
            },
            "Kostenstelle (Nummer)": {
                "type""string"
            },
            "Verantwortliche (E-Mail)": {
                "type""string"
            },
            "Beschreibung": {
                "type""string"
            }
        },
        "required": [
            "@@odata.etag",
            "ItemInternalId",
            "Import-Referenz-ID",
            "Investitionsobjekt",
            "KstVer",
            "Betrag",
            "Kostenstelle (Nummer)",
            "Verantwortliche (E-Mail)",
            "Beschreibung"
        ]
    }
}
 
I hope the information is sufficient and you can help me here
Categories:
  • Verified answer
    Ömer Profile Picture
    194 on at

    Hello together i have found my mistake with research 

     

    {
    "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
    "elmType": "button",
    "txtContent": "Import Starten",
    "customRowAction": {
    "action": "executeFlow",
    "actionParams": "{\"id\": \"06cd929f-aec8-4ebb-899f-d85c4fbf8cee\"}"
    }
    }

     

    it was a problem with the actionPrams because in the tab of my workflow the id of the flow changed

     

    mer_0-1662644989397.png

     

    i have changed the id and then my workflow worked again

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard