Xanaus
02/16/2022, 12:09 AMScriptAutomate
02/16/2022, 12:36 AMXanaus
02/16/2022, 1:12 AMScriptAutomate
02/16/2022, 3:45 AMsourceFieldMapping
look like in your config.personal.tasks
file?
Example:
yaml
sourceFieldMapping: {
DendronId: id,
Name: title,
Description: desc,
Notes: {to: body, type: string},
Owner: owner,
Type: {type: "singleSelect", filter: "tags.type.*", to: "tags"},
Status: status,
Due: due,
Priority: priority,
}
And:
- In Airtable, what are the field types for:
- status
- priority
- owner
- Are they singleSelect
in Airtable, or are they Single line text
?
Also note: In sourceFieldMapping
, the key: value
is a reflection of AirtableField: DendronFrontmatterKey
It looks like your error is being caused by one of your task note frontmatter fields not mapping properlyXanaus
02/17/2022, 12:39 AMsourceFieldMapping: {
DendronId: id,
Name: title,
Description: desc,
# Special type here refers to body of your note, the markdown
Notes: {to: body, type: string},
Owner: owner,
# singleSelect type, targeting tag using `#type.*` format
Type: {type: "singleSelect", filter: "tags.type.*", to: "tags"},
Status: status,
# use yyyy-mm-dd format (ISO) for this example
Due: due,
Priority: priority,
}
ScriptAutomate
02/17/2022, 3:46 PMsingle select
configs. To do this:
- For status field in Airtable
- Customize field type
- Add a new option that has an empty value
- Repeat for Priority
- Repeat for Owner
- Repeat for Type
See if that allows you to then exportXanaus
02/19/2022, 1:16 AMScriptAutomate
02/19/2022, 1:24 AMDendron:Dev: Open Logs
and look for lines like:
Finished Airtable Export. 0 records created; 0 records updated. Error encountered...
I'd like to know what these lines include, since that should show us why it is failingXanaus
02/20/2022, 12:20 AM{"level":50,"time":1645316367145,"pid":23067,"hostname":"fiona","name":"dendron","msg":"Finished Airtable Export. 0 records created; 0 records updated. Error encountered: {\"payload\":[{\"message\":\"Error during Airtable Export. undefined\",\"name\":\"DendronError\",\"status\":\"unknown\",\"payload\":\"[{\\\"fields\\\":{\\\"DendronId\\\":\\\"uLQiGcJzOPi29hWai1a8w\\\",\\\"Name\\\":\\\"Cut\\\",\\\"Description\\\":\\\"\\\",\\\"Notes\\\":\\\"\\\\n## Summary\\\\n\\\\nWhoa! This is a test!\\\\n\\\\n## Details\\\\n\\\\nThe Sun is hungry. Planet-eating hungry.\\\\n\\\",\\\"Owner\\\":\\\"Ivan\\\",\\\"Status\\\":\\\"\\\",\\\"Due\\\":\\\"2022-02-17\\\",\\\"Priority\\\":\\\"\\\"}}]\",\"innerError\":{\"error\":\"UNKNOWN_FIELD_NAME\",\"message\":\"Unknown field name: \\\"DendronId\\\"\",\"statusCode\":422}}],\"errors\":[{\"name\":\"DendronError\",\"status\":\"unknown\",\"payload\":\"[{\\\"fields\\\":{\\\"DendronId\\\":\\\"uLQiGcJzOPi29hWai1a8w\\\",\\\"Name\\\":\\\"Cut\\\",\\\"Description\\\":\\\"\\\",\\\"Notes\\\":\\\"\\\\n## Summary\\\\n\\\\nWhoa! This is a test!\\\\n\\\\n## Details\\\\n\\\\nThe Sun is hungry. Planet-eating hungry.\\\\n\\\",\\\"Owner\\\":\\\"Ivan\\\",\\\"Status\\\":\\\"\\\",\\\"Due\\\":\\\"2022-02-17\\\",\\\"Priority\\\":\\\"\\\"}}]\",\"innerError\":{\"error\":\"UNKNOWN_FIELD_NAME\",\"message\":\"Unknown field name: \\\"DendronId\\\"\",\"statusCode\":422}}],\"message\":\"Error during Airtable Export. undefined\"}"}
Joshi
02/21/2022, 7:11 AMDendronId
in your Airtable?Xanaus
02/21/2022, 10:46 AMJoshi
02/21/2022, 11:27 AMXanaus
02/21/2022, 2:40 PM