Forum Discussion
SivaReddy24680
9 months agoAdvocate I
Operation returned an invalid status code 'Unauthorized' while copying data to Lakehouse
ErrorCode=LakehouseOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Lakehouse operation failed for: Operation returned an invalid status code 'Unauthorized'....
Vinodh247
9 months agoSuper User
This seems like a fabric platform issue and fabric regression, not your config. Microsoft recently changed the Lakehouse destination to require a Lakehouse connection, and that connection now uses OAuth only. Pipelines cannot refresh oauth tokens, so once your user token expires, the copy activity fails with Unauthorized when writing to OneLake. It is not related to SAP hana/permissions.
Workarounds that you can try:
Avoid using the new Lakehouse connection (use manual table entry if still available).
Recreate the conn before each run (temp).
Raise a support ticket because the change broke non interactive pipeline loads.