locked
Exporting Azure Data Factory log RRS feed

  • Question

  • I'm trying to export the data factory log by using PowerShell command "get-azuredatafactoryrun" and "Save-AzureDataFactoryLog" but get an error

    Save-AzureDataFactoryLog : HTTP Status Code: NotFound
    Error Code: RunLogsNotAvailable

    Here is the command.

    ------------------------------------------

    PS C:\Users\art> get-azuredatafactoryrun -datafactoryname ADFTutorialDataFactoryArt -Datasetname OutputS
    qlWH1D1 -resourcegroupname ADFTutorialResourceGroup -StartDateTime 2015-09-02T07:00:00


    Id                  : f5d156e5-ef97-4c06-b1cf-9548fd92651f_635767740000000000_635767776000000000_OutputSqlWH1D1
    ResourceGroupName   : ADFTutorialResourceGroup
    DataFactoryName     : ADFTutorialDataFactoryArt
    DatasetName         : OutputSqlWH1D1
    ProcessingStartTime : 9/2/2015 8:09:31 AM
    ProcessingEndTime   : 9/2/2015 8:12:13 AM
    PercentComplete     : 100
    DataSliceStart      : 9/2/2015 7:00:00 AM
    DataSliceEnd        : 9/2/2015 8:00:00 AM
    Status              : Succeeded
    Timestamp           : 9/2/2015 8:09:31 AM
    RetryAttempt        : 0
    Properties          : {}
    ErrorMessage        :
    ActivityName        : CopyFromBlobToSQL
    PipelineName        : PipelineWH1D1
    Type                : Copy



    PS C:\Users\art> Save-AzureDataFactoryLog -datafactoryname ADFTutorialDataFactoryArt -resourcegroupname
    ADFTutorialResourceGroup -id "f5d156e5-ef97-4c06-b1cf-9548fd92651f_635767740000000000_635767776000000000_OutputSqlWH1D1"
     -DownloadLogs -Output "D:\JsonFile"
    Save-AzureDataFactoryLog : HTTP Status Code: NotFound
    Error Code: RunLogsNotAvailable
    Error Message: Run f5d156e5-ef97-4c06-b1cf-9548fd92651f_635767740000000000_635767776000000000_OutputSqlWH1D1 does not
    have logs.
    Request Id: c2dd7732-ffda-4956-9286-07b183f6c064
    Timestamp (Utc):09/02/2015 08:24:55
    At line:1 char:1
    + Save-AzureDataFactoryLog -datafactoryname ADFTutorialDataFactoryArt - ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : CloseError: (:) [Save-AzureDataFactoryLog], CloudException
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.DataFactories.SaveAzureDataFactoryLog



    Thursday, September 3, 2015 4:38 AM

Answers

  • Please follow the instructions in the documentation here to save the logs for a data factory run

    https://msdn.microsoft.com/en-us/library/dn834942.aspx

    Let us know if you are still facing the issue. From the above error message, it appears that you are doing the right thing but your run doesn't have any logs available.

    Tuesday, March 8, 2016 7:57 PM