[SalesForce] i am unable to create debug log. Getting error

When i try to create debug log i am getting below error. Even i have deleted all user trace flags and checked in dev console also by querying user trace flags.

Having an active trace flag triggers debug logging. You have 590 MB of the maximum 250 MB of debug logs. Before you can edit trace flags, delete some debug logs.

Best Answer

You have hit the limit of maximum size of debug log. You need to delete them to get some space.

You can also run this query to get them in bulk and delete them

Use the following query in the Developer Console to access the TraceFlag object:

SELECT Id, CreatedDate, CreatedById, ExpirationDate, TracedEntityId, ApexCode, ApexProfiling,  Callout, Database, System, Validation, Visualforce, Workflow FROM TraceFlag

Be sure to select the 'Use Tooling API' checkbox before executing the query

Bulk delete trace flags through Developer Console

Related Topic