function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aravind Y BAravind Y B 

Currency fields on entities with effective dated currency are not supported.

Hai,Guys
I am trying to to solve this  but i am getting this error (it is a trail head visualfoce basics) i am using visualfofce page,please help me to come out by this error.User-added image
Best Answer chosen by Aravind Y B
AnkaiahAnkaiah (Salesforce Developers) 
Hi Aravind,

Currently SF does not support displaying currency fields in Visualforce pages when advanced currency management is enabled: "ERROR: Currency Fields on entities with effective dated currency are not supported" 

Refer the below Idea
https://ideas.salesforce.com/s/idea/a0B8W00000GdYg4UAF/display-currency-fields-in-vf-pages-when-advanced-currency-management-is-enabled

If you don't need "advanced currency management" turn it off.

If this information helps, Please mark it as best answer.

Thanks!!

 

All Answers

AnkaiahAnkaiah (Salesforce Developers) 
Hi Aravind,

Currently SF does not support displaying currency fields in Visualforce pages when advanced currency management is enabled: "ERROR: Currency Fields on entities with effective dated currency are not supported" 

Refer the below Idea
https://ideas.salesforce.com/s/idea/a0B8W00000GdYg4UAF/display-currency-fields-in-vf-pages-when-advanced-currency-management-is-enabled

If you don't need "advanced currency management" turn it off.

If this information helps, Please mark it as best answer.

Thanks!!

 
This was selected as the best answer
Imran TMImran TM
Hi Aravind
correct 4th output field value
"{! oppurtunity.AccountName}"
If this information helps, please mark it as the best answer.

Thanks!!
mukesh guptamukesh gupta
Hi Arvind,

You have two options:-

First Option:-
Dated currencies are not supported at this time in Visualforce.  You should be able to use outputText instead of outputField to get the currency values.  However they will not be calculated and converted for you, and you may have to format them yourself.

Second Option:- 

you need to Disable Advanced Currency Management and use below code:


<apex:page standardcontroller="Opportunity">
<apex:pageBlock >
   <apex:pageBlocksection title="Opportunity Details" >
      <apex:outputField value="{!Opportunity.Name}"/>
      <apex:outputField value="{!Opportunity.Amount}"/>
      <apex:outputField value="{!Opportunity.CloseDate}"/>
      <apex:outputField value="{!Opportunity.Account.Name}"/>
   </apex:pageBlocksection>
</apex:pageBlock>
</apex:page>

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh