Back to connectors… Back to Other...

SalesForce - Unable to import object - InvalidOperationException (3 replies)

Randy
4 years ago
Randy 4 years ago

I am unable to Insert or Insert/Update a new "Brand" record.  There are no errors shown in IMan, but the Salesforce.log file has logging for an InvalidOperationException: Sequence contains more than one matching element.

Here is the full stack trace:

2020-12-18 16:17:50:7328843 - 611 - BrandImport - BrandUpsert - System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Realisable.Connectors.Salesforce.Dataflow.CompositeJSONWriter.WriteBody(Transaction transaction, String referenceField, DescribeSObjectResultSmall description, String parentId)
at Realisable.Connectors.Salesforce.Dataflow.CompositeJSONWriter.WriteObject(Transaction transaction, DescribeSObjectResultSmall description, String referenceField, String parentId)
at Realisable.Connectors.Salesforce.Dataflow.CompositeJSONWriter.ProcessParent(Transaction parent, DescribeSObjectResultSmall description)
at Realisable.Connectors.Salesforce.AbstractTransactionHandler.ProcessState(IteratorState state, DescribeSObjectResultSmall description, ITransformAuditController auditController)
at Realisable.Connectors.Salesforce.Dataflow.CompositeJSONWriter.Process(IteratorState state, DescribeSObjectResultSmall description, ITransformAuditController auditController, eTransformErrorAction errAction)
at Realisable.Connectors.Salesforce.Dataflow.CompositeProcessor.ProcessTranactionTree(BaseMessage message, TransformDefinition tfmDef, IForceClient client, ITransformAuditController auditController, eTransformErrorAction errAction)

 

As an attachment I'm including the IMan Preview as well as the SalesForce Object definition

https://www.realisable.co.uk/wp-content/uploads/2020/12/2020-12-18_16-21-59.png
https://www.realisable.co.uk/wp-content/uploads/2020/12/2020-12-18_16-23-10.png
https://www.realisable.co.uk/wp-content/uploads/2020/02/Screenshot-from-2020-02-06-12-33-44.png
Randy
4 years ago
Randy 4 years ago

Unmapping the "Supplier" field allowed the import to continue.

 

Still need a fix though

Randy
4 years ago
Randy 4 years ago

After successfully importing an Object while using an "Insert" update operation, I switched to an "Insert/Update", but then I get an error "duplicate value found: gvp__Brand_Key__c duplicates value on record with id: a123456789" (I changed the actual Id value).

I also tried an Update which doesn't throw an error, but doesn't seem to have updated SalesForce either.

Support
4 years ago
Support 4 years ago

Randy, we are moving to this to support. Please reply to the ticket there.

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close