Skip to main content
Hello Forum,

 

I have encountered an issue in creating a visual flow:

 

My flow loops through all OpportunityLineItems and collects some values in a variable. Next step is to create a copy of these OpportunityLineItems on a different object and set some fields to the values of my variables.

 

Creating of the records on this different object works fine, but:

 

I can only set the variable containing the OpporuntityLineItem ID. Trying to set any other field value ends up with an error message: an unhandled process fault ...

 

I found some post saying that this issue only appears to happen in multi-currency orgs (what I do have).

 

Is there somebody encountering the same issue? Maybe somebody has invented a work around?

 

Any help is welcome.

 

Best, tobias
4 answers
  1. Sep 12, 2014, 10:08 AM
    Each OpportunityLineItem record is really a connection between an Opportunity and a PriceBookEntry.  The only PriceBookEntries that are valid for an OpportunityLineItem are those that are in the same PriceBook and Currency that is on the Opportunity.  If you try to add an OpportunityLineItem record connecting an Opportunity to a PriceBookEntry that is a) Inactive or b) the wrong PriceBookId, or c) the wrong Currency, you will get an error.
0/9000