TabularEditor icon indicating copy to clipboard operation
TabularEditor copied to clipboard

Deployment of Model via Powershell

Open dilshan-sivanesan opened this issue 8 years ago • 5 comments

When calling the deployment of a model.bim file via powershell You get an error if the path to the file is too long in the arguments list. E.g. C:\A\B_C\C\E_F-CI\Model.bim Error Message: Error loading model: The connection string is not valid.

Model deploys fine if you move the file to C:\A\Model.bim

or change directory to where the model file is and put the path as ".\model.bim"

dilshan-sivanesan avatar Oct 25 '18 14:10 dilshan-sivanesan

How long are your paths? Have you enabled long paths in Windows? https://superuser.com/questions/1119883/windows-10-enable-ntfs-long-paths-policy-option-missing

dmarkle avatar Oct 25 '18 19:10 dmarkle

@dilshan-sivanesan Did you enclose the path in quotes? E.g. "C:\A\B_C\C\E_F-CI\Model.bim"? Would you mind posting the entire PowerShell command that is failing?

otykier avatar Oct 26 '18 05:10 otykier

@dilshan-sivanesan Any update on this, or can we close the issue?

otykier avatar Dec 03 '18 21:12 otykier

Hi Daniel

Using quotes didn't help we had to shorten the path my moving the location of the file. I think if I'm the only one experiencing the issue we can close the path for now

On Mon, Dec 3, 2018, 9:37 PM Daniel Otykier <[email protected] wrote:

@dilshan-sivanesan https://github.com/dilshan-sivanesan Any update on this, or can we close the issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/otykier/TabularEditor/issues/209#issuecomment-443879717, or mute the thread https://github.com/notifications/unsubscribe-auth/AqaZYmOtRJzxx3dwM3u8ncP67PyxW1BPks5u1ZmlgaJpZM4X6dSc .

dilshan-sivanesan avatar Dec 04 '18 08:12 dilshan-sivanesan

So there it is. It's the Long File Paths setting in Windows as per my previous comment. Seems safe to close this one.

dmarkle avatar Dec 04 '18 13:12 dmarkle