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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Error Unable to cast object in standard code

(1) ShareShare
ReportReport
Posted on by 147
Hello Team,
While entering information in Dimension TAB in all forms like (General Journal etc) in Tier1 environments getting error "Unable to cast object of type 'Dynamics.AX.Application.FormBuildIntControl' to type 'Dynamics.AX.Application.FormBuildStringControl'.". This error is coming from Standard Code from init() method of DimensionLookup Form code. There is no customization done.
Facing this issue only in Tier1 environments, Tier 2 & production working fine.
Attached screen shots for the error & error code.
 
Pl. advice !!!
 
 
 
 
Error screen shot.png
Error Code.png
Categories:
I have the same question (0)
  • Jonas "Jones" Melgaard Profile Picture
    4,980 Most Valuable Professional on at
    Hi TU1506,
     
    Start by checking if your Tier-1 environment is on the same version as the Tier-2 and production environment.
  • Martin Dráb Profile Picture
    237,884 Most Valuable Professional on at
    It seems that dimAttrViewContract() returns an ID of an integer field, but a string field is expected. The value should indeed be a string.
     
    My next step would be finding which table and field it's about; it'll likely lead you to the cause. I suspect a wrongly implemented custom dimension (despite you saying that there are no customization).

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans