Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Execution Details

Created:1/8/2026 12:55:04 PM by SYSTEM
Start date:1/8/2026 12:55:05 PM
Completed date:1/8/2026 12:55:05 PM (0.048s)
Status:Failed

Your account is not authorized to view debug logs in this context, therefore certain groups' log entries may appear empty.

  • Execution Logs0.0045s

    • Delete artifacts for rejected builds in deployed releases0.0044s

      Unhandled exception: Npgsql.PostgresException (0x80004005): 42804: structure of query does not match function result type
      
      DETAIL: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information.
         at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
         at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
         at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
         at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
         at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
         at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
         at Inedo.BuildMaster.Data.PostgresDatabaseContext.PostgresCommand.ExecuteReaderAsync(CancellationToken cancellationToken)
         at Inedo.Data.DatabaseContext.DbResult.CreateAsync(IGenericDbCommand command, DatabaseContext context, DateTimeOffset startTime, Stopwatch stopwatch)
         at Inedo.Data.DatabaseContext.ExecuteInternalAsync(String storedProcName, GenericDbParameter[] parameters, DatabaseCommandReturnType returnType)
         at Inedo.Data.DatabaseContext.ExecuteTableAsync[TRow](String storedProcName, GenericDbParameter[] parameters)
         at Inedo.BuildMaster.Windows.ServiceApplication.Retention.ArtifactRetentionPolicy.PurgeAsync(CancellationToken cancellationToken)
         at Inedo.BuildMaster.Windows.ServiceApplication.Executions.ActiveRetentionPolicyExecution.ExecuteAsync()
        Exception data:
          Severity: ERROR
          SqlState: 42804
          MessageText: structure of query does not match function result type
          Detail: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information.
          Where: SQL statement "SELECT *
            FROM "BuildArtifacts_Extended" BA
                 INNER JOIN "Applications" A
                         ON A."Application_Id" = BA."Application_Id"
                 INNER JOIN "Releases" R
                         ON R."Release_Id" = BA."Release_Id"
           WHERE ("@Application_Id" IS NULL OR BA."Application_Id" = "@Application_Id")
             AND ("@ApplicationGroup_Id" IS NULL OR A."ApplicationGroup_Id" = "@ApplicationGroup_Id")
             AND ("@Pipeline_Name" IS NULL OR R."Pipeline_Name" = "@Pipeline_Name")
             AND ("@RejectedBuildsOnly_Indicator" = FALSE OR BA."BuildStatus_Name" = 'Rejected')
             AND ("@DeployedReleasesOnly_Indicator" = FALSE OR R."ReleaseStatus_Name" = 'Deployed')
             AND ("@AlwaysRetainAfter_Date" IS NULL OR BA."Created_Date" < "@AlwaysRetainAfter_Date")
           ORDER BY "Created_Date"
           LIMIT "@ArtifactsToDelete_Count""
      PL/pgSQL function "RetentionPolicies_GetArtifactsToPurge"(integer) line 54 at RETURN QUERY
          File: attmap.c
          Line: 151
          Routine: build_attrmap_by_position