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

Can't access standard fields #7

Open
scraft01 opened this issue Jun 4, 2020 · 3 comments
Open

Can't access standard fields #7

scraft01 opened this issue Jun 4, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@scraft01
Copy link

scraft01 commented Jun 4, 2020

I'm want to map publishing fields for a flat file import step. In the Field-to-Expression mapping section I add __Publish = $($sourceItem.Publish), but in the Powershell output I get the message below. Same for other publishing fields like __Never publish.

It seems like the underscores are stripped out, but trying any manner of escaping or renaming the field doesn't work. Can we import standard fields?

image

image

@bic742
Copy link
Collaborator

bic742 commented Jun 4, 2020

This is likely caused by this line:

Replacing of the underscore was put in place to handle issues with spaces in field names. It might a bit too aggressive in this case.

If you give a shot with commenting that out in your system does the import work? Let me know, and I will see about getting a fix pushed up.

@bic742 bic742 self-assigned this Jun 4, 2020
@scraft01
Copy link
Author

scraft01 commented Jun 4, 2020

That's the culprit. Thanks a ton for unblocking me! Could I submit a PR to this repo for a potential solution (retain any leading underscore characters), or not super important?

@bic742
Copy link
Collaborator

bic742 commented Jun 4, 2020

Happy to accept the PR :)

@bic742 bic742 added the bug Something isn't working label Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants