MongoError: Path collision at activity

MongoDB 4.4 error:

{
  message: 'Path collision at activity',
  stack: 'MongoError: Path collision at activity\n' +
    '    at Connection. (/project/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:443:61)\n' +
    '    at Connection.emit (events.js:315:20)\n' +
    '    at Connection.EventEmitter.emit (domain.js:483:12)\n' +
    '    at processMessage (/project/node_modules/mongoose/node_modules/mongodb-core/lib/connection/connection.js:364:10)\n' +
    '    at Socket. (/project/node_modules/mongoose/node_modules/mongodb-core/lib/connection/connection.js:533:15)\n' +
    '    at Socket.emit (events.js:315:20)\n' +
    '    at Socket.EventEmitter.emit (domain.js:483:12)\n' +
    '    at addChunk (_stream_readable.js:295:12)\n' +
    '    at readableAddChunk (_stream_readable.js:271:9)\n' +
    '    at Socket.Readable.push (_stream_readable.js:212:10)\n' +
    '    at TCP.onStreamRead (internal/stream_base_commons.js:186:23)',
  operationTime: Timestamp { _bsontype: 'Timestamp', low_: 2, high_: 1600849377 },
  ok: 0,
  errmsg: 'Path collision at activity',
  code: 31250,
  codeName: 'Location31250',
  '$clusterTime': {
    clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 2, high_: 1600849377 },
    signature: {
      hash: Binary {
        _bsontype: 'Binary',
        sub_type: 0,
        position: 20,
        buffer: <Buffer d2 34 b7 ac bc a7 3f ea 38 d1 5c e3 26 58 39 43 d8 11 6c 83>
      },
      keyId: Long { _bsontype: 'Long', low_: 4, high_: 1596659428 }
    }
  },
  name: 'MongoError',
  level: 'info',
  timestamp: '2020-09-23 08:22:57',
  [Symbol(mongoErrorContextSymbol)]: {}
}

From version 4.4, MongoDB does not allow this projection of embedded document and a field of the same embedded document:

db.inventory.find( {}, { size: 1, “size.uom”: 1 } )

Solution:
Update the query to have either:

db.inventory.find( {}, { “size.uom”: 1 } )

or

db.inventory.find( {}, { size: 1,} )

MongoError: Path collision at activity

Liam Collins Solutions Consultant – Development Interpropeople

Liam Collins
Liam Collins
Solutions Consultant – Development
+61 7 3062 7957
liam.c@interpropeople.com
Catherine Taylor
Catherine Taylor
Solutions Consultant – Development
Melbourne
+61 3 85927816
catherine.t@interpropeople.com
Darran Butcher
Darran Butcher
General Manager
Australia
+61 2 8294 4006
Darran.b@interpropeople.com
Harshit Shah
Harshit Shah
Senior Accountant
Sydney
+61 2 8294 4048
harshit.s@ebit.com.au
Heena Sachar
Heena Sachar
Contractor Care
+61 2 8294 4027
heena.s@interpropeople.com
Michael Ma
Michael Ma
Operations Consultant
+61 4 1043 4609
Nick Shi
Nick Shi
Assistant Accountant
+61 2 8294 4029
nick.s@ebit.com.au
Vaishali Vekaria
Vaishali Vekaria
Financial Controller
Sydney
+61 2 8294 4002
vaisali.v@interpropeople.com
Jessica Jabbour
Jessica Jabbour
Account Manager
+61 2 8294 4008
Jessica.j@interpropeople.com
Nicola McIntyre
Nicola McIntyre
Account Manager
Sydney
+61 2 8294 4004
Nicola.m@interpropeople.com
Emma Simmons
Emma Simmons
Digital
Recruitment Consultant – Front-End Development
Melbourne
+61 3 8592 7826
emma.s@interpropeople.com
Anastasia Davis
Anastasia Davis
Solutions Consultant – Front End Development
Sydney
+61 2 8294 4011
anastasia.d@interpropeople.com
Cimeon Camenon
Cimeon Camenon
Solutions Consultant
Sydney
+61 2 8294 4022
cimeon.c@interpropeople.com
Fera Biyik
Fera Biyik
Solutions Consultant – Development
Melbourne
+61 3 8592 7827
fera.b@interpropeople.com
Lucas Nolan
Lucas Nolan
Senior Solutions Consultant – CRM
Melbourne
+61 3 8592 7801
lucas.n@interpropeople.com
Aashna Nehra
Aashna Nehra
Talent Acquisition Consultant – Development
Melbourne
+61 3 8592 7828
aashna.n@interpropeople.com
Jessica Shannon
Jessica Shannon
Management
Head of Operations
Sydney
+61 2 8294 4001
jessica.s@interpropeople.com
Judith Lobo Fernandes
Judith Lobo Fernandes
I-Solutions
Service Delivery Manager
Sydney
+61 2 8294 4054
judith.f@interpropeople.com
Mamata Shrestha
Mamata Shrestha
I-Solutions
Account Manager
Sydney
+61 2 8294 4042
mamata.s@interpropeople.com
Natasha Aggarwal
Natasha Aggarwal
Contractor Care
Sydney
+61 02 8294 4066
natasha.m@ebit.com.au
Adrian Culas
Adrian Culas
Legal Counsel
Sydney
+61 2 8294 4049
adrian.c@ebit.com.au
Aloysius Mahesh
Aloysius Mahesh
IT Team
IT And Dev Manager
Sydney
82944065
aloysius.m@interpropeople.com
Dusanka Rapajic
Dusanka Rapajic
Senior People & Culture Advisor
Sydney
+61 2 82 944 016
dusanka.r@interpropeople.com
Elsa Sudan
Elsa Sudan
Enterprise Apps, Technology
Solutions Manager
Melbourne
+61 3 8592 7824
elsa.s@interpropeople.com
Greg Shearer
Greg Shearer
Technology
Solutions Manager
Brisbane
+61 7 3062 7959
greg.s@interpropeople.com
Julianne Byrne
Julianne Byrne
Support
Office Administrator
Melbourne
+61 3 8592 7814
julianne.b@interpropeople.com
Mark Kellett
Mark Kellett
Technology
Senior Consultant – Technology
Sydney
+61 2 8294 4014
mark.k@interpropeople.com
Nicholas Male
Nicholas Male
Head of IT Infrastructure
Sydney
+61 2 8294 4038
nicholas.m@ebit.com
Rebecca McCormick
Rebecca McCormick
Enterprise Apps, Technology
Recruitment Consultant – .Net Development
Melbourne
+61 3 8592 7808
rebecca.m@interpropeople.com
Whitney Hayes
Whitney Hayes
Management
Victorian State Manager
Melbourne
+61 3 8592 7822
whitney.h@interpropeople.com

Liam Collins Solutions Consultant – Development Interpropeople

James Wilson Consultant – Digital and Emerging Technology Robert Walters

James Wilson
Consultant – Digital and Emerging Technology
Robert Walters
Level 41, 385 Bourke Street, Melbourne VIC 3000
Tel: +61 3 8628 2100
Dir: +61 3 8628 2171
E-mail: James.Wilson@robertwalters.com.au
Web: www.robertwalters.com.au
Follow us on LinkedIn and Twitter

Robert Walters is one of the world’s leading specialist professional recruitment consultancies with a global presence spanning 31 countries. The Australian business recruits across the fields of accounting & finance, banking, engineering & operations, general management, human resources, information technology, legal, risk management, compliance & audit, sales, marketing & communications, secretarial & business support and supply chain & procurement. Follow us on LinkedIn.

James Wilson Consultant – Digital and Emerging Technology Robert Walters

The Australian Fatwa Council & Grand Mufti of Australia – Dr Ibrahim Abu Mohamad

The Australian National Imams Council (ANIC) members unanimously continue their support and confidence in the Australian Fatwa Council and its Chairman, the Grand Mufti of Australia, Dr Ibrahim Abu Mohamad.

The Australian National Imams Council (ANIC) is the peak and highest religious body of Australian Muslims that consists of over 200 Imams from all states and territories, representing the different schools of thoughts and ethnicities of the Muslim community in Australia.

ANIC is the only legitimate body that elects the Grand Mufti of Australia and the Australian Fatwa Council members since its inception in 2006.

Stay updated, The Australian Fatwa Council will be issuing Islamic verdicts and guidelines regarding the month of Ramadan to the Australian Muslim Community.

 

                    

For more information on our other initiatives, contact us on
1300 765 940
www.anic.org.au  |  info@anic.org.au
Suite 3/20 Worth St, Chullora NSW 2190 Australia

The Australian Fatwa Council & Grand Mufti of Australia – Dr Ibrahim Abu Mohamad

Error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration operation

Error when adding AWS S3 event trigger:

An error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration operation: Unable to validate the following destination configurations

Solutions:

To avoid an error, you must create resources in the following order:

1. Make sure SNS topic exists, because the S3 bucket references the SNS topic.

2. Make sure the S3 bucket exists, because the SNS topic policy references both the S3 bucket and the SNS topic.

Before subscribing an SNS topic to S3 event notifications, you must specify a topic policy (AWS::SNS::TopicPolicy) with the appropriate permissions. That topic policy must exist before you create the subscription.

{ “Sid”: “Statement-id”, “Effect”: “Allow”, “Principal”: { “AWS”: “*” }, “Action”: “sns:Publish”, “Resource”: { “Ref”: “SNSTopic” }, “Condition”: { “ArnLike”: { “aws:SourceArn”: { “Fn::Join”: [ “”, [ “arn:aws:s3:::”, { “Ref”: “S3Bucket” } ] ] } } } }

Finally check if the subscription to S3 event already exists.

 

 

Error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration operation