---
title: APM agent NrIntegrationError config mismatch issue
source: https://docs.newrelic.com/docs/apm/agents/manage-apm-agents/troubleshooting/agent-nrintegrationerrors-appear-insights
---

## Problem

An [`NrIntegrationError` event](https://docs.newrelic.com/docs/telemetry-data-platform/manage-data/nrintegrationerror) is generated that has the following message:

```
Configuration mismatch: Agent configured harvest limit for EVENT TYPE 
exceeds maximum limit; limit adjusted to LIMIT
```

## Solution

This is caused by a configuration mismatch with the agent. See the relevant agent solution to resolve your configuration mismatch:

**Go**

In your `newrelic.Config`:

-   For transaction events, adjust the value of [`TransactionEvents.MaxSamplesStored`](https://docs.newrelic.com/docs/agents/go-agent/configuration/go-agent-configuration#transaction-events-settings).

    > #### 💡 TIP
    >
    > The Go agent currently does not support adjusting this value for custom events.

**Java**

In your `newrelic.yml`:

-   For transaction events, adjust the value of `transaction_events.max_samples_stored`.
-   For custom events, adjust the value of `custom_events.max_samples_stored`.

**.NET**

In your `newrelic.config`:

-   For transaction events, adjust the value of the `maximumSamplesStored` attribute under the `transactionEvents` element.
-   For custom events, adjust the value of the `maximumSamplesStored` attribute under the `customEvents` element.

**Node.js**

-   For transaction events, in the `transaction_events: {` section of your app's `newrelic.js`, adjust the value of `max_samples_per_minute`.
-   For custom events, in the `custom_insights_events: {` section of your app's `newrelic.js`, adjust the value of `max_samples_stored`.

**Python**

In your `newrelic.ini`:

-   For transaction events, adjust the value of `transaction_events.max_samples_stored`.
-   For custom events, adjust the value of `custom_insights_events.max_samples_stored`.
-   For error events, adjust the value of `error_collector.max_event_samples_stored`.
-   For span events, adjust the value of `span_events.max_samples_stored`.

**Ruby**

In your `newrelic.yml`:

-   For transaction events, adjust the value of `analytics_events.max_samples_stored`.
-   For custom events, adjust the value of `custom_events.max_samples_stored`.
-   For error events, adjust the value of `error_collector.max_event_samples_stored`.

> #### 💡 TIP
>
> This error doesn't apply to the PHP agents.
