Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMM: Issue adding field which maps to collection_date_start or collection_date_end #103

Open
ramdeensarah opened this issue Jun 2, 2021 · 4 comments
Assignees
Labels

Comments

@ramdeensarah
Copy link

We are unable to map a date field to collection_date_start or collection_date_end. We get an error message - 'You have not selected a date format' even if we had the format set (at the top). This did not prevent us from generating a map, but the map did not include the date fields.

image

@bowring
Copy link
Member

bowring commented Jun 4, 2021

Please supply the data file you were using, thanks.

@bowring bowring self-assigned this Jun 4, 2021
@ramdeensarah
Copy link
Author

Map file saved as a text file
Data used for demo (GitHub does not support CSV files, this will need to be converted)
File demonstrating the mapping between demo data and SESAR fields

@bowring
Copy link
Member

bowring commented Jun 7, 2021

Two problems -

  1. the date format chosen is invalid since the data has the month first
  2. MMM does not (yet) recognize single digit months or days - this can be fixed but the use of single digit months should be avoided.

Thus, if you add "0"s to the dates as in "09/28/05" and choose MM/DD/YY and century 2000, it will work.

@ramdeensarah
Copy link
Author

In regards to point 2, there were issues in excel (excel removing leading zeros from the date). In the text formatting, I had to select 'more number formats' then select date, and change the type to be 09/28/05 (see image 1 below). I verified the change in the CSV file (image 2) I was then able to successfully upload the file and add the date (see image 3).
image
image
image

It is worth noting that when I opened the file again in excel, this new formatting was lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants