Metadata error when publishing to Data.gov

368
1
05-08-2019 09:46 AM
AndreaConver
New Contributor III

I am in the process of publishing a Open Data catalog to Data.gov using Esri's automatically generated /data.json file. Unfortunately, I hit a snag with this metadata validation tool: https://labs.data.gov/dashboard/validate

All of my datasets have two errors: "The property bureauCode is required" and "The property programCode is required".

I now have the codes for both of the values, but I can't figure out where to add them in AGOL. Has anyone else run into his problem? If so, how did you solve it?

0 Kudos
1 Reply
AndreaConver
New Contributor III

I resolved these errors with help from Esri staff. I've copied the steps below in case someone else runs into the same issue in the future.

*Note: site must be PUBLICLY accessible to view custom config results in data.json

 

Step by Step Instructions

 

https://hub.arcgis.com/admin/sites

 

Click on YourSite > Groups Manager button

 

Example: https://hub.arcgis.com/admin/sites/56b71074912341538ae57f26e82bec2f/groups

 

 

Click the DCAT Feed button

 

 

Copy paste this code with YOUR bureau and program codes (highlighted below) anywhere after a comma and before the last bracket.

 

If just one bureau and program code:

"bureauCode": [

      "010:86"

      ],

    "programCode": [

        "015:001"

      ],

 

 

If more than one

"bureauCode": [

      "010:86",

      "010:04"

      ],

    "programCode": [

        "015:001",

        "015:002"

      ],

 

Example:

{

               "title": "{{default.name}}",

               "description": "{{default.description}}",

               "keyword": "{{item.tags}}",

               "issued": "{{item.created:toISO}}",

               "modified": "{{item.modified:toISO}}",

               "publisher": {

                              "source": "{{default.source.source}}"

               },

"bureauCode": [

      "010:86"

      ],

    "programCode": [

        "015:001"

      ],

               "contactPoint": {

                              "fn": "{{item.owner}}",

                              "hasEmail": "{{org.portalProperties.links.contactUs.url}}"

               }

}

0 Kudos