-
Notifications
You must be signed in to change notification settings - Fork 78
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
sf cmdt generate records
sometimes does bad file endings
#2573
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hello @Windyo 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
{ |
@Windyo have you got a sample csv for repro? |
I've asked internally but the data isn't OK to be shared publicly so no.
Nov 16, 2023 21:48:08 Shane McLaughlin ***@***.***>:
…
@Windyo[https://github.com/Windyo] have you got a sample csv for repro?
—
Reply to this email directly, view it on GitHub[#2573 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AEI3N67LHQQY7BPHXMVC2ULYEZ3YNAVCNFSM6AAAAAA7OJR57OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJVGI4DQOBYGE].
You are receiving this because you were mentioned.
[Tracking image][https://github.com/notifications/beacon/AEI3N62DRE26MH2R7BX6PJ3YEZ3YNA5CNFSM6AAAAAA7OJR57OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTMGMODC.gif]
Message ID: ***@***.***>
|
@Windyo not the real data, but some junk that would cause the error. If not, can you explain what you mean by
|
I managed to get one.
This will generate an xml that ends in Note the fact that technically, every line overwrites the same XML file because the Name is the same. |
This issue has been linked to a new work item: W-14512810 |
This seems to be in a merged PR - should we close this ? |
Summary
Using
sf
via the command line, runningsf cmdt generate records --csv .\config\data\myfile.csv --type-name Table__mdt
, where the csv contained thirty records, resulted in 4 of these records having bad endings ranging from</CustomMetadata>adata>
to</CustomMetadata>adata>ata>ata>
and</CustomMetadata>adata>
Steps To Reproduce
1/ have a csv file
2/ generated cmdt records
3/ observe the file endings
This seems to happen if the same line exists multiple times in the csv with different values in some columns - so it can be chalcked up to data quality, but is still a bug
Expected result
the command generates valid files
Actual result
It generates bad endings.
System Information
cmd.exe on windows latest with updated sf.cli
The text was updated successfully, but these errors were encountered: