0 - 1 of 1 tags for bad format

Hello

I'm trying to run the following query and keep getting the above error message after the query has been running for a minute or so.

I've tried running it one where clause at a time, have removed the case when and fiddled around with it to try and identify where it is going wrong.

If anyone could help me I'd really appreciate it.

SELECT
T1.Call_Date
,(t1.Trading_Code||((t1.Account_Number/10)(FORMAT '9999999')))
,T1.Call_Type
,T1.BU_Desc
,SUM(CASE WHEN T4.Department_Group_Code IN ('M','W') THEN 'Fashion'
WHEN T4.Department_Group_Code IN ('F') THEN 'Footwear'