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 :
Small and medium business | Business Central, N...
Suggested Answer

Special Characters in BC

(0) ShareShare
ReportReport
Posted on by 293

Hey,

What special characters can not be used in BC?  i.e any of the following...!@#$%^&*()= in item creation, job creation etc. or in BC totality 

Thanks!

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    150 on at
  • Suggested answer
    YUN ZHU Profile Picture
    98,758 Super User 2026 Season 1 on at

    Hi, there are not too many restrictions in BC. I recently discovered that you can even enter emoticons in the code field and text field.

    For example:

    pastedimage1631058251720v1.png

    pastedimage1631058262559v2.png

    But for system developers and administrators, I definitely don’t want to use these special characters.
    Hope the following link will help.

    How to prevent users from entering special characters inside an input field: https://yzhums.com/5734/

    Thanks.

    ZHU

  • Dev-Master Profile Picture
    65 on at

    Hi, I am going in a situation where i have product name with special character like 1001-B(101) .

    as i am already using the .filter function with filter criteria of ignore case 

    itemRec.SetFilter("No.", StrSubstNo('@%1*', ProductName));
    it gives error The filter "@(" is not valid for the No. field on the Item table. An error occured while interpreting the filter: Did not expect '('.
    when i apply this filter.
    itemRec.SetFilter("No.", StrSubstNo('*%1*', ProductName));
    and try to search with this filter it gives error "The filter "*(*" is not valid for the No. field on the Item table. An error occured while interpreting the filter: Did not expect '('.
    How can i apply both ignore case filter '@' and any special charter in the item name for product name searching like 1001-B(101).
  • Suggested answer
    Nitin Verma Profile Picture
    21,790 Moderator on at

    Hi,

    Try like this

    itemRec.SetFilter("No.", '%1',StrSubstNo('@*%1*', ProductName));

  • Dev-Master Profile Picture
    65 on at

    Hi thank you for your response.

    Can you please elaborate working of this filter. I am new in business central so i just know basic understanding of set filter function.

  • Suggested answer
    Nitin Verma Profile Picture
    21,790 Moderator on at

    Hi,

    I have used only simple setfilter function only the catch is I have provided the values extracting from the function STRSUBSTNO with special characters in between of @* string*

    please check if it works for you 

  • Dev-Master Profile Picture
    65 on at

    Yes thank you it worked for me. but i am getting exception if the product name is like this  DS-2CD2132F-IW(4MM).

    It give exception of

    The length of the string is 22, but it must be less than or equal to 20 characters. Value: @*DS-2CD2132F-IW(4MM)*

    How to solve this?

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,744 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,068 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 596 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans