Skip to main content

Conversion Overflows Error When Processing a Tabular Model

Symptom

This article is for administrators who see a conversion overflow error when a tabular model processes. The error usually appears after the source system changes a field's structure, such as a Business Central update.

The full message reads:

Microsoft.AnalysisServices.OperationException: Failed to save modifications to the server. Error returned: 'Conversion overflows.' The exception was raised by the IDataReader interface.

The message does not name the table or the column. Use the execution log for the failed run to find the table and partition that were processing when the error occurred.

Cause

Analysis Services stores each column with a fixed data type. When a decimal column in the data warehouse has a large scale, such as decimal(38,20), internal calculations on that column can produce a value too large for the type. Processing then stops with the overflow error. In one reported case, the overflow came from calculations that Analysis Services runs on a cost field after a Business Central structure change.

Resolution

Reduce the numeric scale of each affected field from 20 to 19 in Jet Data Manager (JDM), then remove the affected field from the tabular model and add it back so the change reaches the model.

  1. In JDM, open the data warehouse table that contains the affected field. Use the table and column named in the execution log.

  2. Right-click the field and select Edit Field.

  3. Change Numeric Scale from 20 to 19. The field becomes decimal(38,19). Save the change.

  4. Open the tabular model in the Jet Analytics project. Remove the affected field from the tabular model and save the model.

  5. Add the field back to the tabular model and save the model.

  6. Deploy the model and execute the endpoint.

  7. Verify whether the same error names other fields. Apply steps 1 to 6 to each one. In a past case, the same overflow affected the Amount, Amount LCY, Remaining Amount, Remaining Amount LCY, and Sales LCY fields on the receivables transactions table, and the Sales field on the sales posted transactions table.

Best Practices and Common Situations

  • The scale change in JDM is saved: Changing the field in JDM alone does not reach the tabular model. Complete steps 4 to 6 as well.

  • Redeploying the objects alone works for a single run, then fails again: In one case, redeploying the affected objects let four runs complete, and then the error returned. Remove and re-add the field as described in steps 4 and 5.

  • The field needs more digits after the decimal point than 19: Decimal(38,19) keeps 19 digits after the decimal point instead of 20. Confirm that this precision meets the business need for the column before you apply the change.

Verify the Fix

  • The execution completes without the conversion overflow error.

  • In the data warehouse, the affected column shows decimal(38,19).

  • Reports and semantic models that use the table return the expected totals. Verify the next scheduled run as well. A single successful run confirms the fix only if the next scheduled run also completes.

Troubleshooting

  • If the error persists, check the execution log for a different table or partition, and apply steps 1 to 6 to that field.

  • If the field cannot be removed from the tabular model, contact Product Support with the execution log, the exact error text, and a screenshot of the error.

Was this article helpful?

We're sorry to hear that.