Upgrade to version 7.1
This guide lists the version-specific changes and migration actions required
when upgrading an existing Google Cloud Cortex Framework version 7.0.x deployment
to version 7.1.0. Follow these instructions alongside the standard workflow in
Upgrade Cortex Framework. You
can also run the /upgrade-cortex
agent skill to inspect
and update configuration files automatically.
Python remains at 3.13 (>=3.13,<3.14). For deprecated items scheduled for
removal in version 8.0, see
Cortex Framework deprecations.
Use the following table to jump to the sections that apply to your deployment:
| If your deployment uses... | Review |
|---|---|
| Any version 7.0.x setup | Configuration and CLI changes |
| SAP ERP data products | Breaking SAP column changes and full refresh and Behavior changes and orphaned objects |
Custom tableSettings overrides |
Custom table_settings.yaml updates |
| Custom modules or Python builders | Migrate custom data products and Python builders |
Configuration and CLI changes
Apply these updates during Step 2: Update configuration, custom settings, and extensions before building.
Namespace discovery
- Built-in namespaces: Omit
pathon built-indata.namespacesentries (cortex,cortex_samples,cortex_v6_compatibility)—for example,- name: cortex. - Allowlist behavior:
data.namespacesis now a strict allowlist when set (namespaces: []enables zero namespaces, andnamespaces: nullfails validation). List every built-in and local custom namespace your enabled modules reference, or omitdata.namespacesto auto-discover installed packages only.
Data quality assertions
- Enabled by default (
data.assertionsEnabled: true): Set a uniquedata.defaultAssertionDatasetper deployment when sharing a Google Cloud project (otherwise the defaultdataform_assertionsdataset can collide across deployments), and pass--create-datasetstouv run cortex-deployin CI/CD. To opt out, setdata.assertionsEnabled: false. - Severity tags: Configure
data.assertionSeveritiesanddata.defaultAssertionSeveritytogether, or omit both.
Target and catalog settings
- Removed
type: generictarget: Removetype: genericentries or replace them withtype: git(note thattype: gitrequires a commit email usingtargetSettings.authorEmail, globalgit config user.email, or bothGIT_AUTHOR_EMAILandGIT_COMMITTER_EMAIL). - Whole-segment
ignoredPathsmatching: Ontype: dataformtargets,targetSettings.ignoredPaths(default["definitions/custom"]) now matches whole path segments instead of prefixes. Move unmanaged files underdefinitions/custom/or add paths such asdefinitions/custom_*toignoredPathssouv run cortex-deploydoesn't delete them. - Catalog
tableSettingsallowlist: Update any catalogtableSettingsfile (tables:/variants:) so every required source table is listed.
CLI changes
| Version 7.0.x | Version 7.1 |
|---|---|
uv run cortex-build --create-datasets |
Pass --create-datasets (and optional -y / --yes) to uv run cortex-deploy or uv run cortex-build-and-deploy. |
uv run cortex-deploy --assertions |
Pass --assertions to uv run cortex-build or uv run cortex-build-and-deploy. |
uv run cortex-kc-sync and --data-modules-root-directory |
Use uv run cortex-create-kc-data-products and declare namespaces in data.namespaces. |
uv run cortex-demo (SAP-only default; snake_case flags) |
Defaults to --sources all (pass --sources sap to keep 7.0.x scope) with dash-case flags; see uv run cortex-demo. |
Custom table_settings.yaml updates
Follow Custom table_settings.yaml behavior across upgrades
and apply these version 7.1 updates:
- Data products: Trim copied files down to explicit overrides—especially any
stale
materializationType: incrementaloverride onsales_document_flow(see Behavior changes and orphaned objects) and unchangeddataformTags(for example,billing_document_headersandbilling_document_itemschanged frommonthlytohourly). - Data foundations: Diff custom SAP foundation files against version 7.1
table_settings.default.yamlto retain added ECC tables (faglflext,glt0) and default assertions (makt,vbak). - Time partitioning: Replace deprecated
partitionType: DATE | DATETIME | TIMESTAMPwithpartitionType: timeanddataType: DATE | DATETIME | TIMESTAMP.
Breaking SAP column changes and full refresh
Version 7.1 aligns SAP data product column suffixes to exact SAP Data Dictionary
(DDIC) field names and removes non-core SAP IS-Fashion (*_fsh_*) add-on
columns across 23 incremental SAP product tables.
SAP column rename and removal reference
Expand to view the 23-table SAP column rename and removal map
| Data product | Table | SAP version | Version 7.0.x column | Version 7.1 column or status |
|---|---|---|---|---|
accounts_payable |
accounts_payable |
S/4HANA |
bus_transac_type_bttypecondition_contract_coco_numberinventory_movement_category_invoice_mov_categservice_document_type_service_document_typeservice_document_service_document_idservice_document_item_service_document_item_idpartner_service_document_type_pservice_document_typepartner_service_document_pservice_document_idpartner_service_document_item_pservice_document_item_idcompany_code_for_budget_account_bdgt_account_company_code
|
business_transaction_category_bttypecondition_contract_coco_numinventory_movement_category_inv_mov_categservice_document_type_service_doc_typeservice_document_service_doc_idservice_document_item_service_doc_item_idpartner_service_document_type_pservice_doc_typepartner_service_document_pservice_doc_idpartner_service_document_item_pservice_doc_item_idcompany_code_for_budget_account_bdgt_account_cocode
|
accounts_receivable |
accounts_receivable |
S/4HANA | Same 10 columns as accounts_payable in the preceding row |
Same 10 renamed columns as accounts_payable in the preceding row |
addresses |
addresses |
ECC, S/4HANA | flag_x400flagcomm8 |
flag_x400_flagcomm8 |
bill_of_materials |
bill_of_materials_items |
ECC, S/4HANA |
deviation_values_fsh_vmkz,
quantity_distribution_profile_fsh_pgqr,
quantity_distribution_profile_reference_fsh_pgqrrf,
critical_component_fsh_critical_comp,
critical_level_fsh_critical_level
|
Removed (IS-Fashion add-on) |
billing_documents |
billing_document_items |
ECC, S/4HANA |
season_year_fsh_season_year,
season_fsh_season,
collection_fsh_collection,
theme_fsh_theme
|
Removed (IS-Fashion add-on) |
customers |
customers |
ECC, S/4HANA |
name_of_representative_j_1_kfrepretype_of_business_j_1_kftbustype_of_industry_j_1_kftind
|
name_of_representative_j_1kfrepretype_of_business_j_1kftbustype_of_industry_j_1kftind
|
delivery_documents |
delivery_document_headers |
ECC |
number_category_1_rpfaessnumber_category_2_rpkistnumber_category_3_rpcontnumber_category_4_rpsonstloading_sequence_number_rpflgnr
|
number_category_1_bev1_rpfaessnumber_category_2_bev1_rpkistnumber_category_3_bev1_rpcontnumber_category_4_bev1_rpsonstloading_sequence_number_bev1_rpflgnr
|
delivery_documents |
delivery_document_headers |
S/4HANA |
header_customer_reserve_status1_suvk01 through 5_suvk05item_customer_reserve_status1_suvs01 through 5_suvs05
|
header_customer_reserve_status1_uvk01 through 5_uvk05item_customer_reserve_status1_uvs01 through 5_uvs05
|
delivery_documents |
delivery_document_items |
ECC, S/4HANA |
cfop_code_and_extension_j_1_bcfoptax_law_icms_j_1_btaxlw1tax_law_ipi_j_1_btaxlw2iss_tax_law_j_1_btaxlw3cofins_tax_law_j_1_btaxlw4pis_tax_law_j_1_btaxlw5sd_tax_code_j_1_btxsdc
|
cfop_code_and_extension_j_1bcfoptax_law_icms_j_1btaxlw1tax_law_ipi_j_1btaxlw2iss_tax_law_j_1btaxlw3cofins_tax_law_j_1btaxlw4pis_tax_law_j_1btaxlw5sd_tax_code_j_1btxsdc
|
inventory_and_special_stocks |
sales_order_stock |
ECC |
season_year_fsh_season_year, season_fsh_season,
collection_fsh_collection, theme_fsh_theme,
allocated_stock_quantity_fsh_salloc_qty
|
Removed (IS-Fashion add-on) |
inventory_and_special_stocks |
special_stocks_from_vendor |
ECC | Same 5 *_fsh_* columns as sales_order_stock |
Removed (IS-Fashion add-on) |
inventory_and_special_stocks |
special_stocks_with_customer |
ECC | Same 5 *_fsh_* columns as sales_order_stock |
Removed (IS-Fashion add-on) |
production_orders |
production_order_header |
ECC, S/4HANA | master_production_order_fsh_mprod_ord |
Removed (IS-Fashion add-on) |
production_orders |
production_order_item |
ECC, S/4HANA |
season_year_fsh_season_year, season_fsh_season,
collection_fsh_collection, theme_fsh_theme,
allocated_stock_quantity_fsh_salloc_qty
|
Removed (IS-Fashion add-on) |
purchasing_documents |
purchasing_document_account_assignments |
S/4HANA |
service_document_type_service_document_typeservice_document_service_document_idservice_document_item_service_document_item_id
|
service_document_type_service_doc_typeservice_document_service_doc_idservice_document_item_service_doc_item_id
|
purchasing_documents |
purchasing_document_headers |
ECC, S/4HANA |
discount_days1_zbd1_t, discount_days2_zbd2_t, discount_days3_zbd3_tcash_discount_percentage1_zbd1_p, cash_discount_percentage2_zbd2_plogical_system_logsy
|
discount_days1_zbd1t, discount_days2_zbd2t, discount_days3_zbd3tcash_discount_percentage1_zbd1p, cash_discount_percentage2_zbd2plogical_system_logsys
|
purchasing_documents |
purchasing_document_items |
ECC, S/4HANA |
inflation_index_j_1_aindxpinflation_index_date_j_1_aidatep
|
inflation_index_j_1aindxpinflation_index_date_j_1aidatep
|
purchasing_documents |
purchasing_document_types |
ECC |
9 *_fsh_* columns: vas_active_flag_fsh_vas_act,
determination_procedure_fsh_vas_kalsm,
vas_deletion_criteria_fsh_vas_del,
vas_determination_date_fsh_vas_detdt,
excl_return_items_fsh_excl_return,
determination_procedure_fsh_var_kalsm,
determination_procedure_fsh_dpr_detpro,
generic_material_creation_fsh_po_idoc,
auto_distribution_fsh_auto_dc
|
Removed (IS-Fashion add-on) |
purchasing_documents |
purchasing_document_types |
S/4HANA |
Same 9 ECC *_fsh_* columns plus
vas_quantity_correlation_fsh_vas_corr and
variants_optional_fsh_vm_act (11 total)
|
Removed (IS-Fashion add-on) |
purchasing_documents |
purchasing_document_vendor_confirmations |
ECC, S/4HANA | allocated_stock_quantity_fsh_salloc_qty |
Removed (IS-Fashion add-on) |
purchasing_documents |
purchasing_documents_history |
ECC, S/4HANA |
logical_system_logsy (ECC, S/4HANA)quantity_quantity_diff (S/4HANA)season_year_fsh_season_year, season_fsh_season,
collection_fsh_collection, theme_fsh_theme (ECC, S/4HANA)
|
logical_system_logsys (ECC, S/4HANA)quantity_qty_diff (S/4HANA)Removed (IS-Fashion add-on) |
universal_journal |
universal_journal_entry_line_items |
S/4HANA |
business_transaction_type_bttypecustom_business_transaction_type_not_used_yet_cbttypeaccount_assignment_type_accastypartner_account_assignment_type_paccasty
|
business_transaction_category_bttypebusiness_transaction_type_cbttypeobject_type_accastypartner_object_type_paccasty
|
vendor_invoices |
vendor_invoice_headers |
ECC, S/4HANA | logical_system_logsy |
logical_system_logsys (non-breaking company_code_bukrs also added) |
vendor_invoices |
vendor_invoice_items |
ECC, S/4HANA |
season_year_fsh_season_year, season_fsh_season,
fashion_collection_fsh_collection, fashion_theme_fsh_theme
|
Removed (IS-Fashion add-on; non-breaking company_code_bukrs also added) |
vendors |
vendors |
ECC, S/4HANA |
name_of_representative_j_1_kfrepretype_of_business_j_1_kftbustype_of_industry_j_1_kftind
|
name_of_representative_j_1kfrepretype_of_business_j_1kftbustype_of_industry_j_1kftind
|
Additional tables for a one-time full refresh
Run a one-time targeted full refresh (Run a targeted full refresh) on the following incremental tables when applicable:
- Required before or on the first version 7.1 incremental run (S/4HANA):
material_documents(cortex.sap.products.materials_movement) adds 13MATDOCstock columns and expandsuniqueKeywithmaterial_document_record_type. - Required when posting non-two-decimal currencies (
TCURXscaling):asset_annual_cumulative_balances(S/4HANA) andvendor_open_items,vendor_cleared_items,customer_open_items, andcustomer_cleared_items(ECC). (accounts_payable,accounts_receivable, andpurchasing_document_headersare already in the 23-table list above.) - Required if enabling the
sales_performanceSAP ERP sample:sales_performance(cortex_samples.sap.products.sales_performance; refresh aftercustomers) adds v7.1 columns such assigned_net_value_in_document_currencyvalidated by the newsigned_net_value_boundsassertion (see Sales Performance Insights).
Expand to view recommended full-refresh tables (join and unique-key cleanup)
Run a one-time full refresh on these incremental tables to purge legacy duplicates from version 7.0.x join and nullable LEFT JOIN unique-key defects:
- Customer, vendor, and address joins:
business_partner_addresses,business_partner_bank_details, and downstreamsupplier_spend_analysis(refresh aftervendors). - Tightened
uniqueKey(ECC, S/4HANA):vendor_invoice_account_assignmentsandcountries. - Guarded nullable
LEFT JOINunique keys (ECC, S/4HANA):asset_transaction_types,cost_elements,cost_centers,profit_centers,currency_codes,set_headers,depreciation_terms,fixed_assets_master,general_ledger_accounts,country_tax_regions,languages,ledger_master,material_cross_plant_batches,material_plant_batches,material_batch_stocks,material_plants,material_movement_types,flattened_product_hierarchies,project_structure,distribution_channels,divisions,sales_organizations, andunits_of_measurement. - Guarded nullable
LEFT JOINunique keys (ECC only):special_stocks_with_vendor. - Guarded nullable
LEFT JOINunique keys (S/4HANA only):financial_hierarchy_nodesandgroup_journal_entries(also adds clustering).
Behavior changes and orphaned objects
sales_document_flowmaterialization: DefaultmaterializationTypechanged fromincrementaltotableon ECC and S/4HANA so unbilled outbound deliveries remain visible (increasing row counts). Remove any stalematerializationType: incrementaloverride before compiling, because compilation fails closed onincrementalmodels withoutuniqueKeys. No--full-refreshis required.- Orphaned S/4HANA tables:
materials_by_storage_locationmoved fromcortex.sap.products.materialsto ECC-onlycortex.sap.products.inventory_and_special_stocks. On S/4HANA, drop the legacyPRODUCT_DATASET.materials_by_storage_locationtable (and unusedmard,mbew,mbewh, ort001lfoundation tables when no other enabled S/4HANA product references them) after confirming no downstream consumers query them. - Assertions on existing data: Default assertions can fail on pre-upgrade
duplicate rows until you complete the one-time full refresh. Severity tags
emit
severity_LEVEL, while blocking behavior is set per rule (blocking: true).
Migrate custom data products and Python builders
If you maintain custom modules or Python builders, apply the following updates before building (see the Extensibility guide for full reference).
Custom YAML and JavaScript data products
- Use
publisher.publish()/publisher.operate(): Replace barepublish(...)andoperate(...)calls withconst publisher = require("includes/publisher.js");so blocking assertions and row-/column-level security hooks run. - Update
incremental.getFilter()calls: Pass either an options object ({ targetColumn: "..." }or{ timestampColumn: "..." }) or a known source type shorthand ("sap","sfdc", or"salesforce") as the third argument; other strings now throw an error. - Declare assertions explicitly: Replace version 7.0.x implicit key
assertions with
assertions.standardRulesintable_settings.default.yaml(see Data quality assertions). - Clean up deprecated keys and builder aliases: Remove
type:frommanifest.yamlandmoduleType:fromconfig/config.yaml. Replace deprecated aliases (generic_product,composite_product,generic_composite_product,sap_bdc_product→flat_product;sfdc→sfdc_foundation). Note thatflat_productdefaults toincremental(whereas legacygeneric_product/composite_productdefaulted totable), so setmaterializationTypeexplicitly or provideuniqueKeys.
Custom Python builders
- Import from
common.sdk: Replacecommon.builders.*,common.schemas.*, and removedcommon.registryimports withcommon.sdk. - Use concrete subclasses: Subclass
FlatProductBuilderorFoundationBuilderdirectly (notProductBuilder[DataProductModuleConfig]) and accept(self, node, ctx)inbuild(). - Set
table_settings_schema = Nonefor programmatic builders: Builders subclassingFlatProductBuilderexpect atable_settingsfile by default; settable_settings_schema = Noneif your builder generates SQL without one. - Relocate builders: Move deprecated blueprint-local
./builder.pymodules intoNAMESPACE/builders/with aplugin_idreferenced inmanifest.yaml, and remove__init__.pyfiles inside the namespace tree.
What's next
- Follow the end-to-end checklist in Upgrade Cortex Framework.
- Review Cortex Framework deprecations for items scheduled for removal in version 8.0.
- Review Data quality assertions to customize blocking rules and severity tags.