Page MenuHomePhabricator

Engage Individual Endowment Import Error - Missing fields
Closed, ResolvedPublic

Description

I just tried to import an Individual Endowment file, but I got the below error:

Screenshot 2025-10-22 at 2.48.38 PM.png (750×178 px, 24 KB)

It wouldn't let me move past the page where I uploaded the file to import (template #1394). That file is saved here: https://drive.google.com/file/d/19Ncsi8M60RoDji6z0aYZouh60DgnejpD/view?usp=drive_link

Thanks!

Event Timeline

@MDemosWMF The problem here is that the file is incorrectly formatted. The lines end with \r instead of \r\n or 0D instead of 0D0A. This is odd. Where did this file come from?

If you open it in Google Drive then download as a CSV from the Google Doc it will give you the correctly formatted file.

Strange! It was a file from Engage that was .xls then I saved it as a .csv for import (maybe there was an error in saving on my end?) I will try that fix, thanks!

@Lars That part was fixed with the download, but now I have moved to the mapping page and it is completely blank. All of the saved mapping is gone - do you know why that would've happened? Is there a way to get that back?

@MDemosWMF That is very strange. Which program did you use to save it?

Regarding the mapping, I just tried and I get the contribution fields, but not the contact fields. Is that what you are seeing or are you seeing no fields at all? This is Engage Endowment Individual, correct?

@Lars I just saved it in excel.

For the mapping I am seeing nothing under the data mapping header, it's like this the whole way down. Yep that's right template #1394.

Screenshot 2025-10-23 at 10.29.45 AM.png (1,132×1,380 px, 162 KB)

@MDemosWMF Let's put the first problem down to gremlins and we can review process if it happens again.

Can you share the CSV you're using now and I'll see if I get the same result.

@Lars Agreed, I think the mapping issue is more concerning. I put the file up on the drive: https://drive.google.com/file/d/1jGfRa1mQAAkaODuI1YRjmUjoClIS9pDj/view?usp=drive_link

Would the file itself influence the saved mapping in the template though?

@MDemosWMF Thanks. Hopefully not, but best to eliminate as many variables as possible.

The saved mapping is definitely still there, it just isn't applying for whatever reason - I'll try to find out.

@MDemosWMF I'm still getting the same result (contribution fields select, plus email, but not the other contact fields).
Can you check again and add a screenshot of this section (unchanged, just whatever you see when the page loads)?

image.png (2,360×480 px, 85 KB)

@Lars I just tried again and it's all back! The mapping and everything. I wonder why it didn't show for that period of time..

Lars renamed this task from Engage Individual Endowment Import Error to Engage Individual Endowment Import Error - Missing fields.Oct 28 2025, 4:30 AM

@MDemosWMF When you or the team are starting a new import are you going through Contributions - Import Contributions or Reports - Import Templates or maybe both? Here's a PR that fixes an issue if you go through Import Contributions, though it might just have been something I was noting rather than the same issue you saw before.

@Lars I usually go to the import templates page. Is that ok to continue doing?

@MDemosWMF For sure. I was just checking in case it might be related to the issue you were seeing as the code is a little different between the two ways of getting there. But if that blank field issue hasn't happened again since I think we can probably leave this for now and re-open if it does happen again.

Change #1199518 had a related patch set uploaded (by Lars SG; author: Lars SG):

[wikimedia/fundraising/crm@master] Add entity_configuration metadata to imports.

https://gerrit.wikimedia.org/r/1199518

Change #1199518 merged by Eileen:

[wikimedia/fundraising/crm@master] Add entity_configuration metadata to imports.

https://gerrit.wikimedia.org/r/1199518

AKanji-WMF set Final Story Points to 2.