AL icon indicating copy to clipboard operation
AL copied to clipboard

txt2AL: While converting an txt obj to al getting error

Open bachii1010 opened this issue 9 years ago • 12 comments

Hi,

While Converting an txt obj to al we are receving the below error: image

Can you please suggest.

Thanks Varun Reddy

bachii1010 avatar Jul 11 '17 07:07 bachii1010

Could you provide the exact command line that you're using to trigger this error?

StanislawStempin avatar Jul 11 '17 07:07 StanislawStempin

txt2al --source=D:\CAL\ --target=D:\AL\ --rename --extensionStartID 70070000 This the command line we are using

bachii1010 avatar Jul 11 '17 08:07 bachii1010

tried to put quotes?

waldo1001 avatar Jul 11 '17 09:07 waldo1001

Yes we tried both single and double quotes but the same error.

bachii1010 avatar Jul 11 '17 09:07 bachii1010

Could you please try the following one by one:

  1. Source and Target both on the same drive: C or D
  2. Do not use the --rename option
  3. Convert first half of the objects

If you reach step 3) and are still getting an error please try to repeat it each time converting half of the previous objects and ultimately trying to identify which file(s) is causing the issue.

StanislawStempin avatar Jul 11 '17 09:07 StanislawStempin

i have tried the steps but still the same error and i am only checking with one object still i am getting the error see below: image

Also attach is the file which i am using to convert exportedObjects.txt

bachii1010 avatar Jul 11 '17 10:07 bachii1010

I could convert successfully using the June Update bits. Is the D drive by any chance a mapped network drive or otherwise special in any way?
Otherwise I'm out of ideas on what could be wrong here. Looking at .NET source code this particular exception is thrown if the path to the file starts with a colon, has an invalid drive letter and then colon or has any colons beyond the drive colon.

Table 70097620 - GS27 RMA Setup.txt

StanislawStempin avatar Jul 11 '17 11:07 StanislawStempin

Thanks for sending the converted file. It should be al file after conversion correct?

Also we are also using june update.

Can you give the command line u have used to convert the file?

bachii1010 avatar Jul 12 '17 04:07 bachii1010

I placed the file you sent in C:\CAL and then used: txt2al --source=C:\CAL\ --target=C:\AL\ --rename --extensionStartID 70070000

Correct, the outcome should be .al but GitHub doesn't allow attaching these so I renamed to .txt.

StanislawStempin avatar Jul 12 '17 06:07 StanislawStempin

i have did the same thing see below still the same error image

can you suggest what we are doing wrong. Also one more info we have downloaded the june update with a VM so we are doing this in that VM. Is it a problem in VM.

Is there a procedure how we create a VM in Azure for tenreffie for june update or is it a normal procedure?

bachii1010 avatar Jul 12 '17 06:07 bachii1010

can you please give me an update about my above comment?

bachii1010 avatar Jul 14 '17 05:07 bachii1010

@bachii1010 It looks like you are running an older version of txt2al, which doesn't yet supported named parameters --source and --target. Could you try running using the old command line syntax? txt2al c:\CAL c:\AL -rename

The reason why it fails is that it thinks that the string --source=c:\CAL is a path to folder and therefore it fails.

defr0std avatar Jul 18 '17 11:07 defr0std