finops-toolkit icon indicating copy to clipboard operation
finops-toolkit copied to clipboard

Datafactory pipeline run error - BilledCost Column Missing

Open usvjosh opened this issue 1 year ago â€ĸ 2 comments

🐛 Problem

I'm seeing this pipeline error when any data that is dropped into the storage account from the billing export of my EA billing account.

Operation on target Convert CSV failed: ErrorCode=MappingColumnNameNotFoundInSourceFile,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Column 'BilledCost' specified in column mapping cannot be found in 'finops2_b8741481-faa2-4308-85cf-816fbebd1f76.csv' source file.,Source=Microsoft.DataTransfer.ClientLibrary,'

đŸ‘Ŗ Repro steps

I deployed the latest finops hub today in my azure tenant, I followed the instructions for adding the export configuration to the letter. No matter how I configure the export I get the same error.

These are the fields in the raw CSV file from the export: DepartmentName,AccountName,AccountOwnerId,SubscriptionGuid,SubscriptionName,ResourceGroup,ResourceLocation,AvailabilityZone,UsageDateTime,ProductName,MeterCategory,MeterSubcategory,MeterId,MeterName,MeterRegion,UnitOfMeasure,UsageQuantity,ResourceRate,PreTaxCost,CostCenter,ConsumedService,ResourceType,InstanceId,Tags,OfferId,AdditionalInfo,ServiceInfo1,ServiceInfo2,Currency

🤔 Expected

Normally this would simply process the data. I have an older version of the finops hub deployed and it works just fine. I noticed the new finops hub deployment configures datafactory a bit differently. We are looking to move to the latest finops hub version but ran into this issue.

📷 Screenshots

N/A

â„šī¸ Additional context

The components deployed thus far are from the below link, start at the "How to use this template" section. I have not made any customizations to the process thus far. https://learn.microsoft.com/en-us/samples/azure/azure-quickstart-templates/finops-hub/

đŸ™‹â€â™€ī¸ Ask for the community

Please let me know if I'm doing something wrong, what settings to double check, and if more information is needed.

usvjosh avatar May 14 '24 17:05 usvjosh

I found my issue. This other guide has info around a new preview export config with FOCUS. This is required with the new hub. The first set of instructions didn't mention this from what i saw.

https://microsoft.github.io/finops-toolkit/hubs

usvjosh avatar May 14 '24 18:05 usvjosh

I'm leaving this open to remember to update the troubleshooting guide with this error before the 0.4 release.

arthurclares avatar May 20 '24 19:05 arthurclares

@usvjosh Do you recall where you saw instructions that didn't mention this? We should find and update those and also see if we can add some more debugging into the report itself.

flanakin avatar May 25 '24 18:05 flanakin

@flanakin I think the issue I had was that the instructions didn't say to use the FOCUS data export. There are other instructions out there for the v0.3 finops hub that do explain this requirement.

https://microsoft.github.io/finops-toolkit/hubs

image

usvjosh avatar Jun 11 '24 12:06 usvjosh

I'm closing this as we have updated the docs to be more clear on this requirement: https://microsoft.github.io/finops-toolkit/hubs#%EF%B8%8F-why-finops-hubs

arthurclares avatar Jun 19 '24 12:06 arthurclares