:wave: Hello, team! I tried to create a connectio...
# ask-community-for-troubleshooting
o
👋 Hello, team! I tried to create a connection between mongodb and postgres database and I got this error 2022-09-15 112814 INFO i.a.w.i.DefaultAirbyteStreamFactory(lambda$create$0):61 - com.mongodb.MongoCommandException: Command failed with error 40353 (Location40353): 'Invalid $project :: caused by :: FieldPath must not end with a '.'.' on server. The full response is {"ok": 0.0, "errmsg": "Invalid $project :: caused by :: FieldPath must not end with a '.'.", "code": 40353, "codeName": "Location40353"} what could be the issue here
✍️ 1
s
It looks like a field specified in your mongo query ends with a
.
which seems to only be partially supported and sometimes cause issues, more info in this mongo doc: https://www.mongodb.com/docs/manual/core/dot-dollar-considerations/
I don't have a ton of experience with building mongo pipelines but maybe there is a clever way to work around this? some answers in this thread on a similar issue, not sure if it will work for your query https://stackoverflow.com/a/42433950
o
Thanks @Sunny Hashmi (Airbyte) I am not writing a query, just trying to replicate data from mongodb to postgres
s
@Opeyemi Daniel I found a similar issue in our community forum if this helps: https://discuss.airbyte.io/t/source-mongodb-failed-to-fetch-mongodb-of-digitalocean-managed-db-schema/1931/6?u=sh4sh I'm not sure if the workaround will help in this case as it's a slightly different error, but there are troubleshooting steps at the bottom of the page that may give us more information to look into
z
A ticket has been created by Marcos Marx
o
@Marcos Marx (Airbyte) turned this thread into a ticket to ensure timely resolution!
o
image.png
The issue is a case of an object having sub-objects. Airbyte is not handling this well
s
Hey @Opeyemi Daniel sorry for the delay in response, if this is still happening could you please create a bug report in github?