evshvarov / csvgen

module to generate and import csv data using InterSystems ObjectScript
MIT License
6 stars 5 forks source link

Doesn't work on Windows? #13

Closed isc-bspead closed 2 years ago

isc-bspead commented 2 years ago

I used zpm to pull down the latest release and when I tried to import a csv from my local drive it failed because it was using the ":" in the classname:

`USER>s sc=##class(community.csvgen).Generate("C:\temp\badge\oxford.csv")
USER>w $system.Status.GetErrorText(sc) ERROR #5540: SQLCODE: -400 Message: ERROR #5794: Datatype validation failed on type '%Dictionary.Classname', with value equal to "community.csvgen.generated.C:te20211208"

ERROR #5802: Datatype validation failed on property '%Dictionary.ClassDefinition:Name', with value equal to "community.csvgen.generated.C:te20211208"`

If I specify the table name it will proceed past this point (although it fails later on on data import and I haven't gotten to the bottom of that yet)

evshvarov commented 2 years ago

Hi Ben! Great catch! I'd appreciate if you introduce a PR!

On Thu, Dec 9, 2021 at 2:58 AM Ben Spead @.***> wrote:

I used zpm to pull down the latest release and when I tried to import a csv from my local drive it failed because it was using the ":" in the classname:

`USER>s sc=##class(community.csvgen).Generate("C:\temp\badge\oxford.csv") USER>w $system.Status.GetErrorText(sc) ERROR #5540: SQLCODE: -400 Message: ERROR #5794: Datatype validation failed on type '%Dictionary.Classname', with value equal to "community.csvgen.generated.C:te20211208"

ERROR #5802: Datatype validation failed on property '%Dictionary.ClassDefinition:Name', with value equal to "community.csvgen.generated.C:te20211208"`

If I specify the table name it will proceed past this point (although it fails later on on data import and I haven't gotten to the bottom of that yet)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/evshvarov/csvgen/issues/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEP3VHJENT2V4TBTY2H3UP7WKFANCNFSM5JVB47CA .