updated a connection builder Internal Server Error...
# ask-ai
l
updated a connection builder Internal Server Error: Cannot invoke \"java.util.UUID.toString()\" because \"uuid\" is null errors like this when trying to update source schema
k
The error message: > Internal Server Error: Cannot invoke "java.util.UUID.toString()" because "uuid" is null typically indicates that Airbyte is attempting to use a UUID value that is missing (i.e., null) when updating or fetching a source schema. This is often related to API requests or internal operations where a required identifier (such as sourceId) is not provided or not properly set. From the knowledge sources, a similar issue occurs when using the Airbyte API to fetch streams or update schemas, and the request body is missing required fields or contains incorrect ones. For example, in the API call to
/v1/scheduler/sources/discover_schema
, if you omit the
sourceId
or provide it incorrectly, you may encounter a NullPointerException referencing a missing UUID: > "Internal Server Error: Cannot invoke \"java.util.UUID.toString()\" because the return value of \"io.airbyte.config.SourceConnection.getSourceId()\" is null" [API: fetch streams using discover schema endpoint](https://github.com/airbytehq/airbyte/issues/28853) How to resolve: - Ensure that all required fields, especially
sourceId
, are present and correctly set in your API requests or UI actions. - If you are programmatically updating the connection or schema, double-check that the object representing the source has a valid, non-null UUID. - If you are using the Airbyte UI, try re-selecting the source or re-creating the connection to ensure all identifiers are properly initialized. If the problem persists even after verifying the above, it may indicate a deeper issue with how the source or connection was created, or a bug in the Airbyte version you are using. In such cases, reviewing the server logs for more context or reaching out to Airbyte support with the full stack trace and request details can help further diagnose the issue. Let me know if you need more specific troubleshooting steps!
l
@kapa.ai this is the full stacktrace
Copy code
2025-07-25 17:47:45,010 [io-executor-thread-3]  ERROR   i.a.c.s.e.h.UncaughtExceptionHandler(handle):33 - Uncaught exception
java.lang.NullPointerException: Cannot invoke "java.util.UUID.toString()" because "uuid" is null
        at io.airbyte.data.exceptions.ConfigNotFoundException.<init>(ConfigNotFoundException.java:30)
        at io.airbyte.data.services.impls.jooq.CatalogServiceJooqImpl.getActorCatalogById(CatalogServiceJooqImpl.java:73)
        at io.airbyte.commons.server.handlers.ConnectionsHandler.retrieveDiscoveredCatalog(ConnectionsHandler.java:1759)
        at io.airbyte.commons.server.handlers.ConnectionsHandler.diffCatalogAndConditionallyDisable(ConnectionsHandler.java:1737)
        at io.airbyte.commons.server.handlers.SchedulerHandler.runDiscoverJobDiffAndConditionallyDisable(SchedulerHandler.java:495)
        at io.airbyte.commons.server.handlers.SchedulerHandler.discover(SchedulerHandler.java:435)
        at io.airbyte.commons.server.handlers.SchedulerHandler.discoverSchemaForSourceFromSourceId(SchedulerHandler.java:364)
        at io.airbyte.commons.server.handlers.WebBackendConnectionsHandler.getRefreshedSchema(WebBackendConnectionsHandler.java:512)
        at io.airbyte.commons.server.handlers.WebBackendConnectionsHandler.webBackendGetConnection(WebBackendConnectionsHandler.java:456)
        at io.airbyte.server.apis.controllers.WebBackendApiController.webBackendGetConnection$lambda$3(WebBackendApiController.kt:110)
        at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.kt:32)
        at io.airbyte.server.apis.controllers.WebBackendApiController.webBackendGetConnection(WebBackendApiController.kt:95)
        at io.airbyte.server.apis.controllers.$WebBackendApiController$Definition$Exec.dispatch(Unknown Source)
        at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461)
        at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4354)
        at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:272)
        at io.micronaut.web.router.DefaultUriRouteMatch.execute(DefaultUriRouteMatch.java:38)
        at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:488)
        at io.micronaut.http.server.RouteExecutor.lambda$callRoute$5(RouteExecutor.java:465)
        at io.micronaut.core.execution.ExecutionFlow.lambda$async$1(ExecutionFlow.java:87)
        at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1583)
k
A message from kapa.ai
Based on the stacktrace you provided, the error:
Copy code
java.lang.NullPointerException: Cannot invoke "java.util.UUID.toString()" because "uuid" is null     at io.airbyte.data.exceptions.ConfigNotFoundException.<init>(ConfigNotFoundException.java:30)     at io.airbyte.data.services.impls.jooq.CatalogServiceJooqImpl.getActorCatalogById(CatalogServiceJooqImpl.java:73)     ...
indicates that Airbyte is attempting to retrieve an actor catalog by its ID, but the UUID being passed is null. This typically happens when the system expects a catalog ID (likely related to the source's schema or configuration), but it is missing or not set in the database or request context. From the knowledge sources, similar errors have occurred when: - The API request or internal operation is missing a required identifier, such as a sourceId or catalogId, resulting in a null value being used where a UUID is expected. For example, a user encountered a similar error when the
sourceId
was missing from the request body, leading to a NullPointerException referencing a missing UUID when fetching a schema or updating a source configuration [API: fetch streams using discover schema endpoint](https://github.com/airbytehq/airbyte/issues/28853). - There is a mismatch or missing configuration in the Airbyte database, such as a deleted or improperly initialized source or catalog. What you can do: - Double-check that the source and its associated catalog exist and have valid UUIDs in the Airbyte database. - If you are using the API, ensure all required fields (especially IDs) are present and correctly set in your requests. - If this occurred after deleting or modifying sources, try re-creating the source or connection to ensure all references are valid. If the issue persists, it may be due to a deeper data integrity problem or a bug in the Airbyte version you are using. The knowledge sources do not provide a specific fix for this exact stacktrace, but the pattern matches other cases where missing or null IDs cause similar errors. If you need more targeted help, providing the exact steps leading up to the error or checking the Airbyte database for missing or null IDs related to your source/connection may help further diagnose the issue. The knowledge sources do not contain a direct solution for this specific stacktrace.
l
source exists: select * from actor where id = '575a6fcc-1e31-4760-b62f-8bdae51145c4'; definition also exists (select * from actor_definition where id = '138e8d43-9b4b-4c67-8558-e125d3812f52';)
@kapa.ai source exists: select * from actor where id = '575a6fcc-1e31-4760-b62f-8bdae51145c4'; definition also exists (select * from actor_definition where id = '138e8d43-9b4b-4c67-8558-e125d3812f52';)
k
A message from kapa.ai
Given that both the source (actor) and its definition (actor_definition) exist in your database, but you are still encountering the error: > Cannot invoke "java.util.UUID.toString()" because "uuid" is null the issue is likely not with the existence of the actor or actor_definition records themselves, but rather with a missing or null reference to an actor_catalog or actor_catalog_fetch_event record. From the Airbyte database schema, the process of updating or fetching a source schema involves the following tables and relationships: - The
actor_catalog_fetch_event
table references both
actor_catalog
and
actor
via foreign keys. - The
actor_catalog
table contains the actual catalog (schema) information and is referenced by
actor_catalog_fetch_event
. - If a fetch event or catalog is missing, or if the reference is null, Airbyte may attempt to retrieve a catalog by a null ID, resulting in the error you see. This is supported by the stacktrace, which shows the error occurring in
getActorCatalogById
, indicating a null catalog ID is being used. What to check next: - Ensure that there is a valid
actor_catalog_fetch_event
for your actor, and that the
actor_catalog_id
in that table is not null and points to a valid record in
actor_catalog
. - Check that the
actor_catalog
record exists and has a valid UUID. You can run the following queries to check for missing or null references:
Copy code
sql -- Check for fetch events for your actor SELECT * FROM actor_catalog_fetch_event WHERE actor_id = '575a6fcc-1e31-4760-b62f-8bdae51145c4';  -- Check if the referenced actor_catalog_id exists in actor_catalog SELECT * FROM actor_catalog WHERE id IN (   SELECT actor_catalog_id FROM actor_catalog_fetch_event WHERE actor_id = '575a6fcc-1e31-4760-b62f-8bdae51145c4' );
If these queries return no results or show null values for
actor_catalog_id
, that would explain the error. Summary: The knowledge sources indicate that this type of error is usually due to a missing or null reference in the catalog-related tables, not the actor or actor_definition tables themselves. If you confirm that the catalog and fetch event records are present and valid, but the error persists, the knowledge sources do not provide further troubleshooting steps for this specific scenario, and you may need to investigate further or reach out to Airbyte support for deeper assistance. [Reference: Airbyte database schema and error patterns](https://docs.airbyte.com/platform/understanding-airbyte/database-data-catalog#actor_catalog_fetch_event)
l
@kapa.ai something is very weird with this specific connection builder helkp me understand: • the actor catalog should be the definition of the builder (its json schema/hash) • the actor is the "source" definition this is the builder URL: /workspaces/ec0f1288-6172-4102-bccc-e74b5d3a424b/connector-builder/edit/aef47ab8-3176-4da8-98fb-739c96dc79cb, so, the catalog id should be aef47ab8-3176-4da8-98fb-739c96dc79cb right? this is the source that uses it: 575a6fcc-1e31-4760-b62f-8bdae51145c4
k
A message from kapa.ai
Based on the Airbyte database schema and documentation, here’s how the relationships work: - actor: Represents a source or destination instance (e.g., your configured source). It references an actor_definition (the connector type, such as a specific API or database). - actor_definition: Represents the connector’s definition (its code, schema, etc.). - connector_builder_project: Represents a connector builder project, which is a workspace-level entity for building or editing connectors. It has its own UUID (in your case,
aef47ab8-3176-4da8-98fb-739c96dc79cb
), and references an actor_definition via
actor_definition_id
 [see schema](https://docs.airbyte.com/platform/next/understanding-airbyte/database-data-catalog#connector_builder_project). - actor_catalog: Stores the discovered schema/catalog for a source. It is referenced by actor_catalog_fetch_event. - actor_catalog_fetch_event: Links an actor (source) to an actor_catalog (schema) and records fetch events [see schema](https://docs.airbyte.com/platform/next/understanding-airbyte/database-data-catalog#actor_catalog_fetch_event). ### To your specific questions: - The actor catalog is not the same as the connector builder project or its definition. The
actor_catalog
is a record of a discovered schema for a specific source instance (actor), not the builder project or its definition. - The actor is the source instance (e.g.,
575a6fcc-1e31-4760-b62f-8bdae51145c4
), which references an
actor_definition
(the connector type). - The builder project UUID (
aef47ab8-3176-4da8-98fb-739c96dc79cb
) is not the actor catalog ID.
The builder project is a separate entity for editing/building connectors, not the discovered schema for a source. Summary: - The
actor_catalog
is tied to a specific source instance (actor), not to the builder project. - The builder project’s UUID is not used as the catalog ID. - The source (
actor
) references the connector definition, which may have been created or edited via the builder, but the catalog (schema) is a separate entity generated/discovered for that source. If you are seeing mismatches or nulls, check the
actor_catalog_fetch_event
and
actor_catalog
tables for your source to ensure the relationships are correct and not missing [see schema](https://docs.airbyte.com/platform/next/understanding-airbyte/database-data-catalog#actor_catalog_fetch_event). If you need to map from a builder project to a source’s catalog, you must: 1. Find the
actor_definition_id
from the builder project. 2. Find the
actor
(source) using that
actor_definition_id
. 3. Find the
actor_catalog_fetch_event
for that actor. 4. Find the
actor_catalog
referenced by the fetch event. The knowledge sources do not provide a direct mapping from builder project UUID to catalog UUID, and using the builder project UUID as the catalog ID is not correct according to the schema.
l
@kapa.ai I found the actor_catalog_fetch_event each row on this table represents what? When I try to refresh source schema?
k
A message from kapa.ai
Each row in the
actor_catalog_fetch_event
table represents an event where Airbyte fetched (discovered) the schema (catalog) for a specific actor (source or destination). This typically happens when you perform actions like refreshing the source schema in the Airbyte UI. The table links the fetch event to: - The specific actor (source/destination) via
actor_id
- The discovered catalog via
actor_catalog_id
- The configuration hash and actor version at the time of the fetch - Timestamps for when the event was created and last modified So, when you click "Refresh source schema," Airbyte creates a new row in
actor_catalog_fetch_event
to record that schema discovery event, associating the actor with the newly discovered catalog and relevant metadata [see documentation](https://docs.airbyte.com/platform/next/understanding-airbyte/database-data-catalog#actor_catalog_fetch_event).
l
@kapa.ai ok< I see that the last time it has done that was 2025-07-25 however, since then I added a new stream now I can't refresh source schema because it throws that exception
k
A message from kapa.ai
Based on the knowledge sources, each time you refresh the source schema, Airbyte should create a new
actor_catalog_fetch_event
entry, which records the discovered schema for that actor at that point in time [see documentation](https://docs.airbyte.com/platform/next/understanding-airbyte/database-data-catalog#actor_catalog_fetch_event). If you have added a new stream since the last fetch event (2025-07-25) but now cannot refresh the source schema due to the exception (
Cannot invoke "java.util.UUID.toString()" because "uuid" is null
), this suggests that something is going wrong during the schema discovery process. The stacktrace and error indicate that Airbyte is trying to reference a catalog ID that is null, which could be due to a missing or corrupted reference in the database, or an internal bug during the refresh process. The knowledge sources do not provide a direct solution for this specific scenario, but they do confirm that: - A new fetch event should be created on each schema refresh. - The error you are seeing is related to a missing or null catalog ID during this process. If the database relationships are intact (i.e., your actor and actor_definition exist, and previous fetch events are present), but the refresh fails, it may be a data integrity issue or a bug. The knowledge sources do not contain enough information to provide a definitive fix for this specific error during schema refresh. If you continue to encounter this issue, you may need to: - Check for any null or missing references in the
actor_catalog_fetch_event
and
actor_catalog
tables for your actor. - Consider reaching out to Airbyte support or filing a bug report with the details and stacktrace, as this may be an edge case not covered in the documentation. I'm sorry, but the knowledge sources do not contain enough information to provide a step-by-step resolution for this specific error during schema refresh.