Geochart Error in a Community

  • 1
  • Problem
  • Updated 7 months ago
  • Acknowledged
I'm receiving this error when I try to show a Geochart in a community (Partner template):

Unable to render GeoChart: ZIP resource contained no file at path: maps/us-all.geo.json

When I preview the page in a regular Skuid/Salesforce tab, the Geochart works fine, but when inserted into a community the Geochart does not appear and I receive the error.

On Skuid release 11.1.7
Photo of Chelsea Curtis

Chelsea Curtis

  • 120 Points 100 badge 2x thumb

Posted 7 months ago

  • 1
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 1,310 Points 1k badge 2x thumb
Hi Chelsea, Can you reproduce this on a new page (that only includes only the Geochart and standard salesforce objects and fields)? If yes, could you please paste the XML here? I'd be happy to investigate.
Photo of Chelsea Curtis

Chelsea Curtis

  • 120 Points 100 badge 2x thumb
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="false" showheader="false" theme="Material Blue">
    <models>
        <model id="DataModel" query="true" createrowifnonefound="false" datasource="salesforce" sobject="Opportunity" type="aggregate">
            <fields>
                <field id="Amount" name="sumAmount" function="SUM"/>
            </fields>
            <conditions>
                <condition type="fieldvalue" value="true" enclosevalueinquotes="false" field="Current_Campaign_Donation__c"/>
            </conditions>
            <actions/>
            <groupby method="simple">
                <field id="Account.BillingState" name="accountBillingState"/>
            </groupby>
        </model>
    </models>
    <components>
        <skuidvis__geochart model="DataModel" maintitle="{{Model.labelPlural}}" maptype="us-all" height="600px" uniqueid="sk-2Hfa-530" mapgroup="na">
            <colors/>
            <legend/>
            <serieslist>
                <series joinBy="hc-key" valueField="sumAmount" statefield="accountBillingState"/>
            </serieslist>
            <buckets/>
        </skuidvis__geochart>
    </components>
    <resources>
        <labels/>
        <javascript/>
        <css/>
        <actionsequences uniqueid="sk-1o3K-508"/>
    </resources>
    <styles>
        <styleitem type="background" bgtype="none"/>
    </styles>
</skuidpage>
(Edited)
Photo of Chelsea Curtis

Chelsea Curtis

  • 120 Points 100 badge 2x thumb
Thanks Luzie! See above for example. 
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 1,310 Points 1k badge 2x thumb
Thanks for the XML. As far as I can see, this issue is not related to your Skuid page, but to the Geochart in general. Please see my reply below.
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 1,310 Points 1k badge 2x thumb
I tested a Skuid page (containing the Geochart) on a community homepage and I can also see the error in the preview of the builder, however if I open the community through its standard URL, the Geochart appears without any error. Do you get the error only in the builder or also if you open the standard community URL? You can find it in the community administration settings or while you are in the builder through the top left menu icon -> View communityname.
(Edited)
Photo of Chelsea Curtis

Chelsea Curtis

  • 120 Points 100 badge 2x thumb
Yes, strange. It does work when I don't use the Preview in Builder... Why is that? Is this something that can be fixed on the skuid/geochart side? Thanks!