Forum Discussion

Brent_Reber's avatar
Brent_Reber
Frequent Visitor
3 months ago
Solved

Fabric CLI help for the ln command

I am attempting to use the fab ln command to create shortcuts to ADLS Gen2 files.  I have tried variations of the following command, but with the same, non-descriptive error message as the result.

 

fab ln a********.Workspace/Subro_External_Files.Lakehouse/Tables/ext_arbitrationworkparty.Shortcut --type adlsGen2 -i '{"location": "https://********.dfs.core.windows.net/", "subpath": "raw/subrogation/crm/subro_assist/arbitration/arbitrationworkparty/incoming", "connectionId": "********"}' 

 

 

I have tried using the connection name as well as the GUID for the connectionID parameter.  I have tried the location parameter with and without the trailing slash as well as the subpath with a beginning slash or no slash at the beginning.  I have verified that the subpath string and all other items are accurate.  Is there another parameter that I need to specify that is not listed in the example found here:  Shortcut Examples - fabric-cli?  

 

I am using version 1.6.1 of Fab CLI.

 

 

  • I found a solution to this after much trial and error.  The command ultimately needed the GUID of a different connectionID (i had tried the name of the different connection but that did not work, only the GUID) that had a broader user list and adjustments to the location and subpath strings.

    fab ln a********.Workspace/Subro_External_Files.Lakehouse/Tables/ext_arbitrationworkparty.Shortcut --type adlsGen2 -i '{"location":"https://********.dfs.core.windows.net/raw","subpath":"/subrogation/crm/subro_assist/arbitration/arbitrationworkparty/incoming","connectionId": "[GUID]"}' 

3 Replies

  • Brent_Reber's avatar
    Brent_Reber
    Frequent Visitor

    I found a solution to this after much trial and error.  The command ultimately needed the GUID of a different connectionID (i had tried the name of the different connection but that did not work, only the GUID) that had a broader user list and adjustments to the location and subpath strings.

    fab ln a********.Workspace/Subro_External_Files.Lakehouse/Tables/ext_arbitrationworkparty.Shortcut --type adlsGen2 -i '{"location":"https://********.dfs.core.windows.net/raw","subpath":"/subrogation/crm/subro_assist/arbitration/arbitrationworkparty/incoming","connectionId": "[GUID]"}' 

  • Hello Brent_Reber 

     

    Can you try creating the shortcut in the /Files area rather than /Tables? shortcut to raw files should be created under Files rather than Tables.

     

    a********.Workspace/Subro_External_Files.Lakehouse/Files/ext_arbitrationworkparty.Shortcut

     

    • Brent_Reber's avatar
      Brent_Reber
      Frequent Visitor

      Changing the location of the shortcut from Tables to Files did not change the result that I am getting.  I received the same error message as I listed in my original post.