Getting error A currency to convert from is required to retrieve exchange rate information. while creating purchase agreement lines in ax 2012 R3

pastedimage1564117342915v1.png

Getting error while creating purchase agreement lines : A currency to convert from is required to retrieve exchange rate information. in ax 2012 R3

field level i created field level relation ( related table context relation with currency table) why because in work flow, have to select currency in amount field

in my customization i have added one real field in purchase agreemnet header table ( for that field value calculation is based on total sum of purchasegreement lines)

i have written the logic in agreement lines datasource.write() and agreement table level delete method ( Amount value should update in header level)

purchase agreemnet header table i have written logic in two methods one is for calculation of amount field, and another one is sum of purchase agreement lines

after configuring the work flow getting the error in purchase agreement lines A currency to convert from is required to retrieve exchange rate information.

if i remove in the amount field ( field level relation for currency), iam not getting this error in purchase agreement lines, but work flow is not saving, it is throwing for amount field currency should select.

Please help me further on this, there is no where we using exchange rate on this process.

please keep debugger in info class and back track it , if your getting error means ur doing some thing wrong or placing of code is wrong .

Thanks for your reply,

Even , after removing my code also and doing the same process getting this error continuously, why because after configuring the work flow with code or with out code getting error

field level i created field level relation ( related table context relation with currency table) why because in work flow, have to select currency in amount field

If i remove field level relation this error will gone but work flow is not saving

upon debugging identified it is showing from currency is empty (null value), Where we have to setup/define in from currency ??

Please help further on this