Issue: Data source cannot refer to the same element

Creating a Repeating Group and getting this error “Data source cannot refer to the same element”. I need help understanding how to take JSON from an API call using the API Connector plugin and display the results in a Repeating Group.

Here’s the scenario.

The Plugin call is “Sale Detail Action” and Use As is set to Action. When a button is clicked the workflow calls this action which gets the resulting JSON from the service.

I’ve created a Repeating Group and set the Type Of Content to “Sale Detail Action body property” which is the list of properties.

The Data Source is set to “Repeating Group Sale Detail Action body property’s List of Sale Detail Action body propertys”. And that’s when the issue comes up saying “Data source cannot refer to the same element”.

Admittedly I’m new to Bubble and so I’m probably missing something obvious here, but I cannot figure out how to populate the Repeating Group with the list returned in the JSON. Your help is greatly appreciated!

The API call returns this JSON that has a list of properties:

{
    "body": {
        "status": {
            "version": "1.0.0",
            "code": 0,
            "msg": "SuccessWithResult",
            "total": 30,
            "page": 1,
            "pagesize": 10
        },
        "property": [
            {
                "address": {
                    "country": "US",
                    "countrySubd": "TX",
                    "line1": "2223 GLENDAVON LN",
                    "line2": "KATY, TX 77450",
                    "locality": "Katy",
                    "matchCode": "ExaStr",
                    "oneLine": "2223 GLENDAVON LN, KATY, TX 77450",
                    "postal1": "77450",
                    "postal2": "6741",
                    "postal3": "C004"
                },
            },
            {
                "address": {
                    "country": "US",
                    "countrySubd": "TX",
                    "line1": "1942 BEVINGTON OAKS CIR",
                    "line2": "KATY, TX 77450",
                    "locality": "Katy",
                    "matchCode": "ExaStr",
                    "oneLine": "1942 BEVINGTON OAKS CIR, KATY, TX 77450",
                    "postal1": "77450",
                    "postal2": "6048",
                    "postal3": "C011"
                },
            }
        ]
    },
    "headers": {
        "server": "nginx/1.9.6",
        "date": "Sat, 02 Jun 2018 21:11:39 GMT",
        "content-type": "application/json",
        "content-length": "23827",
        "connection": "keep-alive",
        "cache-control": "no-cache",
        "pragma": "no-cache",
        "expires": "-1",
        "x-aspnet-version": "4.0.30319",
        "x-powered-by": "ASP.NET",
        "access-control-allow-origin": "*",
        "access-control-allow-credentials": "true"
    }
}
1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.