web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Hide/Show control on SSRS

(1) ShareShare
ReportReport
Posted on by 468
Hello,
I have customized the Cheque report (Cheque_US) in D365 F&O. Added a new textbox to the design on the Cheque section in the bottom and wanted to show/hide based on the value of Amount field. There is an error when I open the report. Not sure what is wrong
 
"The Hidden expression for the text box 'Textbox39' contains an error: Input string was not in a correct format.

I have the same question (0)
  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    26,801 Super User 2026 Season 1 on at
     
    this problem is due type of Amount fields is string.
     
     so you must to convert from string to decimal.
     
    try this :
    IIF(CDec(Fields!Amount.Value) <= 0, True, False)
    Best regards,
    Mohamed Amine MAHMOUDI
  • SKO Profile Picture
    468 on at
    Thanks for throwing light, I totally missed this point and never expected amount to be string. This gives me another error but will try to fix it. 
     
    The Hidden expression for the text box 'Textbox39' contains an error: Conversion from string "992.40***" to type 'Decimal' is not valid.
  • Verified answer
    Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at
    You'd need to remove the extra characters to get a string that can be converted to a number. Using AmountCur field instead of Amount is better.
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,801 Super User 2026 Season 1 on at
    Hi,
     
    As marin say i think you must use the amountCur field.
     
    Otherwise you must remove the special characters from amount value.
     
    Best regards,
    Mohamed Amine MAHMOUDI

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans