Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

"Cannot Construct Data Type Date" error when trying to update or delete measure.

I am working on a .pbit that was created by an employee who no longer works with the company. When I try to refresh the data the report stalls out on a particular custom measure field. I would like to be able to fix that custom field or delete it so I can try refreshing without it but if I try to do almost anything in this report, including deleting the field, renaming the field, editing the DAX for the field, applying changes to the report, deleting a *different* field, anything at all, I get the same error:

 

"Something went wrong

 

Cannot construct data type date, some of the arguments have values which are not valid.. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action. The current operation was cancelled because another operation in the transaction failed."

 

The (obviously incomplete) DAX for that custom measure is "

StartDate(bucket) = DATE(YEAR('DeviceEvent'[StartDate]), MONTH('DeviceEvent'[StartDate]), DAY('DeviceEvent'[StartDate])) + TIME(HOUR(DeviceEvent[ti,0,0)))" and throws an error reading "The following syntax error occurred during parsing: Invalid token, Line 1, Offset 125, [ti,0,0))))."
 
How can I bypass this error that is locing this .pbit down entirely?
Status: Investigating
Comments
Anonymous
Not applicable

Hi @DaveMartin ,

 

If I save this pbit file as a new copy is it still undeleteable?

Based on the above information, if you are a Power BI Pro licensee, you can create a support ticket for free and a dedicated Microsoft engineer will come to solve the problem for you.
It would be great if you continue to share in this issue to help others with similar problems after you know the root cause or solution.

 

The link of Power BI Support: Support | Microsoft Power BI

For how to create a support ticket, please refer to How to create a support ticket in Power BI - Microsoft Power BI Community

 

Best Regards,
Community Support Team _ Caitlyn